Author: bbrodt
Date: 2011-03-15 09:37:14 -0400 (Tue, 15 Mar 2011)
New Revision: 29789
Modified:
trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/details/providers/MessageTypeContentProvider.java
trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/dialogs/TypeSelectorDialog.java
Log:
https://issues.jboss.org/browse/JBIDE-8075
add a Message selection filter to MessageContentProvider
Modified:
trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/details/providers/MessageTypeContentProvider.java
===================================================================
---
trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/details/providers/MessageTypeContentProvider.java 2011-03-15
12:58:42 UTC (rev 29788)
+++
trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/details/providers/MessageTypeContentProvider.java 2011-03-15
13:37:14 UTC (rev 29789)
@@ -21,15 +21,24 @@
*/
public class MessageTypeContentProvider extends AbstractContentProvider {
+ //
https://issues.jboss.org/browse/JBIDE-8075
+ // provide a filter for enabling/disabling selection of Messages
+ private boolean showMessages = true;
+
@Override
public void collectElements ( Object input, List list) {
- if (input instanceof Definition) {
- list.addAll( ((Definition)input).getEMessages() );
- return;
+ if (showMessages) {
+ if (input instanceof Definition) {
+ list.addAll( ((Definition)input).getEMessages() );
+ return;
+ }
+
+ collectComplex( input, list);
}
-
- collectComplex( input, list);
}
-
+
+ public void setFilter(int filter) {
+ showMessages = (filter!=0);
+ }
}
Modified:
trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/dialogs/TypeSelectorDialog.java
===================================================================
---
trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/dialogs/TypeSelectorDialog.java 2011-03-15
12:58:42 UTC (rev 29788)
+++
trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/dialogs/TypeSelectorDialog.java 2011-03-15
13:37:14 UTC (rev 29789)
@@ -134,7 +134,11 @@
showMessages = settings.getBoolean(SHOW_MESSAGES_KEY);
} catch (Exception ex) {
showMessages = false;
- }
+ }
+
+ //
https://issues.jboss.org/browse/JBIDE-8075
+ // enable/disable selection of Message objects
+ messageTypeProvider.setFilter(showMessages?1:0);
}
@@ -198,6 +202,10 @@
case BID_MESSAGES :
showMessages = checked;
+ //
https://issues.jboss.org/browse/JBIDE-8075
+ // enable/disable selection of Message objects
+ messageTypeProvider.setFilter(showMessages?1:0);
+ bRefresh = true;
break;
default :