svn commit: r14549 - trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigNodeModelElement.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: bobtarling
Date: 2008-04-30 17:58:14-0700
New Revision: 14549

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

Log:
Some more tidying

Modified: trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigNodeModelElement.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigNodeModelElement.java?view=diff&rev=14549&p1=trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigNodeModelElement.java&p2=trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigNodeModelElement.java&r1=14548&r2=14549
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigNodeModelElement.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigNodeModelElement.java	2008-04-30 17:58:14-0700
@@ -521,14 +521,14 @@
             }
 
             // Add stereotypes submenu
-            Action[] stereoActions =
+            final Action[] stereoActions =
                 StereotypeUtility.getApplyStereotypeActions(getOwner());
             if (stereoActions != null) {
                 popUpActions.add(0, new JSeparator());
-                ArgoJMenu stereotypes =
+                final ArgoJMenu stereotypes =
                     new ArgoJMenu("menu.popup.apply-stereotypes");
-                for (int i = 0; i < stereoActions.length; ++i) {
-                    stereotypes.addCheckItem(stereoActions[i]);
+                for (Action action : stereoActions) {
+                    stereotypes.addCheckItem(action);
                 }
                 popUpActions.add(0, stereotypes);
             }
@@ -725,6 +725,7 @@
      * figs that are inside of this fig.
      *
      * @param figures in the new order
+     * @deprecated in 0.25.5 This method is never used
      */
     public void elementOrdering(List<Fig> figures) {
         int size = figures.size();
@@ -2012,16 +2013,15 @@
      * @see #addElementListener(Object, String)
      */
     protected void removeAllElementListeners() {
-        for (Iterator iter = listeners.iterator(); iter.hasNext();) {
-            Object[] l = (Object[]) iter.next();
-            Object property = l[1];
+        for (Object[] listener : listeners) {
+            Object property = listener[1];
             if (property == null) {
-                Model.getPump().removeModelEventListener(this, l[0]);
+                Model.getPump().removeModelEventListener(this, listener[0]);
             } else if (property instanceof String[]) {
-                Model.getPump().removeModelEventListener(this, l[0],
+                Model.getPump().removeModelEventListener(this, listener[0],
                         (String[]) property);
             } else if (property instanceof String) {
-                Model.getPump().removeModelEventListener(this, l[0],
+                Model.getPump().removeModelEventListener(this, listener[0],
                         (String) property);
             } else {
                 throw new RuntimeException(
@@ -2069,7 +2069,7 @@
     }
 
     
-        /**
+    /**
      * @return current stereotype view
      */
     public int getStereotypeView() {
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.