svn commit: r18565 - trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/UmlFactoryEUMLImpl.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: bobtarling
Date: 2010-07-24 15:46:50-0700
New Revision: 18565

Modified:
   trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/UmlFactoryEUMLImpl.java

Log:
Allow to create ObjectFlows

Modified: trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/UmlFactoryEUMLImpl.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/UmlFactoryEUMLImpl.java?view=diff&pathrev=18565&r1=18564&r2=18565
==============================================================================
--- trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/UmlFactoryEUMLImpl.java	(original)
+++ trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/UmlFactoryEUMLImpl.java	2010-07-24 15:46:50-0700
@@ -163,6 +163,7 @@
         {ControlFlow.class, ControlNode.class, ExecutableNode.class, },
         {ObjectFlow.class, ObjectNode.class, },
         {ObjectFlow.class, ObjectNode.class, Action.class, },
+        {ObjectFlow.class, Action.class, ObjectNode.class, },
 //        {Message.class, ClassifierRole.class },
     };
 
@@ -251,8 +252,8 @@
             cf.setTarget(toActivity);
             connection = cf;
         } else if (elementType == metaTypes.getObjectFlow()) {
-            ObjectNode fromObject = (ObjectNode) fromElement;
-            ObjectNode toObject = (ObjectNode) fromElement;
+            ActivityNode fromObject = (ActivityNode) fromElement;
+            ActivityNode toObject = (ActivityNode) fromElement;
             ControlFlow of = UMLFactory.eINSTANCE.createControlFlow();
             of.setActivity(fromObject.getActivity());
             of.setSource(fromObject);

------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2637761

To unsubscribe from this discussion, e-mail: [[email protected]].
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.