Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 328282

Summary: Copy & paste doesn't work when running on Linux from Mac via SSH
Product: [Eclipse Project] Platform Reporter: Tom Crockett <Thomas.M.Crockett>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: akurtakov, ben
Version: 3.7   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
Whiteboard: stalebug

Description Tom Crockett CLA 2010-10-20 15:06:48 EDT
Build Identifier: 20100617-1415

When SSHing to Linux from Mac and running eclipse, the "paste" action in the common navigator is never enabled after copying something.

Reproducible: Always

Steps to Reproduce:
1. On a mac, ssh -Y to a Linux machine
2. Run eclipse, open any view based on the common navigator
3. Copy a file in the navigator
4. There's no way to paste now; the "Paste" action is grayed out.

I'm not sure if this is specific to platform resources or if it's generally true of copy and paste actions in the navigator.
Comment 1 Tom Crockett CLA 2011-02-15 12:21:20 EST
Ping... has anyone looked at this?
Comment 2 Francis Upton IV CLA 2011-02-15 15:02:32 EST
Can you see if this is also an issue with the Package Explorer? If so, then it might be better to have the SWT folks start with this.
Comment 3 Tom Crockett CLA 2011-02-15 15:07:49 EST
It is not an issue with the package explorer, only common navigator-based views.
Comment 4 Tom Crockett CLA 2011-03-31 21:32:47 EDT
Is there any chance this will get fixed in 3.7? We have received complaints from several of our users about this.
Comment 5 Francis Upton IV CLA 2011-04-20 15:13:11 EDT
(In reply to comment #4)
> Is there any chance this will get fixed in 3.7? We have received complaints
> from several of our users about this.

I'm going to work in this this week (the last week of 3.7) I will try to get it fixed.
Comment 6 Francis Upton IV CLA 2011-04-20 22:57:40 EDT
This looks like an SWT problem. 

I was able to duplicate the problem using your steps. I find that the Navigator and Project Explorer behave identically (no paste menu enabled), and that while the Paste menu is enabled in the Package Explorer, when you try to do the Paste you get an error. This is because the logic of the PasteAction in the Package Explorer does not do the same type of checking to see that something is on the clipboard before the paste.

I looked into it further comparing the copy/paste behavior running on Linux alone with that running through the Mac and the difference is the Clipboard is returning that there is nothing on it when running through the Mac. I can see in both cases the resource is properly added to the clipboard.

So this seems to be an SWT issue with the Clipboard handling when running through the Mac. Sorry it took so long for me to look into it (and that it's being transfered to SWT so late in the cycle).
Comment 7 Francis Upton IV CLA 2011-04-20 22:58:24 EDT
My testing of this was done on 3.7M6.
Comment 8 Ben Johnson CLA 2015-11-19 09:06:22 EST
This is still a problem, and it's not isolated to Eclipse on Mac OS.

I'm on Windows 7 and I observe the same behavior; the details of my installation are as follows:

Eclipse for PHP Developers

Version: Neon Milestone 2 (4.6.0M2)
Build id: 20151001-1406

What's curious about it is that the greyed-out "Paste" option applies only to certain remote SSH hosts.

Initially, I thought that the problem may occur only when I try to copy resources across hosts that are on *different subnets* (and separated by a one-way firewall configuration), but now I'm seeing the problem with two hosts on the same subnet.

Why is Paste greyed-out for certain destination hosts???
Comment 9 Eclipse Genie CLA 2021-01-29 15:22:08 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.