Connection(Edge) remove pro grammatically [message #163042] |
Wed, 28 November 2007 09:37 |
Eclipse User |
|
|
|
Originally posted by: biju_gopinathan.rediffmail.com
hi friends,
my problem is , when drag a connection from one port(source)to another
port(target) , that time showing a dialogbox on the target port .
dialogbox has two button if user click cancel button the connection
will be removed from the diagram.but now i remove connection from the
model but view not refresh, after i close reopen editor not showing the
connection
now i doing the code is given below
DestroyElementRequest destroy = new
DestroyElementRequest(this.getEditingDomain(), linkObject, true);
DestroyElementCommand command11 = new DestroyElementCommand(destroy);
if (command11 != null && command11.canExecute()) {
this.getDiagramEditDomain().getDiagramCommandStack().execute (new
ICommandProxy(command11));
}
if any correction , pls help me
thanks in advance
|
|
|
Powered by
FUDForum. Page generated in 0.05520 seconds