Bug 3214

Summary: Need more control when creating imports (1G7SL92)
Product: [Eclipse Project] JDT Reporter: Martin Aeschlimann <martinae>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.0 M4   
Hardware: All   
OS: Windows 2000   
Whiteboard:

Description Martin Aeschlimann CLA 2001-10-10 22:51:25 EDT
MA (19.01.2001 10:46:12)
	'Organize Imports' is a feature I am working on, that reevaluates all the needed imports in a compilation unit and
	replaces the existing imports in a user-defined sorted way.
	The sorting also contains empty lines between blocks of imports.
	
	This feature (empty lines between imports) can't be implemented with the current API for imports.
	Another shortcoming is that removing and setting of imports has to be done import by import. This
	will probably lead to flashing when using the feature.
	
	My suggestion is to add some API to IImportContainer:
		delete() to remove all imports
		setContent(source) (formatted source, including multiple lines of import statements (including empty lines)

NOTES:
DA (6/21/01 11:35:50 AM)
	Problem still exist in build 0.125.
Comment 1 DJ Houghton CLA 2001-10-23 23:51:45 EDT
PRODUCT VERSION:
	0.020

Comment 2 Olivier Thomann CLA 2002-03-07 17:29:25 EST
Do you still need this?
Comment 3 Martin Aeschlimann CLA 2002-03-08 02:25:21 EST
No, the current solution directly accesses the underlying buffer.
ok to close
Comment 4 Olivier Thomann CLA 2002-03-08 09:43:47 EST
Closed.