no message

This commit is contained in:
2024-10-27 19:38:33 +03:00
parent 56981686e1
commit 9daf69107a
2 changed files with 6 additions and 3 deletions

View File

@@ -11,10 +11,13 @@ public abstract class EditObjectPass<D extends DBObject> extends ObjectPass<D> {
public String getIconPath() {
return "/Common/icons/Edit.png";
}
protected boolean fillObjectFields() throws Exception {
return getTable().getUI().ShowEditObjectDialog(target);
}
@Override
protected boolean canStart(Object... args) throws Exception {
target = (D) getTable().getUI().getCurrent();
return getTable().getUI().CheckCurrent(Log) && getTable().getUI().ShowEditObjectDialog(target);
return getTable().getUI().CheckCurrent(Log) && fillObjectFields();
}
@Override
protected void body() throws Exception {
@@ -28,4 +31,4 @@ public abstract class EditObjectPass<D extends DBObject> extends ObjectPass<D> {
getDb().getTable(dep).getUI().RedrawControl();
}
}
}
}