Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Schwarz2014-01-10 11:31:56 +0000
committerTobias Schwarz2014-01-10 11:31:56 +0000
commit011db9ec2da8a73801b3ec18122e34d17aa893c3 (patch)
tree56e949587504b9a023ba69a35c3a95da74b38779 /target_explorer/plugins/org.eclipse.tcf.te.runtime.model
parent23f6541af12a8ce0dedd23932e4f48fd9c202477 (diff)
downloadorg.eclipse.tcf-011db9ec2da8a73801b3ec18122e34d17aa893c3.tar.gz
org.eclipse.tcf-011db9ec2da8a73801b3ec18122e34d17aa893c3.tar.xz
org.eclipse.tcf-011db9ec2da8a73801b3ec18122e34d17aa893c3.zip
Target Explorer: fix processes editor tab refresh
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.runtime.model')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.runtime.model/src/org/eclipse/tcf/te/runtime/model/ContainerModelNode.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.runtime.model/src/org/eclipse/tcf/te/runtime/model/ContainerModelNode.java b/target_explorer/plugins/org.eclipse.tcf.te.runtime.model/src/org/eclipse/tcf/te/runtime/model/ContainerModelNode.java
index 510225757..abf30e38b 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.runtime.model/src/org/eclipse/tcf/te/runtime/model/ContainerModelNode.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.runtime.model/src/org/eclipse/tcf/te/runtime/model/ContainerModelNode.java
@@ -185,10 +185,11 @@ public class ContainerModelNode extends ModelNode implements IContainerModelNode
boolean removed = false;
boolean changed = setChangeEventsEnabled(false);
+ IModelNode[] children = null;
try {
childListLock.lock();
- IModelNode[] children = internalGetChildren();
+ children = internalGetChildren();
for (IModelNode element : children) {
removed |= remove(element, true);
}
@@ -198,6 +199,10 @@ public class ContainerModelNode extends ModelNode implements IContainerModelNode
if (changed) setChangeEventsEnabled(true);
+ if (removed) {
+ fireChangeEvent(NOTIFY_REMOVED, children, null);
+ }
+
return removed;
}

Back to the top