рефакторинг. переносил текущие объекты в другое место
This commit is contained in:
@@ -15,7 +15,7 @@ public class SPF_InlineProcedure extends SapforFilesModification {
|
||||
@Override
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
if (super.canStart(args) && (call = (args.length > 0) ? (FuncCall) args[0] : null) != null) {
|
||||
addOpt1 = call.funcName + "|" + Current.getFile().name;
|
||||
addOpt1 = call.funcName + "|" + Global.mainModule.getFile().name;
|
||||
addOpt2 = String.valueOf(call.parent_offset);
|
||||
Global.changeSetting(SettingName.PARSE_FOR_INLINE, "1");
|
||||
// Pass_2021.passes.get(PassCode_2021.UpdateSetting).Do(SettingName.PARSE_FOR_INLINE, "1");
|
||||
@@ -32,6 +32,6 @@ public class SPF_InlineProcedure extends SapforFilesModification {
|
||||
@Override
|
||||
protected void showDone() throws Exception {
|
||||
super.showDone();
|
||||
Current.getFile().form.getEditor().gotoLine(call.line);
|
||||
Global.mainModule.getFile().form.getEditor().gotoLine(call.line);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user