2023-11-19 02:12:44 +03:00
|
|
|
package Visual_DVM_2021.Passes.All;
|
2024-10-08 00:39:13 +03:00
|
|
|
import Common.CurrentAnchestor;
|
2024-10-07 00:58:29 +03:00
|
|
|
import Common_old.Current;
|
2023-11-19 02:12:44 +03:00
|
|
|
import Visual_DVM_2021.Passes.SapforFilesModification;
|
2023-09-17 22:13:42 +03:00
|
|
|
public class SPF_ChangeSpfIntervals extends SapforFilesModification {
|
|
|
|
|
// SPF_ChangeSpfIntervals (addOpt1_c -> file, addOpt2_c-> int lines, '|' as delimiter)
|
|
|
|
|
int start;
|
|
|
|
|
int end;
|
|
|
|
|
int mod;
|
|
|
|
|
@Override
|
|
|
|
|
protected boolean canStart(Object... args) throws Exception {
|
2024-10-08 00:39:13 +03:00
|
|
|
if (super.canStart(args) && CurrentAnchestor.Check(Log, Current.File)) {
|
2023-09-17 22:13:42 +03:00
|
|
|
start = (int) args[0];
|
|
|
|
|
end = (int) args[1];
|
|
|
|
|
mod = (int) args[2];
|
|
|
|
|
addOpt1 = Current.getFile().name;
|
|
|
|
|
addOpt2 = start + "|" + end + "|" + mod;
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|