рефакторинг. переносил текущие объекты в другое место
This commit is contained in:
@@ -2,6 +2,7 @@ package Visual_DVM_2021.Passes.All;
|
||||
import Common.Current_;
|
||||
import _VisualDVM.Current;
|
||||
import Visual_DVM_2021.Passes.SapforFilesModification;
|
||||
import _VisualDVM.Global;
|
||||
public class SPF_ChangeSpfIntervals extends SapforFilesModification {
|
||||
// SPF_ChangeSpfIntervals (addOpt1_c -> file, addOpt2_c-> int lines, '|' as delimiter)
|
||||
int start;
|
||||
@@ -9,11 +10,11 @@ public class SPF_ChangeSpfIntervals extends SapforFilesModification {
|
||||
int mod;
|
||||
@Override
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
if (super.canStart(args) && Current_.Check(Log, Current.File)) {
|
||||
if (super.canStart(args) && Global.mainModule.Check(Log, Current.File)) {
|
||||
start = (int) args[0];
|
||||
end = (int) args[1];
|
||||
mod = (int) args[2];
|
||||
addOpt1 = Current.getFile().name;
|
||||
addOpt1 = Global.mainModule.getFile().name;
|
||||
addOpt2 = start + "|" + end + "|" + mod;
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user