use of org.apache.cayenne.modeler.dialog.ConfirmRemoveDialog in project cayenne by apache.
the class RemoveProcedureParameterAction method performAction.
@Override
public void performAction(ActionEvent e, boolean allowAsking) {
ConfirmRemoveDialog dialog = getConfirmDeleteDialog(allowAsking);
ProcedureParameter[] params = getProjectController().getCurrentProcedureParameters();
if (params.length > 0) {
if ((params.length == 1 && dialog.shouldDelete("procedure parameter", params[0].getName())) || (params.length > 1 && dialog.shouldDelete("selected procedure parameters"))) {
removeProcedureParameters();
}
}
}
Aggregations