diff options
author | Darin Wright | 2005-10-25 20:17:46 +0000 |
---|---|---|
committer | Darin Wright | 2005-10-25 20:17:46 +0000 |
commit | f7e1a92cc1c931ea16e98641464e61cc04e20921 (patch) | |
tree | ee467979589817f5d33b2a617e95b38c2e9b2ae9 /org.eclipse.debug.ui | |
parent | fb817b195e5d91b6960a5ed82807fc17cf98e94a (diff) | |
download | eclipse.platform.debug-f7e1a92cc1c931ea16e98641464e61cc04e20921.tar.gz eclipse.platform.debug-f7e1a92cc1c931ea16e98641464e61cc04e20921.tar.xz eclipse.platform.debug-f7e1a92cc1c931ea16e98641464e61cc04e20921.zip |
Bug 112670 - Can't toggle selection of treeitem in variables view
Diffstat (limited to 'org.eclipse.debug.ui')
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/variables/VariablesView.java | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/variables/VariablesView.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/variables/VariablesView.java index 2adcedab4..7d77097e6 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/variables/VariablesView.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/variables/VariablesView.java @@ -681,7 +681,18 @@ public class VariablesView extends AbstractDebugEventHandlerView implements ISel setAction(COPY_ACTION, getAction(DETAIL_COPY_ACTION)); getViewSite().getActionBars().updateActionBars(); setFocusViewer((Viewer)getDetailViewer()); + IAction assist = getAction("ContentAssist"); //$NON-NLS-1$ + getSite().getKeyBindingService().registerAction(assist); } + + /* (non-Javadoc) + * @see org.eclipse.swt.events.FocusAdapter#focusLost(org.eclipse.swt.events.FocusEvent) + */ + public void focusLost(FocusEvent e) { + IAction assist = getAction("ContentAssist"); //$NON-NLS-1$ + getSite().getKeyBindingService().unregisterAction(assist); + } + }); // add a context menu to the detail area @@ -843,7 +854,6 @@ public class VariablesView extends AbstractDebugEventHandlerView implements ISel textAction.setHoverImageDescriptor(DebugPluginImages.getImageDescriptor(IDebugUIConstants.IMG_LCL_CONTENT_ASSIST)); textAction.setDisabledImageDescriptor(DebugPluginImages.getImageDescriptor(IDebugUIConstants.IMG_DLCL_CONTENT_ASSIST)); setAction("ContentAssist", textAction); //$NON-NLS-1$ - getSite().getKeyBindingService().registerAction(textAction); textAction= new TextViewerAction(getDetailViewer(), ITextOperationTarget.SELECT_ALL); textAction.configureAction(VariablesViewMessages.VariablesView_Select__All_5, "", ""); //$NON-NLS-1$ //$NON-NLS-2$ |