I have found a simple solution //Creation of a node Object nodeSup = null; Editor ce = Globals.curEditor(); GraphModel gm = ce.getGraphModel(); Object ca=((ClassDiagramGraphModel)gm).getHomeModel(); nodeSup=Model.getCoreFactory().buildClass(ca); //Add the new node ((ClassDiagramGraphModel)gm).addNode(nodeSup); //Connection between the old node and the //new node createEdge((MutableGraphModel)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]]
