svn commit: r19200 - trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/ActionAddExistingNodes.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: bobtarling
Date: 2011-04-08 09:34:39-0700
New Revision: 19200

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

Log:
Delete unused method

Modified: trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/ActionAddExistingNodes.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/ActionAddExistingNodes.java?view=diff&pathrev=19200&r1=19199&r2=19200
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/ActionAddExistingNodes.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/ActionAddExistingNodes.java	2011-04-08 09:34:39-0700
@@ -39,13 +39,10 @@
 
 package org.argouml.uml.diagram.ui;
 
-import java.awt.Point;
 import java.awt.event.ActionEvent;
 import java.util.Collection;
 
 import org.argouml.i18n.Translator;
-import org.argouml.model.Model;
-import org.argouml.ui.targetmanager.TargetManager;
 import org.argouml.uml.diagram.ArgoDiagram;
 import org.argouml.uml.diagram.DiagramUtils;
 import org.tigris.gef.base.Editor;
@@ -115,47 +112,4 @@
 
         Globals.mode(placeMode, false);
     }
-    
-    /**
-     * @param modelElements the modelelements to add Nodes for
-     * @param location the point where to drop the node.
-     *               Also <code>null</code> is acceptable.
-     * @param diagram the diagram to add the nodes to
-     */
-    public static void addNodes(Collection modelElements, 
-            Point location, ArgoDiagram diagram) {
-        MutableGraphModel gm = (MutableGraphModel) diagram.getGraphModel();
-        Collection oldTargets = TargetManager.getInstance().getTargets();
-        int count = 0;
-        for (Object me : modelElements) {
-            if (diagram instanceof UMLDiagram 
-                    && ((UMLDiagram) diagram).doesAccept(me)) {
-                ((UMLDiagram) diagram).drop(me, location);
-            } else if (Model.getFacade().isANaryAssociation(me)) {
-                AddExistingNodeCommand cmd =
-                    new AddExistingNodeCommand(me, location,
-                            count++);
-                cmd.execute();
-            } else if (Model.getFacade().isAUMLElement(me)) {
-                if (gm.canAddEdge(me)) {
-                    gm.addEdge(me);
-                    // TODO: An AssociationClass should be possible to add
-                    // as a side effect of adding a node and its related
-                    // edges, but that doesn't work as things are currently
-                    // structured. - tfm 20061208
-                    if (Model.getFacade().isAAssociationClass(me)) {
-                        ModeCreateAssociationClass.buildInActiveLayer(
-                                Globals.curEditor(), 
-                                me);
-                    }
-                } else if (gm.canAddNode(me)) {
-                    AddExistingNodeCommand cmd =
-                        new AddExistingNodeCommand(me, location,
-                                count++);
-                    cmd.execute();
-                }
-            }
-        }
-        TargetManager.getInstance().setTargets(oldTargets);
-    }
 }

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

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.