обобщение именования стандартных проходов,теперь их описание берется из таблицы к которой они относятся.
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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 "";
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user