diff options
| author | 2019-01-30 21:05:32 +0200 | |
|---|---|---|
| committer | 2019-01-30 21:05:32 +0200 | |
| commit | ba7a354efae7d49833c887cf147ac940c975a1fa (patch) | |
| tree | 02e14fda81dd5984e24f2df392c57c6e829fc875 /src/main/java/cuchaz/enigma/gui/node | |
| parent | Rewrite the Jenkinsfile to use the new declarative pipeline syntax, lets hope... (diff) | |
| download | enigma-fork-ba7a354efae7d49833c887cf147ac940c975a1fa.tar.gz enigma-fork-ba7a354efae7d49833c887cf147ac940c975a1fa.tar.xz enigma-fork-ba7a354efae7d49833c887cf147ac940c975a1fa.zip | |
Remap sources (#106)
* Source remapping beginnings
* Fix navigation to remapped classes
* Translate identifier info reference
* Remap local variables with default names in source
* Caching translator
* Fix lack of highlighting for first opened class
* Fix unicode variable names
* Unicode checker shouldn't be checking just alphanumeric
* Fix package tree being built from obf names
* Don't index `this` as method call for method::reference
* Apply proposed names
* Fix source export issues
* Replace unicode var names at bytecode level uniquely
* Drop imports from editor source
* Class selector fixes
* Delta keep track of base mappings to enable lookup of old names
* Optimize source remapping by remapping source with a StringBuffer instead of copying
* Bump version
Diffstat (limited to 'src/main/java/cuchaz/enigma/gui/node')
| -rw-r--r-- | src/main/java/cuchaz/enigma/gui/node/ClassSelectorClassNode.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/java/cuchaz/enigma/gui/node/ClassSelectorClassNode.java b/src/main/java/cuchaz/enigma/gui/node/ClassSelectorClassNode.java index bf6b178..922f8f2 100644 --- a/src/main/java/cuchaz/enigma/gui/node/ClassSelectorClassNode.java +++ b/src/main/java/cuchaz/enigma/gui/node/ClassSelectorClassNode.java | |||
| @@ -17,13 +17,19 @@ import javax.swing.tree.DefaultMutableTreeNode; | |||
| 17 | 17 | ||
| 18 | public class ClassSelectorClassNode extends DefaultMutableTreeNode { | 18 | public class ClassSelectorClassNode extends DefaultMutableTreeNode { |
| 19 | 19 | ||
| 20 | private final ClassEntry obfEntry; | ||
| 20 | private ClassEntry classEntry; | 21 | private ClassEntry classEntry; |
| 21 | 22 | ||
| 22 | public ClassSelectorClassNode(ClassEntry classEntry) { | 23 | public ClassSelectorClassNode(ClassEntry obfEntry, ClassEntry classEntry) { |
| 24 | this.obfEntry = obfEntry; | ||
| 23 | this.classEntry = classEntry; | 25 | this.classEntry = classEntry; |
| 24 | this.setUserObject(classEntry); | 26 | this.setUserObject(classEntry); |
| 25 | } | 27 | } |
| 26 | 28 | ||
| 29 | public ClassEntry getObfEntry() { | ||
| 30 | return obfEntry; | ||
| 31 | } | ||
| 32 | |||
| 27 | public ClassEntry getClassEntry() { | 33 | public ClassEntry getClassEntry() { |
| 28 | return this.classEntry; | 34 | return this.classEntry; |
| 29 | } | 35 | } |