Author: tfmorris
Date: 2008-10-06 12:10:59-0700
New Revision: 15894

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

Log:
Issue 5438: Remove method which is clone of superclass' implementation
http://argouml.tigris.org/issues/show_bug.cgi?id=5438

Modified: 
trunk/src/argouml-app/src/org/argouml/uml/diagram/static_structure/ui/FigInterface.java
Url: 
http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/static_structure/ui/FigInterface.java?view=diff&rev=15894&p1=trunk/src/argouml-app/src/org/argouml/uml/diagram/static_structure/ui/FigInterface.java&p2=trunk/src/argouml-app/src/org/argouml/uml/diagram/static_structure/ui/FigInterface.java&r1=15893&r2=15894
==============================================================================
--- 
trunk/src/argouml-app/src/org/argouml/uml/diagram/static_structure/ui/FigInterface.java
     (original)
+++ 
trunk/src/argouml-app/src/org/argouml/uml/diagram/static_structure/ui/FigInterface.java
     2008-10-06 12:10:59-0700
@@ -27,8 +27,6 @@
 import java.awt.Color;
 import java.awt.Dimension;
 import java.awt.Rectangle;
-import java.util.ArrayList;
-import java.util.Collection;
 import java.util.Iterator;
 import java.util.List;
 
@@ -126,6 +124,7 @@
     /*
      * @see org.tigris.gef.presentation.Fig#makeSelection()
      */
+    @Override
     public Selection makeSelection() {
         return new SelectionInterface(this);
     }
@@ -212,6 +211,7 @@
     /*
      * @see org.tigris.gef.presentation.Fig#setLineWidth(int)
      */
+    @Override
     public void setLineWidth(int w) {
         borderFig.setLineWidth(w);
     }
@@ -219,6 +219,7 @@
     /*
      * @see org.tigris.gef.presentation.Fig#getLineWidth()
      */
+    @Override
     public int getLineWidth() {
         return borderFig.getLineWidth();
     }
@@ -226,6 +227,7 @@
     /*
      * @see org.tigris.gef.presentation.Fig#translate(int, int)
      */
+    @Override
     public void translate(int dx, int dy) {
         super.translate(dx, dy);
         Editor ce = Globals.curEditor();
@@ -238,6 +240,7 @@
     /*
      * @see 
org.tigris.gef.presentation.Fig#setEnclosingFig(org.tigris.gef.presentation.Fig)
      */
+    @Override
     public void setEnclosingFig(Fig encloser) {
         Fig oldEncloser = getEnclosingFig();
 
@@ -349,40 +352,12 @@
      * @return the class name and bounds together with compartment
      * visibility.
      */
+    @Override
     public String classNameAndBounds() {
         return super.classNameAndBounds()
                 + "operationsVisible=" + isOperationsVisible();
     }
 
-    /*
-     * @see 
org.argouml.uml.diagram.ui.FigNodeModelElement#updateListeners(java.lang.Object,
 java.lang.Object)
-     */
-    protected void updateListeners(Object oldOwner, Object newOwner) {
-        if (oldOwner != null) {
-            removeAllElementListeners();
-        }
-        if (newOwner != null) {
-            // add the listeners to the newOwner
-            addElementListener(newOwner);
-            // and its stereotypes
-            Collection c = new ArrayList(
-                    Model.getFacade().getStereotypes(newOwner));
-            // and its features
-            for (Object feat : Model.getFacade().getFeatures(newOwner)) {
-                c.add(feat);
-                // and the stereotypes of its features
-                c.addAll(new 
ArrayList(Model.getFacade().getStereotypes(feat)));
-                // and the parameter of its operations
-                if (Model.getFacade().isAOperation(feat)) {
-                    c.addAll(Model.getFacade().getParameters(feat));
-                }
-            }
-            for (Object obj : c) {
-                addElementListener(obj);
-            }
-        }
-    }
-
     /**
      * Sets the bounds, but the size will be at least the one returned by
      * [EMAIL PROTECTED] #getMinimumSize()}, unless checking of size is 
disabled.<p>
@@ -403,6 +378,7 @@
      *
      * @param h  Desired height of the FigInterface
      */
+    @Override
     protected void setStandardBounds(final int x, final int y, final int w,
             final int h) {
 
@@ -457,4 +433,4 @@
         firePropChange("bounds", oldBounds, getBounds());
     }
 
-} /* end class FigInterface */
+}
\ No newline at end of file

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to