Author: thn Date: 2010-06-03 05:31:52-0700 New Revision: 18430 Modified: trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java
Log: UML2: an OpaqueBehaviour has a body Modified: trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java?view=diff&pathrev=18430&r1=18429&r2=18430 ============================================================================== --- trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java (original) +++ trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java 2010-06-03 05:31:52-0700 @@ -363,6 +363,13 @@ } } return null; // No body found. + } else if (handle instanceof OpaqueBehavior) { + String ret = null; + if (((OpaqueBehavior) handle).getBodies() != null && + !((OpaqueBehavior) handle).getBodies().isEmpty()) { + ret = ((OpaqueBehavior) handle).getBodies().get(0); + } + return ret; } throw new IllegalArgumentException( "Unsupported argument type - must be Comment, Constraint," + ------------------------------------------------------ http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2616420 To unsubscribe from this discussion, e-mail: [[email protected]].
