svn commit: r16742 - trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigCompartmentBox.java

Michiel van der Wulp <[email protected]>
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: mvw
Date: 2009-02-02 11:28:47-0800
New Revision: 16742

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

Log:
Fix for issue 5439: Double click to add new attribute should highlight new attribute.

Modified: trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigCompartmentBox.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigCompartmentBox.java?view=diff&pathrev=16742&r1=16741&r2=16742
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigCompartmentBox.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigCompartmentBox.java	2009-02-02 11:28:47-0800
@@ -230,6 +230,10 @@
             return;
         }
         ((FigEditableCompartment) fg).createModelElement();
+        /* Populate the compartment now, 
+         * so that we can put the last one in edit mode: 
+         * This fixes issue 5439. */
+        ((FigEditableCompartment) fg).populate();
         List figList = fg.getFigs();
         if (figList.size() > 0) {
             Fig fig = (Fig) figList.get(figList.size() - 1);

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

To unsubscribe from this discussion, e-mail: [[email protected]].
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.