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

2
.idea/workspace.xml generated
View File

@@ -8,7 +8,7 @@
<component name="ChangeListManager">
<list default="true" id="e42177c3-2328-4b27-8a01-35779b2beb99" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Common/Database/Database.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common/Database/Database.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Common/Passes/EditObjectPass.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common/Passes/EditObjectPass.java" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />

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 {