svn commit: r15102 - trunk/src/argouml-app/src/org/argouml/uml/ui/foundation/core/PropPanelModelElement.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: penyaskito
Date: 2008-06-28 08:14:41-0700
New Revision: 15102

Modified:
   trunk/src/argouml-app/src/org/argouml/uml/ui/foundation/core/PropPanelModelElement.java

Log:
Renamed getNamespaceVisibilityPanel to getVisibilityPanel. Deprecated getNamespaceVisibilityPanel.

Modified: trunk/src/argouml-app/src/org/argouml/uml/ui/foundation/core/PropPanelModelElement.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/ui/foundation/core/PropPanelModelElement.java?view=diff&rev=15102&p1=trunk/src/argouml-app/src/org/argouml/uml/ui/foundation/core/PropPanelModelElement.java&p2=trunk/src/argouml-app/src/org/argouml/uml/ui/foundation/core/PropPanelModelElement.java&r1=15101&r2=15102
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/ui/foundation/core/PropPanelModelElement.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/uml/ui/foundation/core/PropPanelModelElement.java	2008-06-28 08:14:41-0700
@@ -63,7 +63,7 @@
 
     private JScrollPane constraintScroll;
 
-    private JPanel namespaceVisibilityPanel;
+    private JPanel visibilityPanel;
 
     private JScrollPane elementResidenceScroll;
 
@@ -266,20 +266,26 @@
     }
 
     /**
-     * TODO: This should better be named "getVisibilityPanel", 
-     * since it is not restricted to a namespace.
-     * 
      * @return a panel for the visibility
      */
-    protected JComponent getNamespaceVisibilityPanel() {
-        if (namespaceVisibilityPanel == null) {
-            namespaceVisibilityPanel =
+    protected JComponent getVisibilityPanel() {
+        if (visibilityPanel == null) {
+            visibilityPanel =
 		new UMLModelElementVisibilityRadioButtonPanel(
                     Translator.localize("label.visibility"), true);
         }
-        return namespaceVisibilityPanel;
+        return visibilityPanel;
     }
-
+    
+    /**
+     * @deprecated for 0.26 by penyaskito. Use
+     *             {@link #getVisibilityPanel()} instead.
+     * @return a panel for the visibility
+     */
+    protected JComponent getNamespaceVisibilityPanel() {        
+        return getVisibilityPanel();
+    }
+    
     /**
      * @return a scrollpane for residence
      */
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.