gui: fix tree class switch
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package jadx.gui;
|
||||
|
||||
import jadx.cli.JadxArgs;
|
||||
import jadx.gui.treemodel.JClass;
|
||||
import jadx.gui.treemodel.JNode;
|
||||
import jadx.gui.treemodel.JRoot;
|
||||
|
||||
@@ -93,6 +94,9 @@ public class MainWindow extends JFrame {
|
||||
if (node.getJParent() != null) {
|
||||
textArea.setText(node.getJParent().getCode());
|
||||
scrollToLine(node.getLine());
|
||||
} else if (node.getClass() == JClass.class){
|
||||
textArea.setText(((JClass)node).getCode());
|
||||
scrollToLine(node.getLine());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user