svn commit: r16695 - trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigMessage.java

Michiel van der Wulp <[email protected]>
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: mvw
Date: 2009-01-25 03:58:34-0800
New Revision: 16695

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

Log:
Small addition on my fix for issue 5595: Only need to init a static member once.

Modified: trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigMessage.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigMessage.java?view=diff&pathrev=16695&r1=16694&r2=16695
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigMessage.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigMessage.java	2009-01-25 03:58:34-0800
@@ -105,11 +105,14 @@
     }
 
     private void initArrows() {
-        arrowDirections = new Vector<String>(4);
-        arrowDirections.add(SOUTH, "South");
-        arrowDirections.add(EAST, "East");
-        arrowDirections.add(WEST, "West");
-        arrowDirections.add(NORTH, "North");
+        if (arrowDirections == null) {
+            arrowDirections = new Vector<String>(4);
+            // TODO: i18n
+            arrowDirections.add(SOUTH, "South");
+            arrowDirections.add(EAST, "East");
+            arrowDirections.add(WEST, "West");
+            arrowDirections.add(NORTH, "North");
+        }
     }
 
     /**

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

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.