summaryrefslogtreecommitdiff
path: root/enigma-swing/src/main/java (unfollow)
Commit message (Collapse)AuthorFilesLines
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>
2021-04-29Fix scroll speed being dependent on the line count in the file.Gravatar Marco Rebhan1-0/+4
Closes #383.
2021-04-07Update translationsGravatar Yanis481-1/+0
2021-04-07New ways to searchGravatar Yanis482-31/+93
2021-04-07Allow only one selected entry in treesGravatar Yanis483-4/+17
Didn't cause any issue, but who knows
2021-04-06Fix visual inconsistencies after changing theme settings.Gravatar Marco Rebhan4-18/+27
Closes #376.
2021-04-06Fix progress bar being very tall.Gravatar Marco Rebhan1-11/+28
Closes #366.
2021-04-06Make progress dialog thread-safe.Gravatar Marco Rebhan1-26/+28
Closes #377.
2021-04-03Fix warning/error formatting in editorGravatar Yanis481-0/+2
2021-04-02Copy method/field descriptor on clickGravatar Yanis482-2/+40
2021-03-30Show scrollbar buttons when using FlatLaf.Gravatar Marco Rebhan1-0/+1
Closes #370.
2021-03-30Set null javadoc instead of empty/blank string when clearing the text in the ↵Gravatar Marco Rebhan1-1/+1
javadoc editor. Closes #369.
2021-03-30Fix text field always selecting everything when using FlatLaf.Gravatar Marco Rebhan1-0/+3
Closes #365.
2021-03-30Fix method nameGravatar Marco Rebhan1-2/+2
2021-03-25Fix using runtime changed configuration for parts of the UI that don't ↵Gravatar Marco Rebhan9-35/+64
support it yet Closes #346.
2021-03-20Fix missing icon checkGravatar Juuxel1-1/+1
2021-03-20Add a check for missing SVG icon filesGravatar Juuxel1-1/+9
Improves debugging if the icon is missing as FlatLaf's own error is thrown at render time.
2021-03-20Switch to SVG icons instead of PNGs and add icon for recordsGravatar Juuxel2-13/+8
The PNG icons scaled horribly on FlatLaf but these ones look smooth on any scaling level. Note: even though the icons are FlatSVGIcons from FlatLaf, they work properly on all LaFs if the FlatLaf UI scale property is set to the correct value (which LookAndFeel.setGlobalLAF does).
2021-03-19WIP full record supportGravatar modmuss501-1/+9
2021-03-18Switch to FlatDarkLaf instead of FlatDarculaLafGravatar Juuxel1-2/+2
Same colours, but the focus borders are nicer.
2021-03-18Don't use custom editor fonts when they aren't enabledGravatar Juuxel3-3/+20
2021-03-18Use FlatLaf's own DPI scaling instead of swing-dpiGravatar Juuxel2-8/+24
2021-03-17Icons everywhereGravatar Yanis488-19/+131
2021-03-16Remove unused LookAndFeel display name field and getterGravatar Juuxel1-14/+5
2021-03-16Disable FlatLaf's custom HiDPI scalingGravatar Juuxel1-0/+4
2021-03-15Make the javadoc dialog use the editor font as it is an editorGravatar Juuxel1-0/+2
2021-03-15Migrate to FlatLafGravatar Juuxel1-3/+8
Fixes #355. - Replaces the Darcula look and feel with FlatLaf Darcula, which does not have the same rendering bugs with CJK characters (at least on Windows 10). - Replaces Metal with FlatLaf Light as the default look and feel. Metal is provided as a new, separate theme option.
2021-03-06easier fix and document UiConfig.getLayout()Gravatar Yanis482-3/+14
2021-03-06Fix right panel width being reset on ui updateGravatar Yanis481-0/+4
2021-01-23Fix the structure panel not updating if switching to an existing tabGravatar Juuxel1-2/+1
2021-01-23Fixed Javadoc not updating in certain cases (close/open mappings)Gravatar 2xsaiko2-4/+4
Closes #210.
2021-01-23Fixes open declaration not opening declarationGravatar liach1-2/+2
Signed-off-by: liach <liach@users.noreply.github.com>