Bug 566484 - Cannot copy folder in project explorer without selecting the parent
Summary: Cannot copy folder in project explorer without selecting the parent
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.14   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-28 06:30 EDT by Lars Vogel CLA
Modified: 2020-11-30 05:45 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Vogel CLA 2020-08-28 06:30:01 EDT
If I copy a folder in the project explorer and paste it nothing happens. I first have to select the parent of the folder to trigger the paste dialog.

Would be nice if the system could select in this case the parent automatically.
Comment 1 Lars Vogel CLA 2020-08-28 06:30:56 EDT
Andrew, I think you looked into this area already. Do you know which class is responsible for handling the paste?
Comment 2 Andrew Obuchowicz CLA 2020-09-01 19:48:22 EDT
@Lars the paste is handled in org.eclipse.ui.internal.navigator.resources.actions.PasteAction

Can you give exact steps to reproduce? Are you trying to duplicate the folder by pasting it into it's parent folder?
Comment 3 Lars Vogel CLA 2020-09-02 02:06:30 EDT
(In reply to Andrew Obuchowicz from comment #2)
> @Lars the paste is handled in
> org.eclipse.ui.internal.navigator.resources.actions.PasteAction
> 
> Can you give exact steps to reproduce? Are you trying to duplicate the
> folder by pasting it into it's parent folder?

I have the following structure:

A

--> B
--> C

Now I select B in the project explorer and press Ctrl+C followed by Ctrl+V -> nothing happens. I have to select A and press Ctrl+V to paste the folder.

Nautilus under Linux does not require me to change the folder selection to perform a folder copy.
Comment 4 Lars Vogel CLA 2020-09-04 06:44:07 EDT
Thanks for the pointer.