[jboss-svn-commits] JBL Code SVN: r18458 - labs/jbossrules/trunk/drools-eclipse/drools-eclipse-plugin/src/main/java/org/drools/eclipse/flow/ruleflow/editor/editpart.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Mon Feb 11 10:15:06 EST 2008
Author: KrisVerlaenen
Date: 2008-02-11 10:15:06 -0500 (Mon, 11 Feb 2008)
New Revision: 18458
Added:
labs/jbossrules/trunk/drools-eclipse/drools-eclipse-plugin/src/main/java/org/drools/eclipse/flow/ruleflow/editor/editpart/ConnectionWrapperEditPart.java
Modified:
labs/jbossrules/trunk/drools-eclipse/drools-eclipse-plugin/src/main/java/org/drools/eclipse/flow/ruleflow/editor/editpart/RuleFlowEditPartFactory.java
Log:
Fixed error when using split command where underlying connection would not be created in the underlying model
Added: labs/jbossrules/trunk/drools-eclipse/drools-eclipse-plugin/src/main/java/org/drools/eclipse/flow/ruleflow/editor/editpart/ConnectionWrapperEditPart.java
===================================================================
--- labs/jbossrules/trunk/drools-eclipse/drools-eclipse-plugin/src/main/java/org/drools/eclipse/flow/ruleflow/editor/editpart/ConnectionWrapperEditPart.java (rev 0)
+++ labs/jbossrules/trunk/drools-eclipse/drools-eclipse-plugin/src/main/java/org/drools/eclipse/flow/ruleflow/editor/editpart/ConnectionWrapperEditPart.java 2008-02-11 15:15:06 UTC (rev 18458)
@@ -0,0 +1,13 @@
+package org.drools.eclipse.flow.ruleflow.editor.editpart;
+
+import org.drools.eclipse.flow.common.editor.core.ElementConnectionFactory;
+import org.drools.eclipse.flow.common.editor.editpart.ElementConnectionEditPart;
+import org.drools.eclipse.flow.ruleflow.core.ConnectionWrapperFactory;
+
+public class ConnectionWrapperEditPart extends ElementConnectionEditPart {
+
+ protected ElementConnectionFactory getDefaultElementConnectionFactory() {
+ return new ConnectionWrapperFactory();
+ }
+
+}
Modified: labs/jbossrules/trunk/drools-eclipse/drools-eclipse-plugin/src/main/java/org/drools/eclipse/flow/ruleflow/editor/editpart/RuleFlowEditPartFactory.java
===================================================================
--- labs/jbossrules/trunk/drools-eclipse/drools-eclipse-plugin/src/main/java/org/drools/eclipse/flow/ruleflow/editor/editpart/RuleFlowEditPartFactory.java 2008-02-11 14:44:03 UTC (rev 18457)
+++ labs/jbossrules/trunk/drools-eclipse/drools-eclipse-plugin/src/main/java/org/drools/eclipse/flow/ruleflow/editor/editpart/RuleFlowEditPartFactory.java 2008-02-11 15:15:06 UTC (rev 18458)
@@ -15,10 +15,9 @@
* limitations under the License.
*/
-import org.drools.eclipse.flow.common.editor.core.ElementConnection;
-import org.drools.eclipse.flow.common.editor.editpart.ElementConnectionEditPart;
import org.drools.eclipse.flow.common.editor.editpart.ProcessEditPart;
import org.drools.eclipse.flow.ruleflow.core.ActionWrapper;
+import org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper;
import org.drools.eclipse.flow.ruleflow.core.EndNodeWrapper;
import org.drools.eclipse.flow.ruleflow.core.JoinWrapper;
import org.drools.eclipse.flow.ruleflow.core.MilestoneWrapper;
@@ -44,8 +43,8 @@
result = new ProcessEditPart();
} else if (model instanceof RuleSetNodeWrapper) {
result = new RuleSetNodeEditPart();
- } else if (model instanceof ElementConnection) {
- result = new ElementConnectionEditPart();
+ } else if (model instanceof ConnectionWrapper) {
+ result = new ConnectionWrapperEditPart();
} else if (model instanceof StartNodeWrapper) {
result = new StartNodeEditPart();
} else if (model instanceof EndNodeWrapper) {
More information about the jboss-svn-commits
mailing list