перенос проходов в центральный модуль
This commit is contained in:
@@ -42,7 +42,7 @@ public class MainEditorMenu extends TextEditorMenu {
|
||||
m_gotoHeader.addActionListener(new ActionListener() {
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
Pass.passes.get(PassCode.OpenCurrentFile).Do(header);
|
||||
Global.mainModule.getPass(PassCode.OpenCurrentFile).Do(header);
|
||||
}
|
||||
});
|
||||
add(m_gotoHeader);
|
||||
@@ -61,7 +61,7 @@ public class MainEditorMenu extends TextEditorMenu {
|
||||
new AbstractAction() {
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
Pass.passes.get(PassCode.SPF_InlineProcedure).Do(call);
|
||||
Global.mainModule.getPass(PassCode.SPF_InlineProcedure).Do(call);
|
||||
}
|
||||
});
|
||||
add(m_inline);
|
||||
@@ -71,7 +71,7 @@ public class MainEditorMenu extends TextEditorMenu {
|
||||
new AbstractAction() {
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
Pass.passes.get(PassCode.SPF_LoopUnionCurrent).Do();
|
||||
Global.mainModule.getPass(PassCode.SPF_LoopUnionCurrent).Do();
|
||||
}
|
||||
});
|
||||
add(m_loop_union);
|
||||
@@ -81,7 +81,7 @@ public class MainEditorMenu extends TextEditorMenu {
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
try {
|
||||
Pass.passes.get(PassCode.SPF_ChangeSpfIntervals).Do(
|
||||
Global.mainModule.getPass(PassCode.SPF_ChangeSpfIntervals).Do(
|
||||
((RSyntaxTextArea) editor).getLineOfOffset(editor.getSelectionStart()) + 1,
|
||||
((RSyntaxTextArea) editor).getLineOfOffset(editor.getSelectionEnd()) + 1,
|
||||
1
|
||||
@@ -98,7 +98,7 @@ public class MainEditorMenu extends TextEditorMenu {
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
try {
|
||||
Pass.passes.get(PassCode.SPF_ChangeSpfIntervals).Do(
|
||||
Global.mainModule.getPass(PassCode.SPF_ChangeSpfIntervals).Do(
|
||||
((RSyntaxTextArea) editor).getLineOfOffset(editor.getSelectionStart()) + 1,
|
||||
((RSyntaxTextArea) editor).getLineOfOffset(editor.getSelectionEnd()) + 1,
|
||||
0
|
||||
@@ -230,7 +230,7 @@ public class MainEditorMenu extends TextEditorMenu {
|
||||
m_gotoFunction.setToolTipText(tip);
|
||||
return;
|
||||
}
|
||||
if (!Pass.passes.get(PassCode.SPF_GetGraphFunctions).isDone()) {
|
||||
if (! Global.mainModule.getPass(PassCode.SPF_GetGraphFunctions).isDone()) {
|
||||
m_inline.setText("Невозможно подставить вызов процедуры " + Utils_.Brackets(selectedText) +
|
||||
" . Выполните проход \"Граф процедур \".");
|
||||
m_gotoFunction.setText("Невозможно перейти к объявлению процедуры " + Utils_.Brackets(selectedText) +
|
||||
@@ -278,7 +278,7 @@ public class MainEditorMenu extends TextEditorMenu {
|
||||
m_gotoHeader.setText("Невозможно перейти к заголовочному файлу. В текущей строке не найдено включений.");
|
||||
return;
|
||||
}
|
||||
if (!Pass.passes.get(PassCode.SPF_GetIncludeDependencies).isDone()) {
|
||||
if (! Global.mainModule.getPass(PassCode.SPF_GetIncludeDependencies).isDone()) {
|
||||
m_gotoHeader.setText("Невозможно перейти к заголовочному файлу. Выполните проход \"Поиск зависимостей по включению\"");
|
||||
return;
|
||||
}
|
||||
@@ -294,7 +294,7 @@ public class MainEditorMenu extends TextEditorMenu {
|
||||
private void checkLoop() {
|
||||
loop = null;
|
||||
m_loop_union.setEnabled(false);
|
||||
if (!Pass.passes.get(PassCode.SPF_GetGraphLoops).isDone()) {
|
||||
if (! Global.mainModule.getPass(PassCode.SPF_GetGraphLoops).isDone()) {
|
||||
m_loop_union.setText("Невозможно объединить цикл в текущей строке со следующим. " +
|
||||
"Выполните проход \"Граф циклов\"");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user