svn commit: r16429 - trunk/src/argouml-app/src/org/argouml/uml/diagram/static_structure/ui/FigPackage.java

Tom Morris <[email protected]>
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2008-12-23 11:15:25-0800
New Revision: 16429

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

Log:
Revert stereotypeVisible setting to a local FigPackage specific setting


Modified: trunk/src/argouml-app/src/org/argouml/uml/diagram/static_structure/ui/FigPackage.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/static_structure/ui/FigPackage.java?view=diff&pathrev=16429&r1=16428&r2=16429
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/diagram/static_structure/ui/FigPackage.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/static_structure/ui/FigPackage.java	2008-12-23 11:15:25-0800
@@ -123,6 +123,12 @@
 
     private FigText body;
 
+    /**
+     * Flag that indicates if the stereotype should be shown even if
+     * it is specified or not.
+     */
+    private boolean stereotypeVisible = true;
+
 
     /**
      * The main constructor.
@@ -752,14 +758,14 @@
      * @see org.argouml.uml.diagram.ui.StereotypeContainer#isStereotypeVisible()
      */
     public boolean isStereotypeVisible() {
-        return getNotationSettings().isShowStereotypes();
+        return stereotypeVisible;
     }
 
     /*
      * @see org.argouml.uml.diagram.ui.StereotypeContainer#setStereotypeVisible(boolean)
      */
     public void setStereotypeVisible(boolean isVisible) {
-        getNotationSettings().setShowStereotypes(isVisible);
+        stereotypeVisible = isVisible;
         renderingChanged();
         damage();
     }

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

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.