diff options
Diffstat (limited to 'src/main/java/cuchaz/enigma/gui/GuiController.java')
| -rw-r--r-- | src/main/java/cuchaz/enigma/gui/GuiController.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/main/java/cuchaz/enigma/gui/GuiController.java b/src/main/java/cuchaz/enigma/gui/GuiController.java index 6d98743..a5528a7 100644 --- a/src/main/java/cuchaz/enigma/gui/GuiController.java +++ b/src/main/java/cuchaz/enigma/gui/GuiController.java | |||
| @@ -51,7 +51,7 @@ public class GuiController { | |||
| 51 | return this.isDirty; | 51 | return this.isDirty; |
| 52 | } | 52 | } |
| 53 | 53 | ||
| 54 | public void openJar(final JarFile jar) { | 54 | public void openJar(final JarFile jar) throws IOException { |
| 55 | this.gui.onStartOpenJar(); | 55 | this.gui.onStartOpenJar(); |
| 56 | this.deobfuscator = new Deobfuscator(jar); | 56 | this.deobfuscator = new Deobfuscator(jar); |
| 57 | this.gui.onFinishOpenJar(this.deobfuscator.getJarName()); | 57 | this.gui.onFinishOpenJar(this.deobfuscator.getJarName()); |
| @@ -161,24 +161,24 @@ public class GuiController { | |||
| 161 | 161 | ||
| 162 | public ClassInheritanceTreeNode getClassInheritance(ClassEntry deobfClassEntry) { | 162 | public ClassInheritanceTreeNode getClassInheritance(ClassEntry deobfClassEntry) { |
| 163 | ClassEntry obfClassEntry = this.deobfuscator.obfuscateEntry(deobfClassEntry); | 163 | ClassEntry obfClassEntry = this.deobfuscator.obfuscateEntry(deobfClassEntry); |
| 164 | ClassInheritanceTreeNode rootNode = this.deobfuscator.getJarIndex().getClassInheritance(this.deobfuscator.getTranslator(TranslationDirection.Deobfuscating), obfClassEntry); | 164 | ClassInheritanceTreeNode rootNode = this.deobfuscator.getJarIndex().getClassInheritance(this.deobfuscator.getTranslator(TranslationDirection.DEOBFUSCATING), obfClassEntry); |
| 165 | return ClassInheritanceTreeNode.findNode(rootNode, obfClassEntry); | 165 | return ClassInheritanceTreeNode.findNode(rootNode, obfClassEntry); |
| 166 | } | 166 | } |
| 167 | 167 | ||
| 168 | public ClassImplementationsTreeNode getClassImplementations(ClassEntry deobfClassEntry) { | 168 | public ClassImplementationsTreeNode getClassImplementations(ClassEntry deobfClassEntry) { |
| 169 | ClassEntry obfClassEntry = this.deobfuscator.obfuscateEntry(deobfClassEntry); | 169 | ClassEntry obfClassEntry = this.deobfuscator.obfuscateEntry(deobfClassEntry); |
| 170 | return this.deobfuscator.getJarIndex().getClassImplementations(this.deobfuscator.getTranslator(TranslationDirection.Deobfuscating), obfClassEntry); | 170 | return this.deobfuscator.getJarIndex().getClassImplementations(this.deobfuscator.getTranslator(TranslationDirection.DEOBFUSCATING), obfClassEntry); |
| 171 | } | 171 | } |
| 172 | 172 | ||
| 173 | public MethodInheritanceTreeNode getMethodInheritance(MethodEntry deobfMethodEntry) { | 173 | public MethodInheritanceTreeNode getMethodInheritance(MethodEntry deobfMethodEntry) { |
| 174 | MethodEntry obfMethodEntry = this.deobfuscator.obfuscateEntry(deobfMethodEntry); | 174 | MethodEntry obfMethodEntry = this.deobfuscator.obfuscateEntry(deobfMethodEntry); |
| 175 | MethodInheritanceTreeNode rootNode = this.deobfuscator.getJarIndex().getMethodInheritance(this.deobfuscator.getTranslator(TranslationDirection.Deobfuscating), obfMethodEntry); | 175 | MethodInheritanceTreeNode rootNode = this.deobfuscator.getJarIndex().getMethodInheritance(this.deobfuscator.getTranslator(TranslationDirection.DEOBFUSCATING), obfMethodEntry); |
| 176 | return MethodInheritanceTreeNode.findNode(rootNode, obfMethodEntry); | 176 | return MethodInheritanceTreeNode.findNode(rootNode, obfMethodEntry); |
| 177 | } | 177 | } |
| 178 | 178 | ||
| 179 | public MethodImplementationsTreeNode getMethodImplementations(MethodEntry deobfMethodEntry) { | 179 | public MethodImplementationsTreeNode getMethodImplementations(MethodEntry deobfMethodEntry) { |
| 180 | MethodEntry obfMethodEntry = this.deobfuscator.obfuscateEntry(deobfMethodEntry); | 180 | MethodEntry obfMethodEntry = this.deobfuscator.obfuscateEntry(deobfMethodEntry); |
| 181 | List<MethodImplementationsTreeNode> rootNodes = this.deobfuscator.getJarIndex().getMethodImplementations(this.deobfuscator.getTranslator(TranslationDirection.Deobfuscating), obfMethodEntry); | 181 | List<MethodImplementationsTreeNode> rootNodes = this.deobfuscator.getJarIndex().getMethodImplementations(this.deobfuscator.getTranslator(TranslationDirection.DEOBFUSCATING), obfMethodEntry); |
| 182 | if (rootNodes.isEmpty()) { | 182 | if (rootNodes.isEmpty()) { |
| 183 | return null; | 183 | return null; |
| 184 | } | 184 | } |
| @@ -190,14 +190,14 @@ public class GuiController { | |||
| 190 | 190 | ||
| 191 | public FieldReferenceTreeNode getFieldReferences(FieldEntry deobfFieldEntry) { | 191 | public FieldReferenceTreeNode getFieldReferences(FieldEntry deobfFieldEntry) { |
| 192 | FieldEntry obfFieldEntry = this.deobfuscator.obfuscateEntry(deobfFieldEntry); | 192 | FieldEntry obfFieldEntry = this.deobfuscator.obfuscateEntry(deobfFieldEntry); |
| 193 | FieldReferenceTreeNode rootNode = new FieldReferenceTreeNode(this.deobfuscator.getTranslator(TranslationDirection.Deobfuscating), obfFieldEntry); | 193 | FieldReferenceTreeNode rootNode = new FieldReferenceTreeNode(this.deobfuscator.getTranslator(TranslationDirection.DEOBFUSCATING), obfFieldEntry); |
| 194 | rootNode.load(this.deobfuscator.getJarIndex(), true); | 194 | rootNode.load(this.deobfuscator.getJarIndex(), true); |
| 195 | return rootNode; | 195 | return rootNode; |
| 196 | } | 196 | } |
| 197 | 197 | ||
| 198 | public BehaviorReferenceTreeNode getMethodReferences(BehaviorEntry deobfBehaviorEntry) { | 198 | public MethodReferenceTreeNode getMethodReferences(MethodEntry deobfMethodEntry) { |
| 199 | BehaviorEntry obfBehaviorEntry = this.deobfuscator.obfuscateEntry(deobfBehaviorEntry); | 199 | MethodEntry obfMethodEntry = this.deobfuscator.obfuscateEntry(deobfMethodEntry); |
| 200 | BehaviorReferenceTreeNode rootNode = new BehaviorReferenceTreeNode(this.deobfuscator.getTranslator(TranslationDirection.Deobfuscating), obfBehaviorEntry); | 200 | MethodReferenceTreeNode rootNode = new MethodReferenceTreeNode(this.deobfuscator.getTranslator(TranslationDirection.DEOBFUSCATING), obfMethodEntry); |
| 201 | rootNode.load(this.deobfuscator.getJarIndex(), true); | 201 | rootNode.load(this.deobfuscator.getJarIndex(), true); |
| 202 | return rootNode; | 202 | return rootNode; |
| 203 | } | 203 | } |