diff options
author | Darin Wright | 2010-03-18 14:36:10 +0000 |
---|---|---|
committer | Darin Wright | 2010-03-18 14:36:10 +0000 |
commit | fbba645f295d261222f3437e993cc69662fecacd (patch) | |
tree | b5557cd68c3ba35b7baf621618edb453ff1acce0 /org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/expression | |
parent | ac20917fa9322e3c953cd972c279e3649d060c1f (diff) | |
download | eclipse.platform.debug-fbba645f295d261222f3437e993cc69662fecacd.tar.gz eclipse.platform.debug-fbba645f295d261222f3437e993cc69662fecacd.tar.xz eclipse.platform.debug-fbba645f295d261222f3437e993cc69662fecacd.zip |
Bug 306368 - The command ("paste") is undefined
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/expression')
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/expression/ExpressionView.java | 30 |
1 files changed, 3 insertions, 27 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/expression/ExpressionView.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/expression/ExpressionView.java index 895a644be..f2c515c38 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/expression/ExpressionView.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/expression/ExpressionView.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2009 IBM Corporation and others. + * Copyright (c) 2000, 2010 IBM Corporation 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 @@ -44,14 +44,11 @@ import org.eclipse.swt.dnd.Clipboard; import org.eclipse.swt.dnd.DND; import org.eclipse.swt.dnd.TextTransfer; import org.eclipse.swt.dnd.Transfer; -import org.eclipse.swt.events.FocusEvent; -import org.eclipse.swt.events.FocusListener; -import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Display; import org.eclipse.ui.ISharedImages; import org.eclipse.ui.IWorkbenchActionConstants; +import org.eclipse.ui.IWorkbenchCommandConstants; import org.eclipse.ui.PlatformUI; -import org.eclipse.ui.texteditor.IWorkbenchActionDefinitionIds; /** * Displays expressions and their values with a detail @@ -164,7 +161,7 @@ public class ExpressionView extends VariablesView { protected void createActions() { super.createActions(); fPasteAction = new PasteWatchExpressionsAction(this); - configure(fPasteAction, IWorkbenchActionDefinitionIds.PASTE, PASTE_ACTION, ISharedImages.IMG_TOOL_PASTE); + configure(fPasteAction, IWorkbenchCommandConstants.EDIT_PASTE, PASTE_ACTION, ISharedImages.IMG_TOOL_PASTE); } /** @@ -203,27 +200,6 @@ public class ExpressionView extends VariablesView { } return false; } - - /* (non-Javadoc) - * @see org.eclipse.debug.internal.ui.views.variables.VariablesView#createTreeViewer(org.eclipse.swt.widgets.Composite) - */ - protected TreeModelViewer createTreeViewer(Composite parent) { - TreeModelViewer viewer = super.createTreeViewer(parent); - viewer.getTree().addFocusListener(new FocusListener() { - public void focusLost(FocusEvent e) { - if (fPasteAction != null) { - getViewSite().getActionBars().setGlobalActionHandler(PASTE_ACTION, null); - } - } - - public void focusGained(FocusEvent e) { - if (fPasteAction != null) { - getViewSite().getActionBars().setGlobalActionHandler(PASTE_ACTION, fPasteAction); - } - } - }); - return viewer; - } /** * Pastes the selection into the given target |