DeleteCommand created but not exectue! [message #243028] |
Tue, 20 May 2008 07:42 |
Eclipse User |
|
|
|
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?
|
|
|
Powered by
FUDForum. Page generated in 0.03304 seconds