Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew M Finkbeiner2012-03-30 16:20:46 -0400
committerRoberto E. Escobar2012-03-30 16:20:46 -0400
commite893a98017ba0015cad152d3a51817b0ea4698c6 (patch)
tree91af544f74386990217afc3fea3fa32f976d2abd /plugins/org.eclipse.osee.ote.ui.message
parentf383e095197ab97cd19575171cd6134b8f7abc4d (diff)
downloadorg.eclipse.osee-e893a98017ba0015cad152d3a51817b0ea4698c6.tar.gz
org.eclipse.osee-e893a98017ba0015cad152d3a51817b0ea4698c6.tar.xz
org.eclipse.osee-e893a98017ba0015cad152d3a51817b0ea4698c6.zip
feature[ats_PBMQF]: Check dispose for clean shutdown when service gets unbinded
Diffstat (limited to 'plugins/org.eclipse.osee.ote.ui.message')
-rw-r--r--plugins/org.eclipse.osee.ote.ui.message/src/org/eclipse/osee/ote/ui/message/view/MessageView.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/plugins/org.eclipse.osee.ote.ui.message/src/org/eclipse/osee/ote/ui/message/view/MessageView.java b/plugins/org.eclipse.osee.ote.ui.message/src/org/eclipse/osee/ote/ui/message/view/MessageView.java
index 7f4f6c845a..623e4303a4 100644
--- a/plugins/org.eclipse.osee.ote.ui.message/src/org/eclipse/osee/ote/ui/message/view/MessageView.java
+++ b/plugins/org.eclipse.osee.ote.ui.message/src/org/eclipse/osee/ote/ui/message/view/MessageView.java
@@ -571,10 +571,12 @@ public class MessageView extends ViewPart {
public void run() {
try {
treeBuilder.removeProvider(service);
- if(treeBuilder.getNumProviders() == 0){
- setLibraryUnloadedState();
- } else {
- treeViewer.getTree().setToolTipText(String.format("Providers:\n%s", messageProviderVersion.getVersion()));
+ if(!treeViewer.getTree().isDisposed()){
+ if(treeBuilder.getNumProviders() == 0){
+ setLibraryUnloadedState();
+ } else {
+ treeViewer.getTree().setToolTipText(String.format("Providers:\n%s", messageProviderVersion.getVersion()));
+ }
}
} catch (Exception e) {
OseeLog.log(Activator.class, Level.SEVERE, "Problem during message jar processing", e);

Back to the top