svn commit: r16041 - trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/panel/XmlPropertyPanel.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: penyaskito
Date: 2008-11-12 20:00:54-0800
New Revision: 16041

Modified:
   trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/panel/XmlPropertyPanel.java

Log:
Issue 5343: Invalid title in Concurrent Region PropPanel

Modified: trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/panel/XmlPropertyPanel.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/panel/XmlPropertyPanel.java?view=diff&rev=16041&p1=trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/panel/XmlPropertyPanel.java&p2=trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/panel/XmlPropertyPanel.java&r1=16040&r2=16041
==============================================================================
--- trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/panel/XmlPropertyPanel.java	(original)
+++ trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/panel/XmlPropertyPanel.java	2008-11-12 20:00:54-0800
@@ -139,6 +139,16 @@
                 title = Translator.localize("label.pseudostate.junction");
             }
         }
+        // there are other cases that need special treatment, 
+        // like concurrent regions
+        if (Model.getFacade().isAConcurrentRegion(target)) {
+            title = Translator.localize("label.concurrent.region");
+        } else if (Model.getFacade().isConcurrent(target)) {
+            title = Translator.localize("label.concurrent.composite.state");
+        } else if (!Model.getFacade().isASubmachineState(target)) {
+            // PropPanelSubmachine is a subclass that handles its own title
+            title = Translator.localize("label.composite-state");
+        }
         else {
             title = Model.getMetaTypes().getName(target); 
         }
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.