summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Fisher2010-12-01 20:47:14 (EST)
committerRyan D. Brooks2010-12-01 20:47:14 (EST)
commitdce09c570b7a51d13b06796d391184c365f655b4 (patch)
treed0e3ff5e883768818f0cc2f23c2433e25b7af069
parent5d1750479c262cdc635ffb47ce23830d4686453e (diff)
downloadorg.eclipse.osee-dce09c570b7a51d13b06796d391184c365f655b4.zip
org.eclipse.osee-dce09c570b7a51d13b06796d391184c365f655b4.tar.gz
org.eclipse.osee-dce09c570b7a51d13b06796d391184c365f655b4.tar.bz2
refinement: Update MessageWatch for aggregated libraries
Changed MessageWatch so that the loaded libraries are shown as the tooltiptext of the status line and the table area. Now the status text just states whether or not the libraries are loaded. This is necessary since with aggregation their may be many providers, so the status line would be too large and become cumbersome.
-rw-r--r--plugins/org.eclipse.osee.ote.ui.message/src/org/eclipse/osee/ote/ui/message/watch/WatchView.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/org.eclipse.osee.ote.ui.message/src/org/eclipse/osee/ote/ui/message/watch/WatchView.java b/plugins/org.eclipse.osee.ote.ui.message/src/org/eclipse/osee/ote/ui/message/watch/WatchView.java
index f4f4b3b..2e7330f 100644
--- a/plugins/org.eclipse.osee.ote.ui.message/src/org/eclipse/osee/ote/ui/message/watch/WatchView.java
+++ b/plugins/org.eclipse.osee.ote.ui.message/src/org/eclipse/osee/ote/ui/message/watch/WatchView.java
@@ -26,6 +26,7 @@ import java.util.Set;
import java.util.logging.Level;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
+
import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.core.runtime.IExtension;
import org.eclipse.core.runtime.IProgressMonitor;
@@ -954,7 +955,10 @@ public final class WatchView extends ViewPart implements IActionable, IMessageDi
@Override
public void run() {
try {
- statusTxt.setText("loaded with " + dictionary.getMessageLibraryVersion());
+ String libraryProviders = String.format("Providers:\n%s", dictionary.getMessageLibraryVersion());
+ statusTxt.setText("libraries loaded");
+ statusTxt.setToolTipText(libraryProviders);
+ treeViewer.getTree().setToolTipText(libraryProviders);
} catch (Exception ex) {
OseeLog.log(Activator.class, Level.SEVERE, "exception while processing library", ex);
}
@@ -974,6 +978,7 @@ public final class WatchView extends ViewPart implements IActionable, IMessageDi
}
private void setNoLibraryStatus() {
+ treeViewer.getTree().setToolTipText("");
statusTxt.setText("no library detected");
}