рефакторинг. инкапсуляция таблиц бд

This commit is contained in:
2024-10-17 17:22:33 +03:00
parent 17c2644766
commit e34778d6be
65 changed files with 145 additions and 103 deletions

View File

@@ -165,7 +165,7 @@ public class CompilersDBTable extends iDBTable<Compiler> {
}
@Override
public DataMenuBar createMenuBar() {
return new DataMenuBar(getPluralDescription(),PassCode.AddCompiler,
return new DataMenuBar(getPluralDescription(), PassCode.AddCompiler,
PassCode.EditCompiler,
PassCode.DeleteCompiler,
PassCode.ShowCompilerVersion,

View File

@@ -137,7 +137,7 @@ public class MachinesDBTable extends iDBTable<Machine> {
return new DataMenuBar(getPluralDescription(),
PassCode.AddMachine,
PassCode.EditMachine,
PassCode.DeleteMachine){
PassCode.DeleteMachine) {
{
add(new MenuBarButton() {
{

View File

@@ -82,7 +82,7 @@ public class MakefilesDBTable extends iDBTable<Makefile> {
return new DataMenuBar(getPluralDescription(), PassCode.Compile,
PassCode.AddMakefile,
PassCode.EditMakefile,
PassCode.DeleteMakefile){
PassCode.DeleteMakefile) {
{
addSeparator();
addPasses(PassCode.ShowMakefilePreview, PassCode.EditProjectCompilationMaxtime);

View File

@@ -175,7 +175,7 @@ public class RunConfigurationsDBTable extends iDBTable<RunConfiguration> {
PassCode.Run,
PassCode.AddRunConfiguration,
PassCode.EditRunConfiguration,
PassCode.DeleteRunConfiguration){
PassCode.DeleteRunConfiguration) {
{
add(new JSeparator());
addPasses(PassCode.EditProjectRunMaxtime);

View File

@@ -29,7 +29,7 @@ public class SapforProfilesDBTable extends iDBTable<SapforProfile> {
}
@Override
protected DataSetControlForm createUI() {
return new DataSetControlForm(this){
return new DataSetControlForm(this) {
@Override
public boolean hasCheckBox() {
return true;

View File

@@ -14,7 +14,7 @@ public abstract class TaskSupervisor<T extends Task, P extends Pass> {
protected P pass; //проход отвечающий за задачу
protected int performanceTime; //сколько задача уже выполняется.
public void ShowTaskState() {
Global.mainModule.getDb().tables.get(task.getClass()).ShowUI(task.getPK());
Global.mainModule.getDb().getTable(task.getClass()).ShowUI(task.getPK());
}
public void Init(T task_in, P pass_in, db_project_info project_in) {
task = task_in;