no message

This commit is contained in:
2024-10-14 12:14:01 +03:00
parent 3a29898d5f
commit 452c4c7268
466 changed files with 1255 additions and 1100 deletions

View File

@@ -0,0 +1,31 @@
package _VisualDVM.Passes.Server;
import Common.Database.Objects.DBObject;
import _VisualDVM.ServerObjectsCache.VisualCaches;
import _VisualDVM.Repository.RepositoryServer;
public class EditServerObject<S extends RepositoryServer, D extends DBObject> extends ServerObjectPass<S, D> {
//--
@Override
public String getIconPath() {
return "/icons/Edit.png";
}
//--
@Override
protected boolean canStart(Object... args) throws Exception {
target = (D) getDb().tables.get(d).getCurrent();
return getDb().tables.get(d).CheckCurrent(Log) && getDb().tables.get(d).ShowEditObjectDialog(target);
}
//--
public EditServerObject(S server_in, Class<D> d_in) {
super(server_in, d_in);
}
//--
@Override
protected void ServerAction() throws Exception {
EditObject(target);
}
@Override
protected void showDone() throws Exception {
VisualCaches.RefreshCache(target);
getDb().tables.get(d).ui_.Show(target.getPK());
}
}