svn commit: r16118 - trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigStereotypesGroup.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: mvw
Date: 2008-11-21 13:12:56-0800
New Revision: 16118

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

Log:
This should be done in the right sequence: it seems better to me to register for listeners, before we start scanning the model to build our layout.

Modified: trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigStereotypesGroup.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigStereotypesGroup.java?view=diff&rev=16118&p1=trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigStereotypesGroup.java&p2=trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigStereotypesGroup.java&r1=16117&r2=16118
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigStereotypesGroup.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigStereotypesGroup.java	2008-11-21 13:12:56-0800
@@ -99,14 +99,15 @@
     }
 
     /*
-     * @see org.tigris.gef.presentation.Fig#setOwner(java.lang.Object)
+     * Beware: The owner here is NOT the stereotype(s), 
+     * but the extended element!
      */
     @Override
     public void setOwner(Object own) {
         if (own != null) {
             super.setOwner(own);
-            populate();
             Model.getPump().addModelEventListener(this, own, "stereotype");
+            populate();
         }
     }
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.