удаление набора флагов
This commit is contained in:
@@ -6,4 +6,8 @@ public class OptionsLine extends iDBObject {
|
||||
public OptionsLine(OptionsJson json_in){
|
||||
json = json_in;
|
||||
}
|
||||
@Override
|
||||
public String getBDialogName() {
|
||||
return json.toLine();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -99,6 +99,40 @@ public class OptionsLinesForm extends DataSetControlForm<OptionsLine> {
|
||||
protected void showFinish() throws Exception {
|
||||
dataSource.ShowUI(target.getPK());
|
||||
}
|
||||
},
|
||||
new Pass<OptionsLine>(){
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/Common/icons/Delete.png";
|
||||
}
|
||||
@Override
|
||||
public String getDescription() {
|
||||
return "Удаление набора опций компиляции";
|
||||
}
|
||||
@Override
|
||||
public String getButtonText() {
|
||||
return "";
|
||||
}
|
||||
@Override
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
if (dataSource.getUI().CheckCurrent(Log)) {
|
||||
target = dataSource.getUI().getCurrent();
|
||||
return dataSource.getUI().ShowDeleteObjectDialog(target);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
@Override
|
||||
protected void showPreparation() throws Exception {
|
||||
dataSource.ClearUI();
|
||||
}
|
||||
@Override
|
||||
protected void body() throws Exception {
|
||||
dataSource.Data.remove(target.getPK());
|
||||
}
|
||||
@Override
|
||||
protected void showFinish() throws Exception {
|
||||
dataSource.ShowUI();
|
||||
}
|
||||
}
|
||||
);
|
||||
return res;
|
||||
|
||||
Reference in New Issue
Block a user