Bug 3214 - Need more control when creating imports (1G7SL92)
Summary: Need more control when creating imports (1G7SL92)
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: All Windows 2000
: P3 normal (vote)
Target Milestone: 2.0 M4   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-10 22:51 EDT by Martin Aeschlimann CLA
Modified: 2002-03-08 09:58 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: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.