Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Schnekenburger2014-05-06 11:54:26 +0000
committerGerrit Code Review @ Eclipse.org2014-05-06 11:54:26 +0000
commitf8a82b9963b98e70c5a864820aea7d11d30358ba (patch)
treef86f3d2103a39b0fdbfbda8412f2357ceba2fb7c /plugins/views
parent5e02bb2e917ef1c3d97af7102bd0964c7cc7850e (diff)
parent104b0f1d1bc9402290b04c79bb14d90c5b795508 (diff)
downloadorg.eclipse.papyrus-f8a82b9963b98e70c5a864820aea7d11d30358ba.tar.gz
org.eclipse.papyrus-f8a82b9963b98e70c5a864820aea7d11d30358ba.tar.xz
org.eclipse.papyrus-f8a82b9963b98e70c5a864820aea7d11d30358ba.zip
Merge "Bug 290261 - [Usability] Papyrus shall provide a copy/paste/cut feature - swap command ids to have the default papyrus copy/paste/cut override the org.eclipse.ui.edit.copy/paste/cut - add menus for graphical copy/paste Change-Id: Ic0769df6c97ba7aefb42e6a0861a05b0dd8fbfce Signed-off-by: Benoit Maggi <benoit.maggi@cea.fr>"
Diffstat (limited to 'plugins/views')
-rw-r--r--plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/src/org/eclipse/papyrus/views/modelexplorer/handler/CopyHandler.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/src/org/eclipse/papyrus/views/modelexplorer/handler/CopyHandler.java b/plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/src/org/eclipse/papyrus/views/modelexplorer/handler/CopyHandler.java
index 4e223669af6..93240f017a7 100644
--- a/plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/src/org/eclipse/papyrus/views/modelexplorer/handler/CopyHandler.java
+++ b/plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/src/org/eclipse/papyrus/views/modelexplorer/handler/CopyHandler.java
@@ -59,4 +59,14 @@ public class CopyHandler extends AbstractCommandHandler {
return !getSelectedElements().isEmpty();
}
+ /* (non-Javadoc)
+ * @see org.eclipse.papyrus.views.modelexplorer.handler.AbstractCommandHandler#setEnabled(java.lang.Object)
+ */
+ @Override
+ public void setEnabled(Object evaluationContext) {
+ PapyrusClipboard<Object> instance = PapyrusClipboard.getInstance();
+ super.setEnabled(evaluationContext); // setenabled should'nt clear/modify the clipboard
+ PapyrusClipboard.setInstance(instance);
+ }
+
}

Back to the top