Author: koen.aers(a)jboss.com
Date: 2009-06-15 14:59:03 -0400 (Mon, 15 Jun 2009)
New Revision: 15959
Added:
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/SequenceFlowOutcomeValueFilter.java
Removed:
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/jpdl4/properties/
Modified:
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/plugin.xml
Log:
move the filter to the right package
Modified: trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/plugin.xml
===================================================================
--- trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/plugin.xml 2009-06-15 17:03:46 UTC (rev
15958)
+++ trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/plugin.xml 2009-06-15 18:59:03 UTC (rev
15959)
@@ -301,14 +301,15 @@
point="org.eclipse.ui.newWizards">
<category
id="org.jboss.tools.flow.jpdl4"
- name="JBoss jBPM">
+ name="jBPM 4"
+ parentCategory="org.jboss.tools.jbpm">
</category>
<wizard
category="org.jboss.tools.flow.jpdl4"
class="org.jboss.tools.flow.jpdl4.wizard.NewJpdl4FileWizard"
icon="icons/process.gif"
id="org.jboss.tools.flow.jpdl4.file"
- name="jPDL4 File">
+ name="Process Definition">
</wizard>
</extension>
@@ -488,7 +489,7 @@
<propertySection
afterSection="org.jboss.tools.jpdl4.sequenceFlow.timer"
class="org.jboss.tools.flow.jpdl4.properties.SequenceFlowOutcomeValueSection"
-
filter="org.jboss.tools.jpdl4.properties.SequenceFlowOutcomeValueFilter"
+
filter="org.jboss.tools.flow.jpdl4.properties.SequenceFlowOutcomeValueFilter"
id="org.jboss.tools.jpdl4.sequenceFlow.outcome"
tab="org.jboss.tools.jpdl4.general">
</propertySection>
Copied:
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/SequenceFlowOutcomeValueFilter.java
(from rev 15783,
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/jpdl4/properties/SequenceFlowOutcomeValueFilter.java)
===================================================================
---
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/SequenceFlowOutcomeValueFilter.java
(rev 0)
+++
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/SequenceFlowOutcomeValueFilter.java 2009-06-15
18:59:03 UTC (rev 15959)
@@ -0,0 +1,19 @@
+package org.jboss.tools.flow.jpdl4.properties;
+
+import org.eclipse.gef.EditPart;
+import org.eclipse.jface.viewers.IFilter;
+import org.jboss.tools.flow.common.wrapper.Wrapper;
+import org.jboss.tools.flow.jpdl4.editpart.SequenceFlowGraphicalEditPart;
+import org.jboss.tools.flow.jpdl4.model.SubprocessTask;
+
+public class SequenceFlowOutcomeValueFilter implements IFilter {
+
+ public boolean select(Object toTest) {
+ if (!(toTest instanceof SequenceFlowGraphicalEditPart)) return false;
+ SequenceFlowGraphicalEditPart editPart = (SequenceFlowGraphicalEditPart)toTest;
+ EditPart source = editPart.getSource();
+ Wrapper wrapper = (Wrapper)source.getModel();
+ return wrapper.getElement() instanceof SubprocessTask;
+ }
+
+}
Property changes on:
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/SequenceFlowOutcomeValueFilter.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Show replies by date