Issue #173 Method body update after global rename

This commit is contained in:
Jindra Petk
2013-07-05 18:59:22 +02:00
parent 0ef0160ee4
commit 4c07495a2e
2 changed files with 7 additions and 3 deletions

View File

@@ -439,6 +439,7 @@ public class ABCPanel extends JPanel implements ItemListener, ActionListener {
switchAbc(listIndex);
decompiledTextArea.clearScriptCache();
decompiledTextArea.reloadClass();
detailPanel.methodTraitPanel.methodCodePanel.setBodyIndex(-1, abc);
}
@Override

View File

@@ -1,16 +1,16 @@
/*
* Copyright (C) 2010-2013 JPEXS
*
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
@@ -103,6 +103,9 @@ public class ASMSourceEditorPane extends LineMarkedEditorPane implements CaretLi
this.bodyIndex = bodyIndex;
this.abc = abc;
this.name = name;
if (bodyIndex == -1) {
return;
}
String textWithHexTags = abc.bodies[bodyIndex].code.toASMSource(abc.constants, abc.bodies[bodyIndex], true);
textWithHex = Helper.hexToComments(textWithHexTags);
textNoHex = Helper.stripComments(textWithHexTags);