use of org.apache.cayenne.modeler.editor.ObjCallbackMethod in project cayenne by apache.
the class RemoveCallbackMethodAction method removeCallbackMethods.
/**
* base logic for callback method removing
*/
private void removeCallbackMethods() {
ProjectController mediator = getProjectController();
CallbackType callbackType = mediator.getCurrentCallbackType();
ObjCallbackMethod[] callbackMethods = mediator.getCurrentCallbackMethods();
for (ObjCallbackMethod callbackMethod : callbackMethods) {
removeCallbackMethod(callbackType, callbackMethod.getName());
}
Application.getInstance().getUndoManager().addEdit(new RemoveCallbackMethodUndoableEdit(callbackType, callbackMethods));
}
Aggregations