Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Torregrosa Paez2015-11-27 05:49:13 -0500
committerPablo Torregrosa Paez2015-11-27 05:49:19 -0500
commita0ac2a8323dfcc06cea1733d0a2bf23b55b9cdb7 (patch)
treed017cd46346729c19f8c090077359116e04701e6
parent8ace9ffa9b85f3ba871a4f810b720349badd7df1 (diff)
downloadorg.eclipse.tcf-a0ac2a8323dfcc06cea1733d0a2bf23b55b9cdb7.tar.gz
org.eclipse.tcf-a0ac2a8323dfcc06cea1733d0a2bf23b55b9cdb7.tar.xz
org.eclipse.tcf-a0ac2a8323dfcc06cea1733d0a2bf23b55b9cdb7.zip
Target Explorer: Do not continue refreshing nodes if there is an error
Change-Id: Ifcfe4c9adafbfeb9aeb85f02a69cd90fcff0edbc Signed-off-by: Pablo Torregrosa Paez <pablo.torregrosa@windriver.com>
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/model/runtime/services/RuntimeModelRefreshService.java6
1 files changed, 3 insertions, 3 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/RuntimeModelRefreshService.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/model/runtime/services/RuntimeModelRefreshService.java
index e225c7556..abf739bec 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/model/runtime/services/RuntimeModelRefreshService.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/model/runtime/services/RuntimeModelRefreshService.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2013, 2014 Wind River Systems, Inc. and others. All rights reserved.
+ * Copyright (c) 2013, 2015 Wind River Systems, Inc. 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 http://www.eclipse.org/legal/epl-v10.html
@@ -469,7 +469,7 @@ public class RuntimeModelRefreshService extends AbstractModelService<IRuntimeMod
protected void internalDone(Object caller, IStatus status) {
// More nodes to process?
int newIndex = index + 1;
- if (newIndex < nodes.length) {
+ if (newIndex < nodes.length && status.isOK()) {
doAutoRefresh(model, nodes, newIndex, collector);
}
// Remove the outer callback from the collector
@@ -488,7 +488,7 @@ public class RuntimeModelRefreshService extends AbstractModelService<IRuntimeMod
childCollector.initDone();
} else {
// Invoke the inner callback right away
- innerCallback.done(this, Status.OK_STATUS);
+ innerCallback.done(this, status);
}
}
};

Back to the top