Community
Participate
Working Groups
When you copy and paste a file in the Package Explorer, after the paste, the original file is still selected instead of the new copy. It would be better to select the new file(s) instead since I probably want to do something with them (like opening them for editing).
Package Explorer is JDT UI.
Navigator has same behavior. They should be kept in sync.
Same problem after drag and drop (with copy and with move operations).
Created attachment 160672 [details] Work in Progress Patch does not work and has compile errors, but I need to suspend work I started on this. A problem is that we need to handle 2 different cases, which can even occur at the same time: a) Paste creates files, folders, Java elements => need to select the new elements in Package Explorer, etc. *after* they have been pasted. Nontrivial part is to find the new elements. b) Paste adds text to a single compilation unit => need to open the editor *before* executing the refactoring, such that the user can easily undo the change