Bug 3359

Summary: Get rid of source attachment root (1GJON3Q)
Product: [Eclipse Project] JDT Reporter: Martin Aeschlimann <martinae>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.1 M5   
Hardware: All   
OS: Windows NT   
Whiteboard:

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 ***