Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew M Finkbeiner2012-03-29 15:00:26 -0400
committerRoberto E. Escobar2012-03-29 15:00:26 -0400
commit1bbf2456920b670ce9db8e5069e5e8ad842d80b2 (patch)
treeccdccc5193501c105d06218e85a3fcc0e1c31cd1 /plugins/org.eclipse.osee.ote.ui.message
parent6f9ea38f09a58595082d2447f9b6ac0387a73e42 (diff)
downloadorg.eclipse.osee-1bbf2456920b670ce9db8e5069e5e8ad842d80b2.tar.gz
org.eclipse.osee-1bbf2456920b670ce9db8e5069e5e8ad842d80b2.tar.xz
org.eclipse.osee-1bbf2456920b670ce9db8e5069e5e8ad842d80b2.zip
feature[ats_PBMQF]: Update message subscription to use MessageDefinitionProvider
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/tree/MessageUpdateListener.java4
-rw-r--r--plugins/org.eclipse.osee.ote.ui.message/src/org/eclipse/osee/ote/ui/message/tree/WatchList.java5
-rw-r--r--plugins/org.eclipse.osee.ote.ui.message/src/org/eclipse/osee/ote/ui/message/tree/WatchedElementNode.java4
3 files changed, 10 insertions, 3 deletions
diff --git a/plugins/org.eclipse.osee.ote.ui.message/src/org/eclipse/osee/ote/ui/message/tree/MessageUpdateListener.java b/plugins/org.eclipse.osee.ote.ui.message/src/org/eclipse/osee/ote/ui/message/tree/MessageUpdateListener.java
index cb14f8c46f..343941d587 100644
--- a/plugins/org.eclipse.osee.ote.ui.message/src/org/eclipse/osee/ote/ui/message/tree/MessageUpdateListener.java
+++ b/plugins/org.eclipse.osee.ote.ui.message/src/org/eclipse/osee/ote/ui/message/tree/MessageUpdateListener.java
@@ -11,6 +11,7 @@
package org.eclipse.osee.ote.ui.message.tree;
import java.util.LinkedList;
+
import org.eclipse.jface.viewers.TreeViewer;
import org.eclipse.osee.framework.ui.swt.Displays;
import org.eclipse.osee.ote.client.msg.core.AbstractMessageListener;
@@ -86,6 +87,8 @@ public class MessageUpdateListener extends AbstractMessageListener {
public void subscriptionResolved(IMessageSubscription subscription) {
super.subscriptionResolved(subscription);
node.setResolved(true);
+ node.setEnabled(true);
+ node.setDisabledReason("");
update(node);
}
@@ -94,6 +97,7 @@ public class MessageUpdateListener extends AbstractMessageListener {
super.subscriptionUnresolved(subscription);
node.setResolved(false);
update(node);
+ subscriptionInvalidated(subscription);
}
private void update(AbstractTreeNode[] nodes) {
diff --git a/plugins/org.eclipse.osee.ote.ui.message/src/org/eclipse/osee/ote/ui/message/tree/WatchList.java b/plugins/org.eclipse.osee.ote.ui.message/src/org/eclipse/osee/ote/ui/message/tree/WatchList.java
index adebdc3bee..56f458ce27 100644
--- a/plugins/org.eclipse.osee.ote.ui.message/src/org/eclipse/osee/ote/ui/message/tree/WatchList.java
+++ b/plugins/org.eclipse.osee.ote.ui.message/src/org/eclipse/osee/ote/ui/message/tree/WatchList.java
@@ -14,6 +14,7 @@ import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.Iterator;
+
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.viewers.ITreeContentProvider;
import org.eclipse.jface.viewers.TreeViewer;
@@ -90,8 +91,8 @@ public class WatchList implements ITreeContentProvider {
service = (IOteMessageService) newInput;
viewRefresher.start();
} else {
- deleteAll();
- rootNode = null;
+// deleteAll();
+// rootNode = null;
service = null;
viewRefresher.stop();
}
diff --git a/plugins/org.eclipse.osee.ote.ui.message/src/org/eclipse/osee/ote/ui/message/tree/WatchedElementNode.java b/plugins/org.eclipse.osee.ote.ui.message/src/org/eclipse/osee/ote/ui/message/tree/WatchedElementNode.java
index 8609032bf2..6ab6e02f4a 100644
--- a/plugins/org.eclipse.osee.ote.ui.message/src/org/eclipse/osee/ote/ui/message/tree/WatchedElementNode.java
+++ b/plugins/org.eclipse.osee.ote.ui.message/src/org/eclipse/osee/ote/ui/message/tree/WatchedElementNode.java
@@ -12,6 +12,7 @@ package org.eclipse.osee.ote.ui.message.tree;
import java.util.Collection;
import java.util.HashMap;
+
import org.eclipse.nebula.widgets.xviewer.XViewerColumn;
import org.eclipse.osee.ote.client.msg.core.IMessageSubscription;
import org.eclipse.osee.ote.message.Message;
@@ -92,7 +93,8 @@ public class WatchedElementNode extends ElementNode {
if (isResolved) {
Message<?, ?, ?> message = getSubscription().getMessage();
element = message.getElement(getElementPath().getElementPath(), getSubscription().getMemType());
-
+ setEnabled(true);
+ setDisabledReason("");
if (element == null) {
columnValues.clear();
value = "???";

Back to the top