Bug 3359 - Get rid of source attachment root (1GJON3Q)
Summary: Get rid of source attachment root (1GJON3Q)
Status: RESOLVED DUPLICATE of bug 3243
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: All Windows NT
: P3 normal (vote)
Target Milestone: 2.1 M5   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-10 22:53 EDT by Martin Aeschlimann CLA
Modified: 2003-01-17 09:42 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Aeschlimann CLA 2001-10-10 22:53:48 EDT
MA (07.09.2001 14:19:27)
	When setting a source attachment, a root path has to be specified, so that classes can be found.
	It would be a big progress if JCore has a way to automatically find an appropriate source file for a class.
	Advatages would be:
		- Easier UI
		- Easiear APIs (especially in relation with variable entries)

	Approach i have in mind:
		Keep a hashtable of all CU names in an source attachment. Simple name matching should work for most
		of the classfiles. If two CUs have the same name, always try to find the longest match of package
		and CU location.
		If simple name matching leads to too many matches always try to find the longest match of package name
		and path in zip.
	The mapping algorithm will only be called for the first time a source is searched. Afterwards, the source buffer will
	keep the reference.


NOTES:
Comment 1 Philipe Mulet CLA 2001-10-11 10:07:07 EDT
Defer
Comment 2 DJ Houghton CLA 2001-10-29 17:12:08 EST
PRODUCT VERSION:
	134

Comment 3 Philipe Mulet CLA 2002-07-25 06:59:38 EDT
Reopening
Comment 4 Philipe Mulet CLA 2002-07-25 07:00:56 EDT
Clearing resolution
Comment 5 Philipe Mulet CLA 2002-07-25 07:17:53 EDT

*** This bug has been marked as a duplicate of 3243 ***