Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2013-12-10 02:20:03 -0500
committerUwe Stieber2013-12-10 02:20:03 -0500
commit4f307e3c631827e5dda6a96871fdbc75da0670cb (patch)
treea48968d73957ae8b49040f5df121d3b41b03571a /target_explorer
parent6477f95495270fbc24acbb0c0e68f08dc225c472 (diff)
downloadorg.eclipse.tcf-4f307e3c631827e5dda6a96871fdbc75da0670cb.tar.gz
org.eclipse.tcf-4f307e3c631827e5dda6a96871fdbc75da0670cb.tar.xz
org.eclipse.tcf-4f307e3c631827e5dda6a96871fdbc75da0670cb.zip
Target Explorer: Content provider must not dispose runtime model if getting disposed itself
Diffstat (limited to 'target_explorer')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/model/ModelManager.java23
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/navigator/runtime/ContentProvider.java1
2 files changed, 0 insertions, 24 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/model/ModelManager.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/model/ModelManager.java
index 3c0ef5494..e323927ef 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/model/ModelManager.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.core/src/org/eclipse/tcf/te/tcf/processes/core/model/ModelManager.java
@@ -106,27 +106,4 @@ public class ModelManager {
if (Protocol.isDispatchThread()) runnable.run();
else Protocol.invokeAndWait(runnable);
}
-
- /**
- * Dispose all runtime models.
- */
- public static void disposeAllRuntimeModels() {
- if (runtimeModels.isEmpty()) return;
-
- final IRuntimeModel[] models = runtimeModels.values().toArray(new IRuntimeModel[runtimeModels.values().size()]);
- runtimeModels.clear();
-
- Runnable runnable = new Runnable() {
- @Override
- public void run() {
- for (IRuntimeModel model : models) {
- model.dispose();
- }
- }
- };
-
- if (Protocol.isDispatchThread()) runnable.run();
- else Protocol.invokeAndWait(runnable);
- }
-
}
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/navigator/runtime/ContentProvider.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/navigator/runtime/ContentProvider.java
index 97c28eeb1..64e7d8616 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/navigator/runtime/ContentProvider.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/navigator/runtime/ContentProvider.java
@@ -300,7 +300,6 @@ public class ContentProvider implements ITreeContentProvider {
*/
@Override
public void dispose() {
- ModelManager.disposeAllRuntimeModels();
}
/* (non-Javadoc)

Back to the top