diff options
author | Martin Oberhuber | 2010-02-28 22:54:47 +0000 |
---|---|---|
committer | Martin Oberhuber | 2010-02-28 22:54:47 +0000 |
commit | f26e627ddc919812a4de2520e6034d006093b692 (patch) | |
tree | 2d530fa3115ab1fcbf28a11c48f7684a94508e8d /terminal | |
parent | 027951193f741966046e62187f8ee9681be9d3a5 (diff) | |
download | org.eclipse.tm-f26e627ddc919812a4de2520e6034d006093b692.tar.gz org.eclipse.tm-f26e627ddc919812a4de2520e6034d006093b692.tar.xz org.eclipse.tm-f26e627ddc919812a4de2520e6034d006093b692.zip |
Bug 296212 - [terminal] Fail to paste text into terminal control on some Linux hosts
Diffstat (limited to 'terminal')
-rw-r--r-- | terminal/org.eclipse.tm.terminal/src/org/eclipse/tm/internal/terminal/control/actions/TerminalActionPaste.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/terminal/org.eclipse.tm.terminal/src/org/eclipse/tm/internal/terminal/control/actions/TerminalActionPaste.java b/terminal/org.eclipse.tm.terminal/src/org/eclipse/tm/internal/terminal/control/actions/TerminalActionPaste.java index f79dd2324..3c33be2be 100644 --- a/terminal/org.eclipse.tm.terminal/src/org/eclipse/tm/internal/terminal/control/actions/TerminalActionPaste.java +++ b/terminal/org.eclipse.tm.terminal/src/org/eclipse/tm/internal/terminal/control/actions/TerminalActionPaste.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2004, 2009 Wind River Systems, Inc. and others. + * Copyright (c) 2004, 2010 Wind River Systems, Inc. and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -16,6 +16,7 @@ * Anna Dushistova (MontaVista) - [227537] moved actions from terminal.view to terminal plugin * Uwe Stieber (Wind River) - [260372] [terminal] Certain terminal actions are enabled if no target terminal control is available * Uwe Stieber (Wind River) - [294719] [terminal] SWT Widget disposed in TerminalActionPaste + * Martin Oberhuber (Wind River) - [296212] Cannot paste text into terminal on some Linux hosts *******************************************************************************/ package org.eclipse.tm.internal.terminal.control.actions; @@ -53,7 +54,7 @@ public class TerminalActionPaste extends AbstractTerminalAction { public void updateAction(boolean aboutToShow) { ITerminalViewControl target = getTarget(); - boolean bEnabled = aboutToShow && target != null && target.getClipboard() != null && !target.getClipboard().isDisposed(); + boolean bEnabled = target != null && target.getClipboard() != null && !target.getClipboard().isDisposed(); if (bEnabled) { String strText = (String) target.getClipboard().getContents( TextTransfer.getInstance()); |