Author: bobtarling Date: 2011-05-09 10:28:44-0700 New Revision: 19383 Modified: trunk/src/argouml-app/src/org/argouml/notation/providers/uml/StateBodyNotationUml.java
Log: UML2 doesn't seem to have internal transitions Modified: trunk/src/argouml-app/src/org/argouml/notation/providers/uml/StateBodyNotationUml.java Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/notation/providers/uml/StateBodyNotationUml.java?view=diff&pathrev=19383&r1=19382&r2=19383 ============================================================================== --- trunk/src/argouml-app/src/org/argouml/notation/providers/uml/StateBodyNotationUml.java (original) +++ trunk/src/argouml-app/src/org/argouml/notation/providers/uml/StateBodyNotationUml.java 2011-05-09 10:28:44-0700 @@ -126,16 +126,18 @@ } s.append("exit /").append(exitStr); } - Collection internaltrans = - Model.getFacade().getInternalTransitions(modelElement); - if (internaltrans != null) { - for (Object trans : internaltrans) { - if (s.length() > 0) { - s.append("\n"); + if (Model.getFacade().getUmlVersion().startsWith("1")) { + Collection internaltrans = + Model.getFacade().getInternalTransitions(modelElement); + if (internaltrans != null) { + for (Object trans : internaltrans) { + if (s.length() > 0) { + s.append("\n"); + } + /* TODO: Is this a good way of handling nested notation? */ + s.append((new TransitionNotationUml(trans)).toString(trans, + settings)); } - /* TODO: Is this a good way of handling nested notation? */ - s.append((new TransitionNotationUml(trans)).toString(trans, - settings)); } } return s.toString(); ------------------------------------------------------ http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2733417 To unsubscribe from this discussion, e-mail: [[email protected]].
