Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Leherbauer2015-06-25 04:52:18 -0400
committerAnton Leherbauer2015-06-25 04:52:40 -0400
commited2cb7273f4886b4765ea7fb7fa1c40779b625e9 (patch)
treee29e8aa05209a45a59c99dcd0a5266d9620c2b8d /plugins
parentf1f8ca416937b26507c799791727cb07cf132f3a (diff)
downloadorg.eclipse.tcf-ed2cb7273f4886b4765ea7fb7fa1c40779b625e9.tar.gz
org.eclipse.tcf-ed2cb7273f4886b4765ea7fb7fa1c40779b625e9.tar.xz
org.eclipse.tcf-ed2cb7273f4886b4765ea7fb7fa1c40779b625e9.zip
TCF Debugger: Fix renaming of duplicate expressions
Remove only the expression which was modified.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFNodeExpression.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFNodeExpression.java b/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFNodeExpression.java
index 2e91c4511..9c9db0a26 100644
--- a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFNodeExpression.java
+++ b/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFNodeExpression.java
@@ -2130,9 +2130,7 @@ public class TCFNodeExpression extends TCFNode implements IElementEditor, ICastT
}
else if (!node.script.equals(value)) {
IExpressionManager m = DebugPlugin.getDefault().getExpressionManager();
- for (final IExpression e : m.getExpressions()) {
- if (node.script.equals(e.getExpressionText())) m.removeExpression(e);
- }
+ m.removeExpression(node.platform_expression);
IExpression e = m.newWatchExpression((String)value);
m.addExpression(e);
}

Back to the top