diff options
| author | 2014-08-06 22:18:12 -0400 | |
|---|---|---|
| committer | 2014-08-06 22:18:12 -0400 | |
| commit | 75d462daee9c24e19e28b4e969f92ae83a026e7b (patch) | |
| tree | 6fb4131f9484d13648e9f75133778fe3b745ef68 /src/cuchaz/enigma/gui/GuiController.java | |
| parent | added copyright (diff) | |
| download | enigma-fork-75d462daee9c24e19e28b4e969f92ae83a026e7b.tar.gz enigma-fork-75d462daee9c24e19e28b4e969f92ae83a026e7b.tar.xz enigma-fork-75d462daee9c24e19e28b4e969f92ae83a026e7b.zip | |
show deobfuscated names in class inheritance
Diffstat (limited to 'src/cuchaz/enigma/gui/GuiController.java')
| -rw-r--r-- | src/cuchaz/enigma/gui/GuiController.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/cuchaz/enigma/gui/GuiController.java b/src/cuchaz/enigma/gui/GuiController.java index 452632f..7d37feb 100644 --- a/src/cuchaz/enigma/gui/GuiController.java +++ b/src/cuchaz/enigma/gui/GuiController.java | |||
| @@ -31,6 +31,8 @@ import cuchaz.enigma.mapping.Entry; | |||
| 31 | import cuchaz.enigma.mapping.EntryPair; | 31 | import cuchaz.enigma.mapping.EntryPair; |
| 32 | import cuchaz.enigma.mapping.MappingsReader; | 32 | import cuchaz.enigma.mapping.MappingsReader; |
| 33 | import cuchaz.enigma.mapping.MappingsWriter; | 33 | import cuchaz.enigma.mapping.MappingsWriter; |
| 34 | import cuchaz.enigma.mapping.TranslationDirection; | ||
| 35 | import cuchaz.enigma.mapping.Translator; | ||
| 34 | 36 | ||
| 35 | public class GuiController | 37 | public class GuiController |
| 36 | { | 38 | { |
| @@ -132,8 +134,10 @@ public class GuiController | |||
| 132 | 134 | ||
| 133 | public ClassInheritanceTreeNode getClassInheritance( ClassEntry classEntry ) | 135 | public ClassInheritanceTreeNode getClassInheritance( ClassEntry classEntry ) |
| 134 | { | 136 | { |
| 137 | Translator deobfuscatingTranslator = m_deobfuscator.getTranslator( TranslationDirection.Deobfuscating ); | ||
| 138 | |||
| 135 | // create a node for this class | 139 | // create a node for this class |
| 136 | ClassInheritanceTreeNode thisNode = new ClassInheritanceTreeNode( classEntry.getName() ); | 140 | ClassInheritanceTreeNode thisNode = new ClassInheritanceTreeNode( deobfuscatingTranslator, classEntry.getName() ); |
| 137 | 141 | ||
| 138 | // expand all children recursively | 142 | // expand all children recursively |
| 139 | thisNode.load( m_deobfuscator.getAncestries(), true ); | 143 | thisNode.load( m_deobfuscator.getAncestries(), true ); |
| @@ -143,7 +147,7 @@ public class GuiController | |||
| 143 | for( String superclassName : m_deobfuscator.getAncestries().getAncestry( classEntry.getName() ) ) | 147 | for( String superclassName : m_deobfuscator.getAncestries().getAncestry( classEntry.getName() ) ) |
| 144 | { | 148 | { |
| 145 | // add the parent node | 149 | // add the parent node |
| 146 | ClassInheritanceTreeNode parentNode = new ClassInheritanceTreeNode( superclassName ); | 150 | ClassInheritanceTreeNode parentNode = new ClassInheritanceTreeNode( deobfuscatingTranslator, superclassName ); |
| 147 | parentNode.add( node ); | 151 | parentNode.add( node ); |
| 148 | node = parentNode; | 152 | node = parentNode; |
| 149 | } | 153 | } |