svn commit: r16298 - trunk/src/argouml-app/src/org/argouml/ui/PerspectiveSupport.java

Tom Morris <[email protected]>
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2008-12-07 13:16:31-0800
New Revision: 16298

Modified:
   trunk/src/argouml-app/src/org/argouml/ui/PerspectiveSupport.java

Log:
Remove deprecated Vector based methods and clean up some warnings

Modified: trunk/src/argouml-app/src/org/argouml/ui/PerspectiveSupport.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/ui/PerspectiveSupport.java?view=diff&pathrev=16298&r1=16297&r2=16298
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/ui/PerspectiveSupport.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/ui/PerspectiveSupport.java	2008-12-07 13:16:31-0800
@@ -26,7 +26,6 @@
 
 import java.util.ArrayList;
 import java.util.List;
-import java.util.Vector;
 
 import javax.swing.tree.TreeModel;
 
@@ -104,16 +103,6 @@
         goRules.remove(tm);
     }
 
-    /**
-     * Get the rules that together form the perspective.
-     * 
-     * @return the rules that form the perspecive
-     * @deprecated for 0.25.4 by tfmorris. Use {@link #getSubTreeModelList()}.
-     */
-    @Deprecated
-    public Vector<TreeModel> getSubTreeModels() {
-        return new Vector<TreeModel>(goRules);
-    }
 
     /**
      * Get the rules that together form the perspective.
@@ -143,8 +132,11 @@
      */
     @Override
     public String toString() {
-        if (getName() != null) return getName();
-        else return super.toString();
+        if (getName() != null) {
+            return getName();
+        } else {
+            return super.toString();
+        }
     }
 
     // ------ all rules ----------
@@ -159,15 +151,6 @@
 
     /**
      * @return Returns the _goRules.
-     * @deprecated for 0.25.4 by tfmorris. Use {@link #getGoRuleList()}.
-     */
-    @Deprecated
-    protected Vector<TreeModel> getGoRules() {
-        return new Vector<TreeModel>(goRules);
-    }
-
-    /**
-     * @return Returns the _goRules.
      */
     protected List<TreeModel> getGoRuleList() {
         return goRules;

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

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.