@Override
protected boolean calculateEnabled() {
if (getSelectedObjects().size() == 1 && (getSelectedObjects().get(0) instanceof EditPart)) {
EditPart part = (EditPart) getSelectedObjects().get(0);
return part.understandsRequest(request);
}
return false;
}
@Override