Bug 132002 - [reorg] After new copy of the .java file is created (in Package Explorer) in the same package, the focus remains on the source of the copy
Summary: [reorg] After new copy of the .java file is created (in Package Explorer) in...
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Markus Keller CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-15 13:41 EST by Adam Horenek CLA
Modified: 2006-07-12 03:26 EDT (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 Adam Horenek CLA 2006-03-15 13:41:45 EST
0)Open Package Explorer view. Create java project and create a class for example A.java
1)Make copy of the class (CTRL+C) in any package (for example A.java)
2)Paste the class to the same package (CTRL+V)
(the Name Conflict dialog appears)
3)Choose name for the copy of the class (for example B.java) and press OK
4)The focus remains on the source class (the class that was copied - A.java).

I would expect that the focus moves to the pasted class (B.java). It happened to me several times, that I have copied the class and after several minutes I have realized that I am editing not the new copy of the class but the former one(Maybe it happens only to me - it's only my problem...)
Comment 1 Jerome Lanneluc CLA 2006-03-15 14:52:29 EST
Moving to JDT UI
Comment 2 Martin Aeschlimann CLA 2006-03-21 02:22:42 EST
I agree
Comment 3 Markus Keller CLA 2006-07-07 12:57:32 EDT
Implementation would have to go along the lines of RenameUserInterfaceStarter and needs to make sure that it works with copy-paste as well as with drag-and-drop.