рефакторинг. переносил текущие объекты в другое место

This commit is contained in:
2024-10-13 22:08:13 +03:00
parent 09b64218bd
commit 6afa2dc892
240 changed files with 1472 additions and 1518 deletions

View File

@@ -2,13 +2,14 @@ package Visual_DVM_2021.Passes.All;
import Common.Current_;
import _VisualDVM.Current;
import Visual_DVM_2021.Passes.SapforFilesModification;
import _VisualDVM.Global;
// SPF_LoopUnionCurrent (addOpt1_c -> file, addOpt2_c-> line)
public class SPF_LoopUnionCurrent extends SapforFilesModification {
@Override
protected boolean canStart(Object... args) throws Exception {
if (super.canStart(args) && Current_.Check(Log, Current.File)) {
addOpt1 = Current.getFile().name;
addOpt2 = String.valueOf(Current.getFile().form.getEditor().getCurrentLine());
if (super.canStart(args) && Global.mainModule.Check(Log, Current.File)) {
addOpt1 = Global.mainModule.getFile().name;
addOpt2 = String.valueOf(Global.mainModule.getFile().form.getEditor().getCurrentLine());
return true;
}
return false;