Bug 69916 - [imports on paste] remove imports on cut
Summary: [imports on paste] remove imports on cut
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-13 10:10 EDT by Dani Megert CLA
Modified: 2009-01-23 11:11 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dani Megert CLA 2004-07-13 10:10:39 EDT
R3.0

Since we have smart paste of imports I also like to see smart remove of imports
when cutting and deleting.

As suggested by Dirk we could do this on reconcile. Issue: there should be no
dialog shown to the user and the text should not be scrolled i.e. the user
should not loose context.

Martin, please comment and feel free to move back to text. Gave it to you since
you implemented smart import pasting.
Comment 1 Dani Megert CLA 2004-11-12 02:17:23 EST
Martin, Dirk showed up yesterday telling me he'd love to see this. Can you do it
or should we attack this? You're probably faster since you're the imports man.
Comment 2 Martin Aeschlimann CLA 2004-11-12 03:46:45 EST
It's not a 2 second fix, so I'll see when I have time for that. It only works 
when the resulting code has no syntax errors
The other idea is to remove imports on reconcile.