svn commit: r16127 - trunk/src/argouml-app/src/org/argouml/uml/ActionAddStereotype.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2008-11-21 22:23:47-0800
New Revision: 16127

Modified:
   trunk/src/argouml-app/src/org/argouml/uml/ActionAddStereotype.java

Log:
Use standard stereotype formatting utility

Modified: trunk/src/argouml-app/src/org/argouml/uml/ActionAddStereotype.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/ActionAddStereotype.java?view=diff&rev=16127&p1=trunk/src/argouml-app/src/org/argouml/uml/ActionAddStereotype.java&p2=trunk/src/argouml-app/src/org/argouml/uml/ActionAddStereotype.java&r1=16126&r2=16127
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/ActionAddStereotype.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/uml/ActionAddStereotype.java	2008-11-21 22:23:47-0800
@@ -1,5 +1,5 @@
 // $Id$
-// Copyright (c) 1996-2007 The Regents of the University of California. All
+// Copyright (c) 1996-2008 The Regents of the University of California. All
 // Rights Reserved. Permission to use, copy, modify, and distribute this
 // software and its documentation without fee, and without a written
 // agreement is hereby granted, provided that the above copyright notice
@@ -34,6 +34,7 @@
 import org.argouml.kernel.ProjectSettings;
 import org.argouml.kernel.UmlModelMutator;
 import org.argouml.model.Model;
+import org.argouml.notation.providers.uml.NotationUtilityUml;
 import org.tigris.gef.undo.UndoableAction;
 
 
@@ -66,9 +67,8 @@
     private static String buildString(Object st) {
         Project p = ProjectManager.getManager().getCurrentProject();
         ProjectSettings ps = p.getProjectSettings();
-        return ps.getLeftGuillemot() 
-            + Model.getFacade().getName(st)
-            + ps.getRightGuillemot();
+        return NotationUtilityUml.generateStereotype(st, 
+                ps.getDefaultDiagramSettings().isUseGuillemets());
     }
 
     /*
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.