svn commit: r16425 - trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/DnDJGraph.java
Bob Tarling <[email protected]>
| Newsgroups | gmane.comp.lang.uml.argouml.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: bobtarling
Date: 2008-12-22 15:46:44-0800
New Revision: 16425
Modified:
trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/DnDJGraph.java
Log:
Add edges after a drop of a node
Modified: trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/DnDJGraph.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/DnDJGraph.java?view=diff&pathrev=16425&r1=16424&r2=16425
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/DnDJGraph.java (original)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/DnDJGraph.java 2008-12-22 15:46:44-0800
@@ -45,6 +45,7 @@
import org.tigris.gef.base.Globals;
import org.tigris.gef.graph.ConnectionConstrainer;
import org.tigris.gef.graph.GraphModel;
+import org.tigris.gef.graph.MutableGraphModel;
import org.tigris.gef.graph.presentation.JGraph;
import org.tigris.gef.presentation.FigNode;
@@ -198,13 +199,15 @@
dropTargetDropEvent.getLocation());
if (figNode != null) {
- GraphModel gm = diagram.getGraphModel();
+ MutableGraphModel gm =
+ (MutableGraphModel) diagram.getGraphModel();
if (!gm.getNodes().contains(figNode.getOwner())) {
gm.getNodes().add(figNode.getOwner());
}
Globals.curEditor().getLayerManager().getActiveLayer()
.add(figNode);
+ gm.addNodeRelatedEdges(figNode.getOwner());
}
}
------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=990153
To unsubscribe from this discussion, e-mail: [[email protected]].