Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Roth2015-03-21 06:50:04 +0000
committerMichael Rennie2015-03-24 16:26:42 +0000
commitc2fb26c5fc84522375f13f6566e25efba91ebb17 (patch)
tree2df4b5b0858a569554ca91333bdf1e6feb439c47
parent2319ae9fbde748099675d51a82648988d2461f0a (diff)
downloadeclipse.platform.debug-c2fb26c5fc84522375f13f6566e25efba91ebb17.tar.gz
eclipse.platform.debug-c2fb26c5fc84522375f13f6566e25efba91ebb17.tar.xz
eclipse.platform.debug-c2fb26c5fc84522375f13f6566e25efba91ebb17.zip
Bug 327222 - [expr] Remove Selected Expressions button is enabled when
Add new expression row is selected Only enable the remove expression action for expressions, and implicitly disable it for the add new expression placeholder. Change-Id: I1bd303d85fa7703435fce9f07166d51eb42ee3cf Change-Id: I1bd303d85fa7703435fce9f07166d51eb42ee3cf Signed-off-by: Robert Roth <robert.roth.off@gmail.com>
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/expressions/RemoveExpressionAction.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/expressions/RemoveExpressionAction.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/expressions/RemoveExpressionAction.java
index 2ca6e9ebe..b3b1a03e8 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/expressions/RemoveExpressionAction.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/expressions/RemoveExpressionAction.java
@@ -68,5 +68,13 @@ public class RemoveExpressionAction extends AbstractSelectionActionDelegate {
job.setSystem(true);
schedule(job);
}
+
+ /* (non-Javadoc)
+ * @see org.eclipse.debug.internal.ui.actions.AbstractSelectionActionDelegate#isEnabledFor(java.lang.Object)
+ */
+ @Override
+ protected boolean isEnabledFor(Object element) {
+ return (element instanceof IExpression) || (element instanceof IAdaptable);
+ }
}

Back to the top