Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2013-10-23 04:33:14 -0400
committerUwe Stieber2013-10-23 04:33:14 -0400
commit8b49d1b8240c698b33f36098330f844a8b28e697 (patch)
treebbba47e9d073425647ba1767dc2ed80eaad10f91 /target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core
parent39834a77766568f15c099000d4da467a43780a85 (diff)
downloadorg.eclipse.tcf-8b49d1b8240c698b33f36098330f844a8b28e697.tar.gz
org.eclipse.tcf-8b49d1b8240c698b33f36098330f844a8b28e697.tar.xz
org.eclipse.tcf-8b49d1b8240c698b33f36098330f844a8b28e697.zip
Target Explorer: Fix child list lost while refreshing processes runtime model
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core')
-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.java6
1 files changed, 4 insertions, 2 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 83720350d..ed28c16d2 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
@@ -75,10 +75,12 @@ public class RuntimeModelUpdateService extends AbstractModelService<IRuntimeMode
if (srcRefreshable.getQueryState(QueryType.CONTEXT) == QueryState.IN_PROGRESS || srcRefreshable.getQueryState(QueryType.CHILD_LIST) == QueryState.IN_PROGRESS) {
dstRefreshable.setPendingOperationNode(srcRefreshable.getPendingOperationNode());
}
- if (srcRefreshable.getQueryState(QueryType.CONTEXT) != QueryState.PENDING) {
+ Assert.isTrue(srcRefreshable.getQueryState(QueryType.CONTEXT) != QueryState.IN_PROGRESS, "Context query of node '" + src.getName() + "' in progress while updating model."); //$NON-NLS-1$ //$NON-NLS-2$
+ if (srcRefreshable.getQueryState(QueryType.CONTEXT) == QueryState.DONE) {
dstRefreshable.setQueryState(QueryType.CONTEXT, srcRefreshable.getQueryState(QueryType.CONTEXT));
}
- if (srcRefreshable.getQueryState(QueryType.CHILD_LIST) != QueryState.PENDING) {
+ Assert.isTrue(srcRefreshable.getQueryState(QueryType.CHILD_LIST) != QueryState.IN_PROGRESS, "Child list query of node '" + src.getName() + "' in progress while updating model."); //$NON-NLS-1$ //$NON-NLS-2$
+ if (srcRefreshable.getQueryState(QueryType.CHILD_LIST) == QueryState.DONE) {
dstRefreshable.setQueryState(QueryType.CHILD_LIST, srcRefreshable.getQueryState(QueryType.CHILD_LIST));
if (dst instanceof IContainerModelNode) {
((IContainerModelNode)dst).clear();

Back to the top