svn commit: r16796 - trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigAssociation.java

Dave Thompson <[email protected]>
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: dthompson
Date: 2009-02-13 13:08:17-0800
New Revision: 16796

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

Log:
Issue 5621: Fixed association name end box - now follows text size changes correctly when editing name on property panel.

Modified: trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigAssociation.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigAssociation.java?view=diff&pathrev=16796&r1=16795&r2=16796
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigAssociation.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigAssociation.java	2009-02-13 13:08:17-0800
@@ -714,6 +714,19 @@
     protected int getNotationProviderType() {
         return NotationProviderFactory2.TYPE_ASSOCIATION_END_NAME;
     }
+    
+    /**
+     * Property change listener to recalculate bounds of enclosing
+     * group whenever any properties of the FigRole get changed.
+     * This is only really needed for the name, see issue 5621.
+     * @param pce The property change event to process.
+     * @see org.argouml.uml.diagram.ui.FigSingleLineTextWithNotation#propertyChange(java.beans.PropertyChangeEvent)
+     */
+    @Override
+    public void propertyChange(PropertyChangeEvent pce) {
+        super.propertyChange(pce);
+        this.getGroup().calcBounds();
+    }
 
 }

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

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.