diff options
author | Karthik Bhat | 2018-04-25 03:40:04 +0000 |
---|---|---|
committer | Sarika Sinha | 2018-04-25 06:56:01 +0000 |
commit | f252a8cfc76f0c0e1e951f5ffe082ef4cff71d7c (patch) | |
tree | 43bcd9f83e8a02dcfcc370d2a0b92c47bb94b341 | |
parent | b8ad4737eaf609a0297ac42ef247f43030ae2e5e (diff) | |
download | eclipse.platform.debug-f252a8cfc76f0c0e1e951f5ffe082ef4cff71d7c.tar.gz eclipse.platform.debug-f252a8cfc76f0c0e1e951f5ffe082ef4cff71d7c.tar.xz eclipse.platform.debug-f252a8cfc76f0c0e1e951f5ffe082ef4cff71d7c.zip |
Bug 534015 - Remove Expression Icon Enabled even when an expression is
not added
Delete Expression icon is enabled in debug session as soon as we click
to add an expression.
It should be enabled after an expression has been added and selected.
Change-Id: Iec79c29965490fce911392598faf8c2935654c35
Signed-off-by: Karthik Bhat <kv.bhat@samsung.com>
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/expressions/RemoveExpressionAction.java | 2 |
1 files changed, 1 insertions, 1 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 1b2e92367..78aca1728 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 @@ -74,7 +74,7 @@ public class RemoveExpressionAction extends AbstractSelectionActionDelegate { */ @Override protected boolean isEnabledFor(Object element) { - return (element instanceof IExpression) || (element instanceof IAdaptable); + return DebugPlugin.getAdapter(element, IExpression.class) != null; } } |