перевод тестовых описания данных обратно в таблицы. нужно для обобщения описаний типовых проходов
This commit is contained in:
@@ -13,6 +13,14 @@ public class BugReportsDBTable extends DBTable<String, BugReport> {
|
||||
super(String.class, BugReport.class);
|
||||
}
|
||||
@Override
|
||||
public String getSingleDescription() {
|
||||
return "отчёт об ошибке";
|
||||
}
|
||||
@Override
|
||||
public String getPluralDescription() {
|
||||
return "отчёты об ошибках";
|
||||
}
|
||||
@Override
|
||||
protected DataSetControlForm createUI(JPanel mountPanel) {
|
||||
return new BugReportsForm(this, mountPanel);
|
||||
}
|
||||
|
||||
@@ -35,14 +35,6 @@ public class BugReportsForm extends DataSetControlForm<BugReport> {
|
||||
return Current.BugReport;
|
||||
}
|
||||
@Override
|
||||
protected String getSingleDescription() {
|
||||
return "отчёт об ошибке";
|
||||
}
|
||||
@Override
|
||||
protected String getPluralDescription() {
|
||||
return "отчёты об ошибках";
|
||||
}
|
||||
@Override
|
||||
public String[] getUIColumnNames() {
|
||||
return new String[]{
|
||||
"Описание",
|
||||
@@ -92,7 +84,7 @@ public class BugReportsForm extends DataSetControlForm<BugReport> {
|
||||
}
|
||||
@Override
|
||||
public DataMenuBar createMenuBar() {
|
||||
return new DataMenuBar(getPluralDescription(),
|
||||
return new DataMenuBar(dataSource.getPluralDescription(),
|
||||
PassCode.SynchronizeBugReports,
|
||||
PassCode.DownloadAllBugReportsArchives,
|
||||
PassCode.AddBugReport,
|
||||
|
||||
@@ -9,6 +9,14 @@ public class ComponentsSet extends DataSet<ComponentType, Component> {
|
||||
super(ComponentType.class, Component.class);
|
||||
}
|
||||
@Override
|
||||
public String getSingleDescription() {
|
||||
return "компонент";
|
||||
}
|
||||
@Override
|
||||
public String getPluralDescription() {
|
||||
return "компоненты";
|
||||
}
|
||||
@Override
|
||||
protected DataSetControlForm createUI(JPanel mountPanel) {
|
||||
return new ComponentsForm(this, mountPanel);
|
||||
}
|
||||
|
||||
@@ -23,14 +23,6 @@ public class ComponentsForm extends DataSetControlForm<Component> {
|
||||
return Current.Component;
|
||||
}
|
||||
@Override
|
||||
protected String getSingleDescription() {
|
||||
return "компонент";
|
||||
}
|
||||
@Override
|
||||
protected String getPluralDescription() {
|
||||
return "компоненты";
|
||||
}
|
||||
@Override
|
||||
protected boolean hasCheckBox() {
|
||||
return true;
|
||||
}
|
||||
@@ -69,7 +61,7 @@ public class ComponentsForm extends DataSetControlForm<Component> {
|
||||
}
|
||||
@Override
|
||||
public DataMenuBar createMenuBar() {
|
||||
return new DataMenuBar(getPluralDescription(), PassCode.InstallComponentFromFolder,
|
||||
return new DataMenuBar(dataSource.getPluralDescription(), PassCode.InstallComponentFromFolder,
|
||||
PassCode.UpdateSelectedComponents,
|
||||
PassCode.PublishComponent,
|
||||
PassCode.ShowComponentChangesLog) {
|
||||
@@ -84,7 +76,7 @@ public class ComponentsForm extends DataSetControlForm<Component> {
|
||||
}
|
||||
}
|
||||
);
|
||||
Global.mainModule.getPass(PassCode.PublishComponent).setControlsVisible(false);
|
||||
MainModule_.instance.getPass(PassCode.PublishComponent).setControlsVisible(false);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@@ -10,6 +10,14 @@ public class SubscriberWorkspaceDBTable extends iDBTable<SubscriberWorkspace> {
|
||||
public SubscriberWorkspaceDBTable() {
|
||||
super(SubscriberWorkspace.class);
|
||||
}
|
||||
@Override
|
||||
public String getSingleDescription() {
|
||||
return "рабочая папка";
|
||||
}
|
||||
@Override
|
||||
public String getPluralDescription() {
|
||||
return "рабочие папки";
|
||||
}
|
||||
public SubscriberWorkspace findWorkspace(String email, String machineURL, String login) {
|
||||
return this.Data.values().stream().filter(subscriberWorkspace ->
|
||||
subscriberWorkspace.email.equals(email) &&
|
||||
|
||||
@@ -17,14 +17,6 @@ public class SubscriberWorkspacesForm extends DataSetControlForm<SubscriberWorks
|
||||
return Current.SubscriberWorkspace;
|
||||
}
|
||||
@Override
|
||||
protected String getSingleDescription() {
|
||||
return "рабочая папка";
|
||||
}
|
||||
@Override
|
||||
protected String getPluralDescription() {
|
||||
return "рабочие папки";
|
||||
}
|
||||
@Override
|
||||
public String[] getUIColumnNames() {
|
||||
return new String[]{
|
||||
"URL",
|
||||
@@ -45,7 +37,7 @@ public class SubscriberWorkspacesForm extends DataSetControlForm<SubscriberWorks
|
||||
}
|
||||
@Override
|
||||
public DataMenuBar createMenuBar() {
|
||||
return new DataMenuBar(getPluralDescription(), PassCode.DeleteSubscriberWorkspace);
|
||||
return new DataMenuBar(dataSource.getPluralDescription(), PassCode.DeleteSubscriberWorkspace);
|
||||
}
|
||||
@Override
|
||||
public boolean isObjectVisible(SubscriberWorkspace object) {
|
||||
|
||||
@@ -17,6 +17,14 @@ public class SubsribersDBTable extends DBTable<String, Subscriber> {
|
||||
super(String.class, Subscriber.class);
|
||||
}
|
||||
@Override
|
||||
public String getSingleDescription() {
|
||||
return "адресат";
|
||||
}
|
||||
@Override
|
||||
public String getPluralDescription() {
|
||||
return "адресаты";
|
||||
}
|
||||
@Override
|
||||
protected DataSetControlForm createUI(JPanel mountPanel) {
|
||||
return new SubsribersForm(this, mountPanel);
|
||||
}
|
||||
|
||||
@@ -20,14 +20,6 @@ public class SubsribersForm extends DataSetControlForm<Subscriber> {
|
||||
return Current.Subscriber;
|
||||
}
|
||||
@Override
|
||||
protected String getSingleDescription() {
|
||||
return "адресат";
|
||||
}
|
||||
@Override
|
||||
protected String getPluralDescription() {
|
||||
return "адресаты";
|
||||
}
|
||||
@Override
|
||||
protected boolean hasCheckBox() {
|
||||
return true;
|
||||
}
|
||||
@@ -60,7 +52,7 @@ public class SubsribersForm extends DataSetControlForm<Subscriber> {
|
||||
}
|
||||
@Override
|
||||
public DataMenuBar createMenuBar() {
|
||||
return new DataMenuBar(getPluralDescription(),
|
||||
return new DataMenuBar(dataSource.getPluralDescription(),
|
||||
PassCode.SaveBugReportExecutor,
|
||||
PassCode.SaveBugReportRecipients,
|
||||
PassCode.AddSubscriber,
|
||||
|
||||
Reference in New Issue
Block a user