svn commit: r18586 - 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-26 16:24:23-0700
New Revision: 18586

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

Log:
Allow an Action to contain a Pin

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=18586&r1=18585&r2=18586
==============================================================================
--- 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-26 16:24:23-0700
@@ -62,6 +62,7 @@
 import org.eclipse.uml2.uml.Package;
 import org.eclipse.uml2.uml.PackageImport;
 import org.eclipse.uml2.uml.Parameter;
+import org.eclipse.uml2.uml.Pin;
 import org.eclipse.uml2.uml.Profile;
 import org.eclipse.uml2.uml.Property;
 import org.eclipse.uml2.uml.Reception;
@@ -324,6 +325,10 @@
             o = UMLFactory.eINSTANCE.createAcceptEventAction();
         } else if (elementType == metaTypes.getSendSignalAction()) {
             o = UMLFactory.eINSTANCE.createSendSignalAction();
+        } else if (elementType == metaTypes.getInputPin()) {
+            o = UMLFactory.eINSTANCE.createInputPin();
+        } else if (elementType == metaTypes.getOutputPin()) {
+            o = UMLFactory.eINSTANCE.createOutputPin();
         } else if (elementType == metaTypes.getSimpleState()) {
             o = modelImpl.getStateMachinesFactory().createSimpleState();
         } else if (elementType == metaTypes.getFinalState()) {
@@ -673,6 +678,12 @@
                 new Class<?>[] {
                     Property.class
                 });
+
+        // valid elements for an Action to contain
+        validContainmentMap.put(Action.class,
+                new Class<?>[] {
+                    Pin.class
+                });
     }
         
     public void deleteExtent(Object element) {

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

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.