Bug 397080 - Modify default copy/paste/duplicate behavior to select newly created item
Summary: Modify default copy/paste/duplicate behavior to select newly created item
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 4.3   Edit
Hardware: PC Mac OS X
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-21 08:23 EST by Steven Spungin CLA
Modified: 2015-02-20 22:07 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steven Spungin CLA 2012-12-21 08:23:43 EST
In the explorer or inspector when I copy and paste (a java class for instance) I am prompted for a new name.  After I type the new name a new item is created.  This item is not selected or opened.

Often, I begin editing the old item thinking it is the 'clone'.  I think it is more intuitive to select the newer item in the tree, and open it the editor.
Comment 1 Paul Webster CLA 2012-12-21 08:36:39 EST
Dani, is the copy/paste in the package explorer our default actions or provided by JDT?

PW
Comment 2 Dani Megert CLA 2013-01-07 05:29:22 EST
This is the standard behavior in the OS and hence also in Eclipse (at least on Windows): don't change the current selection.

Suggest to close as WONTFIX.
Comment 3 Steven Spungin CLA 2013-01-07 11:35:37 EST
On a Mac, in the finder, when you do a copy and paste sequence, the new version is selected.  This applies to both icon and list views.
Comment 4 Steven Spungin CLA 2015-02-20 22:04:52 EST
>> This is the standard behavior in the OS and hence also in Eclipse

2 years later I still think this is the wrong behavior.

On mac: In a list, a copy and paste always selects the copy.
In windows: In a list, a copy and paste always selects the copy.
In linux: In a list, a copy and paste always selects the copy.

I now understand why I start editing the source instead of the copy so often.