Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2012-02-23 12:01:12 -0500
committerUwe Stieber2012-02-23 12:01:59 -0500
commitba119c0a8a91f652524647e4106fb2fa9b961c1a (patch)
tree9d1088c475db6c8714bfc744bae526dd79761625
parent9621cbdba3c14763c7d9785301e6b33cc2a387ea (diff)
downloadorg.eclipse.tcf-ba119c0a8a91f652524647e4106fb2fa9b961c1a.tar.gz
org.eclipse.tcf-ba119c0a8a91f652524647e4106fb2fa9b961c1a.tar.xz
org.eclipse.tcf-ba119c0a8a91f652524647e4106fb2fa9b961c1a.zip
Target Explorer: Fix mysterious "Widget Disposed" exceptions with a second root common navigator content contribution
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.ui.views.workingsets/src/org/eclipse/tcf/te/ui/views/workingsets/WorkingSetsContentProvider.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.ui.views.workingsets/src/org/eclipse/tcf/te/ui/views/workingsets/WorkingSetsContentProvider.java b/target_explorer/plugins/org.eclipse.tcf.te.ui.views.workingsets/src/org/eclipse/tcf/te/ui/views/workingsets/WorkingSetsContentProvider.java
index 8952dd720..4276d9029 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.ui.views.workingsets/src/org/eclipse/tcf/te/ui/views/workingsets/WorkingSetsContentProvider.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.ui.views.workingsets/src/org/eclipse/tcf/te/ui/views/workingsets/WorkingSetsContentProvider.java
@@ -95,7 +95,7 @@ public class WorkingSetsContentProvider implements ICommonContentProvider {
@Override
public void propertyChange(PropertyChangeEvent event) {
if (SHOW_TOP_LEVEL_WORKING_SETS.equals(event.getProperty())) {
- updateRootMode();
+ updateRootMode(true);
}
}
};
@@ -137,7 +137,7 @@ public class WorkingSetsContentProvider implements ICommonContentProvider {
extensionStateModel = config.getExtensionStateModel();
extensionStateModel.addPropertyChangeListener(rootModeListener);
- updateRootMode();
+ updateRootMode(false);
}
/* (non-Javadoc)
@@ -302,7 +302,7 @@ public class WorkingSetsContentProvider implements ICommonContentProvider {
/**
* Update the common navigator root mode.
*/
- private void updateRootMode() {
+ private void updateRootMode(boolean updateInput) {
CommonNavigator navigator = viewer.getCommonNavigator();
if (navigator == null) return;
@@ -319,7 +319,7 @@ public class WorkingSetsContentProvider implements ICommonContentProvider {
filterActive = false;
}
- if (!newInput.equals(viewer.getInput())) {
+ if (updateInput && !newInput.equals(viewer.getInput())) {
viewer.setInput(newInput);
}
setFilterActive(filterActive);

Back to the top