49 lines
1.6 KiB
Java
49 lines
1.6 KiB
Java
|
|
package _VisualDVM.GlobalData.Compiler.UI;
|
||
|
|
import Common.Database.Tables.DataSet;
|
||
|
|
import Common.Visual.DataSetControlForm;
|
||
|
|
import Common.Visual.Menus.DataMenuBar;
|
||
|
|
import _VisualDVM.Global;
|
||
|
|
import _VisualDVM.GlobalData.Compiler.Compiler;
|
||
|
|
import _VisualDVM.Passes.PassCode;
|
||
|
|
|
||
|
|
import javax.swing.*;
|
||
|
|
public class CompilersForm extends DataSetControlForm<Compiler> {
|
||
|
|
public CompilersForm(DataSet<?, Compiler> dataSource_in, JPanel mountPanel_in) {
|
||
|
|
super(dataSource_in, mountPanel_in);
|
||
|
|
}
|
||
|
|
@Override
|
||
|
|
public boolean hasCheckBox() {
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
@Override
|
||
|
|
public String[] getUIColumnNames() {
|
||
|
|
return new String[]{
|
||
|
|
"описание",
|
||
|
|
"команда вызова",
|
||
|
|
"версия",
|
||
|
|
"ревизия"};
|
||
|
|
}
|
||
|
|
@Override
|
||
|
|
protected void AdditionalInitColumns() {
|
||
|
|
columns.get(0).setVisible(false);
|
||
|
|
}
|
||
|
|
@Override
|
||
|
|
public void ShowCurrentObject() throws Exception {
|
||
|
|
super.ShowCurrentObject();
|
||
|
|
Global.mainModule.getUI().getMainWindow().getTestingWindow().ShowCurrentCompiler();
|
||
|
|
}
|
||
|
|
@Override
|
||
|
|
public void ShowNoCurrentObject() throws Exception {
|
||
|
|
super.ShowNoCurrentObject();
|
||
|
|
Global.mainModule.getUI().getMainWindow().getTestingWindow().ShowCurrentCompiler();
|
||
|
|
}
|
||
|
|
@Override
|
||
|
|
public DataMenuBar createMenuBar() {
|
||
|
|
return new DataMenuBar(dataSource.getPluralDescription(), PassCode.AddCompiler,
|
||
|
|
PassCode.EditCompiler,
|
||
|
|
PassCode.DeleteCompiler,
|
||
|
|
PassCode.ShowCompilerVersion,
|
||
|
|
PassCode.ShowCompilerHelp);
|
||
|
|
}
|
||
|
|
}
|