I want to know how I delete a connection in draw2d. I tried disconnect() method but dose not seems to be work. This is my code
menu.appendMenuItem(new draw2d.MenuItem("Disconnect", null, function() {
//draw2d.Connection.workflow.removeFigure(draw2d.Connection.prototype);
var cmd = new draw2d.CommandDelete(oThis);
oThis.workflow.getCommandStack().excute(cmd);
}));
here oThis is of type "draw2d.Connection". please help.