I have found a simple solution

//Creation of a node
Object nodeSup = null;
Editor ce = Globals.curEditor();
GraphModel gm = ce.getGraphModel();
Object ca=((ClassDiagramGra​phModel)gm).getHomeM​odel();
nodeSup=Model.getCor​eFactory().buildClas​s(ca);
//Add the new node
((ClassDiagramGraphM​odel)gm).addNode(nod​eSup);
//Connection between the old node and the //new node
createEdge((MutableG​raphModel)gm,nodeSup​,RIGHT);

With this placed in SelectionClass.java, i have my two connected classes
thank you for the help

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

To unsubscribe from this discussion, e-mail: 
[[email protected]].
To be allowed to post to the list contact the mailing list moderator, email: 
[[email protected]]

Reply via email to