Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamrat Dhillon2013-01-10 19:13:48 +0000
committerMike Rennie2013-01-10 19:13:48 +0000
commit0b0e2c7c55fbe8659cbbe0bc9dbc37b236765382 (patch)
tree289db052b810ba878618d390b37831a12dab2a88
parent05bc8e20299d1fd2c4898ccce9ae2f686fde9749 (diff)
downloadeclipse.platform.debug-0b0e2c7c55fbe8659cbbe0bc9dbc37b236765382.tar.gz
eclipse.platform.debug-0b0e2c7c55fbe8659cbbe0bc9dbc37b236765382.tar.xz
eclipse.platform.debug-0b0e2c7c55fbe8659cbbe0bc9dbc37b236765382.zip
Bug 369012 - [expr] Modifying a variable value using cell editor is notv20130110-191348
reflected in view.
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/update/ExpressionEventHandler.java13
1 files changed, 12 insertions, 1 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/update/ExpressionEventHandler.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/update/ExpressionEventHandler.java
index bf4753243..c72c03b2a 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/update/ExpressionEventHandler.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/update/ExpressionEventHandler.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 IBM Corporation and others.
+ * Copyright (c) 2005, 2012 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
@@ -7,6 +7,7 @@
*
* Contributors:
* IBM Corporation - initial API and implementation
+ * Samrat Dhillon samrat.dhillon@gmail.com - Bug 369012 - [expr] Modifying a variable value using cell editor is not reflected in view.
*******************************************************************************/
package org.eclipse.debug.internal.ui.viewers.update;
@@ -14,6 +15,7 @@ package org.eclipse.debug.internal.ui.viewers.update;
import org.eclipse.debug.core.DebugEvent;
import org.eclipse.debug.core.DebugPlugin;
import org.eclipse.debug.core.model.IExpression;
+import org.eclipse.debug.core.model.IVariable;
import org.eclipse.debug.internal.ui.viewers.model.provisional.IModelDelta;
import org.eclipse.debug.internal.ui.viewers.model.provisional.ModelDelta;
import org.eclipse.debug.internal.ui.viewers.provisional.AbstractModelProxy;
@@ -49,6 +51,15 @@ public class ExpressionEventHandler extends DebugEventHandler {
delta.addNode(expression, flags);
fireDelta(delta);
}
+ if (event.getSource() instanceof IVariable) {
+ IVariable variable = (IVariable) event.getSource();
+ int flags = IModelDelta.NO_CHANGE;
+ if (event.getDetail()==DebugEvent.CONTENT) {
+ flags = flags | IModelDelta.CONTENT;
+ }
+ delta.addNode(variable, flags);
+ fireDelta(delta);
+ }
}
protected void refreshRoot(DebugEvent event) {

Back to the top