2024-10-09 22:21:57 +03:00
|
|
|
package _VisualDVM.GlobalData.Compiler;
|
2024-10-07 00:58:29 +03:00
|
|
|
import Common.Database.Objects.DBObject;
|
|
|
|
|
import Common.Database.Tables.FKBehaviour;
|
|
|
|
|
import Common.Database.Tables.FKCurrentObjectBehaviuor;
|
|
|
|
|
import Common.Database.Tables.FKDataBehaviour;
|
|
|
|
|
import Common.Database.Tables.iDBTable;
|
2024-10-16 21:58:46 +03:00
|
|
|
import Common.Passes.PassCode_;
|
2024-10-14 15:19:13 +03:00
|
|
|
import Common.Visual.DataSetControlForm;
|
2024-10-20 17:27:58 +03:00
|
|
|
import _VisualDVM.GlobalData.Compiler.UI.CompilersForm;
|
2024-10-09 22:21:57 +03:00
|
|
|
import _VisualDVM.GlobalData.Makefile.Makefile;
|
|
|
|
|
import _VisualDVM.GlobalData.Module.Module;
|
|
|
|
|
import _VisualDVM.GlobalData.RunConfiguration.RunConfiguration;
|
2024-10-16 20:45:59 +03:00
|
|
|
import _VisualDVM.Passes.PassCode;
|
2023-09-17 22:13:42 +03:00
|
|
|
|
2024-10-17 20:04:16 +03:00
|
|
|
import javax.swing.*;
|
2023-09-17 22:13:42 +03:00
|
|
|
import java.util.LinkedHashMap;
|
|
|
|
|
public class CompilersDBTable extends iDBTable<Compiler> {
|
|
|
|
|
public CompilersDBTable() {
|
|
|
|
|
super(Compiler.class);
|
|
|
|
|
}
|
|
|
|
|
@Override
|
2024-10-22 19:17:01 +03:00
|
|
|
public String getSingleDescription() {
|
|
|
|
|
return "компилятор";
|
|
|
|
|
}
|
|
|
|
|
@Override
|
|
|
|
|
public String getPluralDescription() {
|
|
|
|
|
return "компиляторы";
|
|
|
|
|
}
|
|
|
|
|
@Override
|
2023-09-17 22:13:42 +03:00
|
|
|
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));
|
|
|
|
|
res.put(Module.class, new FKBehaviour(FKDataBehaviour.DROP, FKCurrentObjectBehaviuor.PASSIVE));
|
|
|
|
|
res.put(RunConfiguration.class, new FKBehaviour(FKDataBehaviour.DROP, FKCurrentObjectBehaviuor.PASSIVE));
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
@Override
|
2024-10-17 20:04:16 +03:00
|
|
|
protected DataSetControlForm createUI(JPanel mountPanel) {
|
2024-10-20 17:27:58 +03:00
|
|
|
return new CompilersForm(this, mountPanel);
|
2023-09-17 22:13:42 +03:00
|
|
|
}
|
|
|
|
|
@Override
|
2024-10-16 21:58:46 +03:00
|
|
|
public PassCode_ getDeletePassCode() {
|
|
|
|
|
return PassCode.DeleteCompiler;
|
|
|
|
|
}
|
2023-09-17 22:13:42 +03:00
|
|
|
}
|