окончательное разделение таблицы и функционала видимой ее формы
This commit is contained in:
@@ -9,7 +9,6 @@ import Common.Utils.Utils_;
|
||||
import Common.Visual.DataSetControlForm;
|
||||
import Common.Visual.UI;
|
||||
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.GlobalData.Compiler.UI.CompilerFields;
|
||||
import _VisualDVM.GlobalData.Compiler.UI.CompilersForm;
|
||||
@@ -27,14 +26,6 @@ public class CompilersDBTable extends iDBTable<Compiler> {
|
||||
super(Compiler.class);
|
||||
}
|
||||
@Override
|
||||
public String getSingleDescription() {
|
||||
return "компилятор";
|
||||
}
|
||||
@Override
|
||||
public String getPluralDescription() {
|
||||
return "компиляторы";
|
||||
}
|
||||
@Override
|
||||
public LinkedHashMap<Class<? extends DBObject>, FKBehaviour> getFKDependencies() {
|
||||
LinkedHashMap<Class<? extends DBObject>, FKBehaviour> res = new LinkedHashMap<>();
|
||||
res.put(Makefile.class, new FKBehaviour(FKDataBehaviour.DROP, FKCurrentObjectBehaviuor.PASSIVE));
|
||||
@@ -124,10 +115,6 @@ public class CompilersDBTable extends iDBTable<Compiler> {
|
||||
return new CompilersForm(this, mountPanel);
|
||||
}
|
||||
@Override
|
||||
public Current CurrentName() {
|
||||
return Current.Compiler;
|
||||
}
|
||||
@Override
|
||||
public PassCode_ getDeletePassCode() {
|
||||
return PassCode.DeleteCompiler;
|
||||
}
|
||||
|
||||
@@ -14,6 +14,18 @@ public class CompilersForm extends DataSetControlForm<Compiler> {
|
||||
super(dataSource_in, mountPanel_in);
|
||||
}
|
||||
@Override
|
||||
public Current CurrentName() {
|
||||
return Current.Compiler;
|
||||
}
|
||||
@Override
|
||||
public String getSingleDescription() {
|
||||
return "компилятор";
|
||||
}
|
||||
@Override
|
||||
public String getPluralDescription() {
|
||||
return "компиляторы";
|
||||
}
|
||||
@Override
|
||||
public boolean hasCheckBox() {
|
||||
return true;
|
||||
}
|
||||
@@ -41,7 +53,7 @@ public class CompilersForm extends DataSetControlForm<Compiler> {
|
||||
}
|
||||
@Override
|
||||
public DataMenuBar createMenuBar() {
|
||||
return new DataMenuBar(dataSource.getPluralDescription(), PassCode.AddCompiler,
|
||||
return new DataMenuBar(getPluralDescription(), PassCode.AddCompiler,
|
||||
PassCode.EditCompiler,
|
||||
PassCode.DeleteCompiler,
|
||||
PassCode.ShowCompilerVersion,
|
||||
|
||||
Reference in New Issue
Block a user