Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2014-02-14 02:38:50 -0500
committerUwe Stieber2014-02-14 02:47:10 -0500
commit504eb2ecf6736587fb0cedb536aeb6d5a5645318 (patch)
treed981f289df11f817a3fbd0191c8a3978390a71f2
parent9e6f00a9b1b26583893590782e4e7d72f6f41c25 (diff)
downloadorg.eclipse.tcf-504eb2ecf6736587fb0cedb536aeb6d5a5645318.tar.gz
org.eclipse.tcf-504eb2ecf6736587fb0cedb536aeb6d5a5645318.tar.xz
org.eclipse.tcf-504eb2ecf6736587fb0cedb536aeb6d5a5645318.zip
Target Explorer: Fix potential reentrant viewer entry issue on tree expanded event
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/navigator/events/TreeViewerListener.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/navigator/events/TreeViewerListener.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/navigator/events/TreeViewerListener.java
index db7c2550d..7b8a2fde7 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/navigator/events/TreeViewerListener.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/navigator/events/TreeViewerListener.java
@@ -84,13 +84,15 @@ public class TreeViewerListener implements ITreeViewerListener {
PendingOperationModelNode pendingNode = new PendingOperationNode();
pendingNode.setParent(node);
refreshable.setPendingOperationNode(pendingNode);
- // Trigger a refresh of the view content.
- ChangeEvent ev = new ChangeEvent(node, IContainerModelNode.NOTIFY_CHANGED, null, null);
- EventManager.getInstance().fireEvent(ev);
Runnable runnable = new Runnable() {
@Override
public void run() {
+ // Trigger a refresh of the view content.
+ ChangeEvent ev = new ChangeEvent(node, IContainerModelNode.NOTIFY_CHANGED, null, null);
+ EventManager.getInstance().fireEvent(ev);
+
+ // Get the parent model of the node
IModel model = node.getParent(IModel.class);
Assert.isNotNull(model);

Back to the top