Author: bobtarling
Date: 2011-05-11 07:55:27-0700
New Revision: 19400

Modified:
   trunk/src/argouml-app/src/org/argouml/ui/explorer/PerspectiveManager.java

Log:
This go rule is relevant for UML1.4 only

Modified: 
trunk/src/argouml-app/src/org/argouml/ui/explorer/PerspectiveManager.java
Url: 
http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/ui/explorer/PerspectiveManager.java?view=diff&pathrev=19400&r1=19399&r2=19400
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/ui/explorer/PerspectiveManager.java   
(original)
+++ trunk/src/argouml-app/src/org/argouml/ui/explorer/PerspectiveManager.java   
2011-05-11 07:55:27-0700
@@ -402,7 +402,9 @@
         packagePerspective.addRule(new GoBehavioralFeatureToStateMachine());
         // works for both statediagram as activitygraph
         packagePerspective.addRule(new GoStatemachineToDiagram());
-        packagePerspective.addRule(new GoStateMachineToState());
+        if (Model.getFacade().getUmlVersion().startsWith("1")) {
+            packagePerspective.addRule(new GoStateMachineToState());
+        }
         packagePerspective.addRule(new GoCompositeStateToSubvertex());
         if (Model.getFacade().getUmlVersion().startsWith("1")) {
             packagePerspective.addRule(new GoStateToInternalTrans());
@@ -578,7 +580,7 @@
             new GoCriticsToCritic(),
             new GoProjectToRoots(),
             new GoSignalToReception(), new GoStateMachineToTop(),
-            new GoStatemachineToDiagram(), new GoStateMachineToState(),
+            new GoStatemachineToDiagram(), 
             new GoStateMachineToTransition(), new GoStateToDoActivity(),
             new GoStateToDownstream(), new GoStateToEntry(),
             new GoStateToExit(), new GoStateToIncomingTrans(),
@@ -597,6 +599,7 @@
         
         // TODO: We need a factory pattern for GoXXX classes that can 
determine if they are required
         PerspectiveRule[] ruleNamesArray14 = {
+            new GoStateMachineToState(),
             new GoStateToInternalTrans()
         };

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

To unsubscribe from this discussion, e-mail: 
[[email protected]].

Reply via email to