Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Connection(Edge) remove pro grammatically
Connection(Edge) remove pro grammatically [message #163042] Wed, 28 November 2007 09:37
Eclipse UserFriend
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
Previous Topic:question about compartment
Next Topic:Graphical definition of "modules" with top and bottom pins
Goto Forum:
  


Current Time: Fri Jul 18 22:39:48 EDT 2025

Powered by FUDForum. Page generated in 0.05520 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top