diff options
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/model/runtime/services/RuntimeModelUpdateService.java')
-rw-r--r-- | target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/model/runtime/services/RuntimeModelUpdateService.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/model/runtime/services/RuntimeModelUpdateService.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/model/runtime/services/RuntimeModelUpdateService.java index 8e455dfec..7630b2916 100644 --- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/model/runtime/services/RuntimeModelUpdateService.java +++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/model/runtime/services/RuntimeModelUpdateService.java @@ -158,6 +158,11 @@ public class RuntimeModelUpdateService extends AbstractModelService<IRuntimeMode for (IProcessContextNode candidate : newChildren) { String id = candidate.getStringProperty(IProcessContextNodeProperties.PROPERTY_ID); if (id == null) continue; + // If the context node got invalid while refreshing the tree, skip the + // context. The context will be removed from the tree as a result, if + // the context had been added to the tree before. If the context was not + // in the tree before, it will not be added at all. + if (candidate.isProperty(IProcessContextNodeProperties.PROPERTY_INVALID_CTX, true)) continue; // Find the old process context node IProcessContextNode oldNode = findInList(id, oldChildren); if (oldNode != null) { |