Author: bobtarling
Date: 2011-05-19 13:16:32-0700
New Revision: 19468

Modified:
   trunk/src/argouml-app/src/org/argouml/uml/diagram/state/ui/FigVertex.java

Log:
Drag a vertex into a simple state then the simple state becomes a composite 
state

Modified: 
trunk/src/argouml-app/src/org/argouml/uml/diagram/state/ui/FigVertex.java
Url: 
http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/state/ui/FigVertex.java?view=diff&pathrev=19468&r1=19467&r2=19468
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/diagram/state/ui/FigVertex.java   
(original)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/state/ui/FigVertex.java   
2011-05-19 13:16:32-0700
@@ -101,15 +101,14 @@
         super.setEnclosingFig(encloser);
 
         final Object region;
-        if (encloser != null
-                && (Model.getFacade().isACompositeState(encloser.getOwner()))) 
{
+        if (encloser != null) {
             // Get the region as the first Region in the State.
             // If there is no region in the StateMachine then create one.
             List regions = Model.getStateMachinesHelper().getRegions(
                     encloser.getOwner());
             if (regions.isEmpty()) {
                 region = Model.getUmlFactory().buildNode(
-                        Model.getMetaTypes().getRegion(), getOwner());
+                        Model.getMetaTypes().getRegion(), encloser.getOwner());
             } else {
                 region = regions.get(0);
             }

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

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

Reply via email to