no message
This commit is contained in:
22
src/_VisualDVM/Passes/All/SPF_ChangeSpfIntervals.java
Normal file
22
src/_VisualDVM/Passes/All/SPF_ChangeSpfIntervals.java
Normal file
@@ -0,0 +1,22 @@
|
||||
package _VisualDVM.Passes.All;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Passes.Sapfor.SapforFilesModification;
|
||||
import _VisualDVM.Global;
|
||||
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 {
|
||||
if (super.canStart(args) && Global.mainModule.Check(Log, Current.File)) {
|
||||
start = (int) args[0];
|
||||
end = (int) args[1];
|
||||
mod = (int) args[2];
|
||||
addOpt1 = Global.mainModule.getFile().name;
|
||||
addOpt2 = start + "|" + end + "|" + mod;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user