[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[News.eclipse.technology.gmf] DestroyElementRequest
|
Hello,
I have a problem with the DestroyElementRequest. I want to check some
condition just before deleting an element from diagram so that
DestroyElementCommand may be not executed. I use approveRequest() in
FlowEditHelperAdvice (Flow is the diagram name):
@Override
public boolean approveRequest(IEditCommandRequest request) {
if (request instanceof DestroyElementRequest) {
if.....return true;
else return false;
}
return true;
}
Unfortunately this method will be called with DestroyElementRequest even if
no elements were deleted. How can I solve this problem?
Thanks in advance
Irina