no message
This commit is contained in:
@@ -8,9 +8,6 @@ import _VisualDVM.Global;
|
||||
import _VisualDVM.GlobalData.CompilerEnvironment.EnvironmentsLine;
|
||||
import _VisualDVM.GlobalData.CompilerEnvironment.EnvironmentsLinesSet;
|
||||
import _VisualDVM.GlobalData.CompilerEnvironment.Json.EnvironmentsJson;
|
||||
import _VisualDVM.GlobalData.CompilerOption.Json.OptionsJson;
|
||||
import _VisualDVM.GlobalData.CompilerOption.OptionsLine;
|
||||
import _VisualDVM.GlobalData.CompilerOption.OptionsLinesSet;
|
||||
import _VisualDVM.Passes.PassCode;
|
||||
|
||||
import javax.swing.*;
|
||||
@@ -18,7 +15,6 @@ public class EnvironmentsLinesForm extends DataSetControlForm<EnvironmentsLine>
|
||||
public EnvironmentsLinesForm(DataSet<?, EnvironmentsLine> dataSource_in, JPanel mountPanel_in) {
|
||||
super(dataSource_in, mountPanel_in);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean hasCheckBox() {
|
||||
return false;
|
||||
@@ -40,7 +36,7 @@ public class EnvironmentsLinesForm extends DataSetControlForm<EnvironmentsLine>
|
||||
protected DataMenuBar createMenuBar() {
|
||||
DataMenuBar res = super.createMenuBar();
|
||||
res.addPasses(
|
||||
new Pass<EnvironmentsLine>(){
|
||||
new Pass<EnvironmentsLine>() {
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/Common/icons/RedAdd.png";
|
||||
@@ -56,9 +52,9 @@ public class EnvironmentsLinesForm extends DataSetControlForm<EnvironmentsLine>
|
||||
@Override
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
Pass pass = Global.mainModule.getPass(PassCode.PickCompilerEnvironmentsForTesting);
|
||||
if (pass.Do(Global.mainModule.getDb().compilers.getUI().getCurrent())){
|
||||
target= new EnvironmentsLine((EnvironmentsJson) pass.target);
|
||||
target.id = ((EnvironmentsLinesSet)dataSource).maxId++;
|
||||
if (pass.Do(Global.mainModule.getDb().compilers.getUI().getCurrent())) {
|
||||
target = new EnvironmentsLine((EnvironmentsJson) pass.target);
|
||||
target.id = ((EnvironmentsLinesSet) dataSource).maxId++;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
@@ -72,7 +68,7 @@ public class EnvironmentsLinesForm extends DataSetControlForm<EnvironmentsLine>
|
||||
dataSource.ShowUI(target.getPK());
|
||||
}
|
||||
},
|
||||
new Pass<EnvironmentsLine>(){
|
||||
new Pass<EnvironmentsLine>() {
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/Common/icons/Edit.png";
|
||||
@@ -90,7 +86,7 @@ public class EnvironmentsLinesForm extends DataSetControlForm<EnvironmentsLine>
|
||||
if (dataSource.getUI().CheckCurrent(Log)) {
|
||||
target = dataSource.getUI().getCurrent();
|
||||
Pass pass = Global.mainModule.getPass(PassCode.PickCompilerEnvironmentsForTesting);
|
||||
if (pass.Do(Global.mainModule.getDb().compilers.getUI().getCurrent(), target.json)){
|
||||
if (pass.Do(Global.mainModule.getDb().compilers.getUI().getCurrent(), target.json)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -98,14 +94,13 @@ public class EnvironmentsLinesForm extends DataSetControlForm<EnvironmentsLine>
|
||||
}
|
||||
@Override
|
||||
protected void body() throws Exception {
|
||||
|
||||
}
|
||||
@Override
|
||||
protected void showFinish() throws Exception {
|
||||
dataSource.ShowUI(target.getPK());
|
||||
}
|
||||
},
|
||||
new Pass<EnvironmentsLine>(){
|
||||
new Pass<EnvironmentsLine>() {
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/Common/icons/Delete.png";
|
||||
|
||||
Reference in New Issue
Block a user