Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » DeleteCommand created but not exectue!
DeleteCommand created but not exectue! [message #243028] Tue, 20 May 2008 11:42
Hoping White is currently offline Hoping WhiteFriend
Messages: 71
Registered: July 2009
Member
Hello everyone,
My EditPart as follows:

@Override
protected void createEditPolicies()
{
installEditPolicy(EditPolicy.COMPONENT_ROLE,new
ProcessRemoveEditPolicy());
}

where ProcessRemoveEditPolicy as follow:

@Override
protected Command createDeleteCommand(GroupRequest request)
{
Object parent=getHost().getParent().getModel();
Object child=getHost().getModel();
if(parent instanceof ProcessDiagramElement&&child instanceof
AbstractProcessElement)
{
return new
ProcessElementDeleteCommand((ProcessDiagramElement)parent,(A bstractProcessElement)child);
}
return null;
}

When debugging, the DeleteCommand is created, but It didn't execute, what
else should I do?
Previous Topic:Using Polygons
Next Topic:[Announce] GEF 3.4.0RC1 is available
Goto Forum:
  


Current Time: Thu Apr 25 13:09:27 GMT 2024

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

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

Back to the top