summaryrefslogtreecommitdiff
path: root/enigma-swing/src/main/java (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-08-27Update to Mapping-IO 0.6 (#547)Gravatar NebelNidas1-10/+20
* Update to Mapping-IO 0.6 * Make `legacy` suffix translatable * Only respect `use_mappingio=false` when Enigma has an alternative reader/writer
2024-04-06Add file extensions to open and save dialogs (#532)Gravatar Juuz4-22/+147
* Add file extensions to Save As dialog * Include leading dots in file extensions for simplicity * Add file extensions to open mappings dialogs * Remove unused tinyMappingsFileChooser * Use the same file chooser for all mapping IO * Fix NPE by using Enigma directories as the default mapping format Fixes #533. * Fix code style * Allow .mappings extension for single Enigma files * gradlew.bat --------- Co-authored-by: NebelNidas <nebelnidas@gmail.com>
2024-04-06Add Vineflower decompiler (#541)Gravatar NebelNidas3-2/+3
* Add Vineflower integration * Fix some confusing names * Rename method to reflect visitor pattern naming schemes * Remove dead null check
2024-03-28Clear undo history when updating editor text. (#540)Gravatar modmuss1-0/+6
We don't care about the undo/redo history of the syntax pane, any change history would be stored separately
2023-12-24Fix editor scaling (#536)Gravatar Julian Burner5-26/+49
2023-11-16Don't only write diffs when MIO writer was last usedGravatar NebelNidas1-0/+3
2023-11-16Fix importing mappings without field source descriptorsGravatar NebelNidas1-1/+1
2023-10-09Use System Property for Mapping-IOGravatar NebelNidas2-68/+22
2023-10-09Use `VisitableMappingTree` where possibleGravatar NebelNidas1-2/+3
2023-10-09Make Mapping-IO the defaultGravatar NebelNidas2-19/+19
2023-10-09Update to latest Mapping IO commitGravatar NebelNidas2-2/+7
2023-10-09Add progress listener to Mapping-IO conversion; deduplicate lang filesGravatar NebelNidas1-2/+14
2023-10-09Add Mapping-IO import support; small cleanupGravatar NebelNidas2-93/+87
2023-10-09Add initial Mapping-IO export supportGravatar NebelNidas2-0/+68
2023-09-25Search dialog improvements (#529)Gravatar YanisBft3-9/+46
* Improve search dialogs * fix checkstyle * change search class keystroke * better dialog title & don't calculate score if not needed
2023-09-25Fix documenting constructors (again) (#530)Gravatar Juuz1-3/+7
* Fix not being able to save javadoc on constructors * Fix existing javadoc not showing in the edit dialog on constructors The new logic was modelled after EnigmaDumper, which uses EntryMapping to access the comments. * Add comments about the fix
2023-09-25Add `Original name` field to identifier panel (#472)Gravatar Julian Burner1-1/+24
* Add `original name` field to identifier panel * Fix identifier panel entry order for methods --------- Co-authored-by: ByMartrixx <bymartrixx@gmail.com>
2023-08-30Fix renaming classes via their constructor (#520)Gravatar Julian Burner3-8/+20
* Fix `Reset to obfuscated` on constructors * Fix renaming classes via their constructor * Fix `Reset to obfuscated` not getting updated on constructors * Fix checkstyle * Remove unnecessary cast
2023-08-30Fix collapse all in deobf panel (#527)Gravatar YanisBft1-1/+6
2023-08-30Save if fullscreen in config (#528)Gravatar YanisBft2-0/+10
2023-07-12Update GuiController.java (#523)Gravatar nardpw1-1/+2
* Fix StatsGenerator encoding issue
2023-06-26Allow using ctrl-shift-4 to close all open tabs (#518)Gravatar Matei M1-0/+1
2023-06-24Fix double clicking an entry in the "implementations" window not navigating ↵Gravatar mudkip1-6/+11
to the respective class/method (#516) * fix double clicking an entry in the implementations window not navigating to the class/method * fix styling
2023-06-20Fix ghost entries caused by packages becoming empty (#517)Gravatar Julian Burner1-2/+2
* Fix ghost entries caused packages becoming empty * Fix checkstyle
2023-05-14fix npe in mapping stats when package name is null (#504)Gravatar mudkip1-2/+4
2023-05-10Fix crash in mappings stats. Closes #503Gravatar modmuss501-1/+3
2022-12-07Clear Javadoc when text is empty (#473)Gravatar Julian Burner1-2/+6
* Clear Javadoc when text is empty * Address PR feedback Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com> Co-authored-by: ByMartrixx <bymartrixx@gmail.com> Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com>
2022-12-07Make all identifier panel entries copyable (#476)Gravatar Julian Burner1-6/+6
2022-12-07Add `@value` Javadoc tag (#477)Gravatar Julian Burner1-1/+2
Co-authored-by: ByMartrixx <bymartrixx@gmail.com>
2022-12-07Allow pasting directly on renamable tokens (#478)Gravatar Julian Burner2-0/+21
Co-authored-by: ByMartrixx <bymartrixx@gmail.com>
2022-12-07Allow filtering of packages in Mapping Stats window (#481)Gravatar Julian Burner2-9/+57
Co-authored-by: Eli Orona <eliorona@live.com>
2022-12-07Provide fallback anti-aliasing for DEs the JRE doesn't recognize (#466)Gravatar Julian Burner1-1/+17
2022-09-14Add checkstyle (#460)Gravatar modmuss5078-1375/+1742
2022-09-12Nested packages in Swing UI (#458)Gravatar ramidzkh5-352/+209
* WIP nested packages * Fix deobfuscated panel package having obfuscated packages * Remove stream * Mass toggle classes obfuscation status from selector * Fix deobfuscated classes with the same name being hidden from class selectors * Open classes by pressing enter
2022-04-13Show the crash dialog when an off thread job fails.Gravatar modmuss501-0/+1
Before the exception would be lost to time in most cases.
2022-03-30Add readonly bytecode view. (#443)Gravatar modmuss501-1/+2
2021-09-20Update gradle and skip unnecessary swing updates (#431)Gravatar liach1-1/+26
update proguard to support java 17 Signed-off-by: liach <liach@users.noreply.github.com> Co-authored-by: liach <liach@users.noreply.github.com>
2021-09-16Improve record class detection (#428)Gravatar modmuss501-2/+4
Also generate a method mapping for the record entry, does not support the case of the method having a diffrent name from the field. If there is a component this is remapped via the field mapping.
2021-09-05Refactor and clean up Gui classGravatar Marco Rebhan19-609/+962
(cherry-picked from feature/customizable-ui branch) Clean up Gui constructor Separate out code from Gui class Separate out inheritance tree Separate out implementations tree Move click listener to separate method Make StructurePanel not extend JPanel Handle DeobfPanelPopupMenu in DeobfPanel Fix the deobf panel popup menu init failing Common code for implementations & inheritance tree Move call tree code to separate class Move methods from MouseListenerUtil to GuiUtil Move editor tab code to separate class Replace WindowAdapter with GuiUtil.onWindowClose Move showStructure to StructurePanel
2021-07-08Entry Changes (#364)Gravatar 2xsaiko7-107/+81
* Initial refactor: Allow EntryMapping to have null targetName, add EntryChange in favor of entry changing methods in GuiController * Fix resetting name not actually removing it, and renaming a class causing name collisions with itself Closes #246. * Use name proposer for setting default deobf name Closes #314 * Make network protocol use EntryChange directly * Handle writing other data correctly when the deobf name is null * b * Add some new abstraction stuff * Use pattern matching instanceof * Move classes out of newabstraction package * Make EntryChange final * Regenerate equals and hashCode * Convert EntryMapping to record * Make TristateChange final * Safety guard null accessModifier initialization
2021-07-08Add --single-class-tree argument that puts all classes into deobf panel & ↵Gravatar Daniel Chýlek4-7/+31
hides obf panel (#406) * Add --single-class-tree argument that puts all classes into deobf panel & hides obf panel Parchment uses a jar with already remapped classes, but Enigma puts them into panel with obf classes which sorts classes by length. This option puts all classes into the deobf panel, and completely hides the obf panel. * Address comments * Comment begone
2021-07-03Makes sure save mappings is completed before next action (#409)Gravatar liach3-6/+18
* Makes sure save mappings is completed before next action Fixes #407 Signed-off-by: liach <liach@users.noreply.github.com> * Fix the freeze Signed-off-by: liach <liach@users.noreply.github.com> Co-authored-by: liach <liach@users.noreply.github.com>
2021-06-29Expand All & Collapse All in deobf panel (#412)Gravatar YanisBft5-14/+27
* Expand All & Collapse All in deobf panel * fixed smth that was bothering me
2021-06-22Highlight tokens as 'proposed' when they're not editableGravatar Marco Rebhan3-32/+61
2021-06-21Allow disabling editing part of the mappingsGravatar Marco Rebhan6-47/+176
For now, this is done over CLI options, it cannot be changed through the GUI. The new CLI options are: -C, --no-edit-classes Disable editing class names -D, --no-edit-javadocs Disable editing Javadocs -E, --no-edit-all Disable editing everything -F, --no-edit-fields Disable editing field names -M, --no-edit-methods Disable editing method names -P, --no-edit-parameters Disable editing parameter names -c, --edit-classes Enable editing class names -d, --edit-javadocs Enable editing Javadocs -e, --edit-all Enable editing everything --edit-locals Enable editing local variable names -f, --edit-fields Enable editing field names -m, --edit-methods Enable editing method names --no-edit-locals Disable editing local variable names -p, --edit-parameters Enable editing parameter names They can be combined together and are applied in order of appearance in the argument list from left to right, and everything is editable by default, as before. For example, --no-edit-all --edit-javadocs --edit-parameters (or -Edp for short) will allow you to edit only Javadocs and parameter names. --(no-)edit-locals is only provided for completeness and has no effect right now because Enigma does not allow for editing locals other than parameters.
2021-06-19Use JFileChooser for all open/save opertations (#401)Gravatar modmuss502-20/+35
2021-06-15Structure panel options (#400)Gravatar YanisBft4-17/+73
* Structure panel options * changes * always show inner classes in the tree * workaround for toString() and similar * show constructor methods depending on the class obfuscation * use ListCellRenderer instead of toString * list cell renderer
2021-06-03Disable Show Calls actions on unrenamable entries (e.g. Java methods)Gravatar Marco Rebhan1-2/+2
Closes #396.
2021-05-23Cleanup with Java 16 (#394)Gravatar YanisBft12-97/+57
* Cleanup using Java 16 * use Stream.toList()
2021-05-22Update to Java 16 (#390)Gravatar modmuss502-2/+2
* Java 16 * Cleanup * Set CFR as the default decompiler, it seems to handle j16 stuff better * Update build.gradle Co-authored-by: YanisBft <doublecraft.official@gmail.com> * Update proguard, disable broken tests Co-authored-by: YanisBft <doublecraft.official@gmail.com>