обобщение именования стандартных проходов,теперь их описание берется из таблицы к которой они относятся.

This commit is contained in:
2024-10-22 19:53:38 +03:00
parent 2fed433634
commit 84c3813894
16 changed files with 79 additions and 237 deletions

View File

@@ -12,6 +12,10 @@ public abstract class CloneServerObject<S extends RepositoryServer, D extends ri
public String getIconPath() {
return "/icons/MultiFiles.png";
}
@Override
public String getDescription_() {
return "дублирование";
}
protected abstract Current currentName();
@Override
protected boolean canStart(Object... args) throws Exception {

View File

@@ -10,6 +10,9 @@ public class DeleteServerObject<S extends RepositoryServer, D extends DBObject>
public String getIconPath() {
return "/Common/icons/Delete.png";
}
public String getDescription_(){
return "удаление";
}
@Override
protected boolean canStart(Object... args) throws Exception {
target = (D) getDb().getTable(d).getUI().getCurrent();

View File

@@ -23,6 +23,10 @@ public class DeleteServerObjects<S extends RepositoryServer, D extends DBObject>
return "/Common/icons/Delete.png";
}
@Override
public String getDescription() {
return getDb().getTable(d).getPluralDescription()+": удаление";
}
@Override
public String getButtonText() {
return "";
}

View File

@@ -12,6 +12,9 @@ public class EditServerObject<S extends RepositoryServer, D extends DBObject> ex
public String getIconPath() {
return "/Common/icons/Edit.png";
}
public String getDescription_(){
return "редактирование";
}
//--
@Override
protected boolean canStart(Object... args) throws Exception {

View File

@@ -14,6 +14,9 @@ public class PublishServerObject<S extends RepositoryServer, D extends DBObject>
public String getIconPath() {
return "/Common/icons/RedAdd.png";
}
public String getDescription_(){
return "публикация";
}
//--
@Override
protected boolean canStart(Object... args) throws Exception {

View File

@@ -10,6 +10,13 @@ public abstract class ServerObjectPass<S extends RepositoryServer, D extends DBO
super(server_in);
d = d_in;
}
public String getDescription_(){
return "?";
}
@Override
public String getDescription() {
return getDb().getTable(d).getSingleDescription()+": "+ getDescription_();
}
//--
@Override
public String getButtonText() {