Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add file extensions to open and save dialogs #532

Merged
merged 11 commits into from
Apr 6, 2024

Conversation

Juuxel
Copy link
Member

@Juuxel Juuxel commented Oct 5, 2023

Demo

Some notes about the extension choices:

  • .txt for ProGuard comes from the ReTrace manual: "java -jar retrace.jar mapping.txt stacktrace.txt"
  • .txt for Recaf mappings comes from Recaf's test code
  • .mapping was chosen as the extension for single Enigma files too (see Discord)

ExtensionFileChooser was written to be a bit more general than this PR needs it to be so that it can be used for e.g. the open JAR dialog in the future.

Also fixes #533 by choosing Enigma directories as the default save format when closing.

@Juuxel Juuxel marked this pull request as draft October 5, 2023 09:52
@Juuxel Juuxel changed the title Add file extensions to Save As dialog Add file extensions to open and save dialogs Oct 5, 2023
@Juuxel Juuxel marked this pull request as ready for review October 5, 2023 10:30
@modmuss50 modmuss50 self-requested a review October 5, 2023 11:13
@modmuss50 modmuss50 merged commit 3030b64 into FabricMC:master Apr 6, 2024
4 checks passed
ix0rai added a commit to ix0rai/enigma that referenced this pull request Apr 16, 2024
ix0rai added a commit to QuiltMC/enigma that referenced this pull request Jun 3, 2024
* FabricMC/Enigma#532 - rai version

* fix ExtensionFileFilter for leading dot change

* checkstyle

* oro review + filter "open" dialogue

* start moving to plugin

* migration to read write service: begin!

* add namespace parameters to MappingSaveParameters, port most of command

* add non functional activeByDefault parameter to service types, move DecompilerService

* decompiler service active by default

* implement active by default

* cli tests passing!

* core tests passing!

* GUI compiles (does not work)

* default to enigma format for directories

* checkstyle

* fix test checkstyle, remove bad API methods

* add "tiny" extension for tiny format

* more docs

* add validation for plugin registration

* update gradle

* checkstyle

* address gradle deprecation

* update gradle again, update proguard

* fix gradle deprecations

* actions should pass again

* test plugin id validation

* test all types of plugin validation

* refactor test names

* IN MY DOCUMENTATION ERA

* fix some issues

* reintroduce EnigmaServiceType.create

* private tinyWriter constructor

* improve MappingFileNameFormat docs

* Update enigma/src/main/java/org/quiltmc/enigma/api/service/NameProposalService.java

Co-authored-by: Iota <47987888+IotaBread@users.noreply.github.com>

* Update enigma-cli/src/main/java/org/quiltmc/enigma/command/InvertMappingsCommand.java

Co-authored-by: Iota <47987888+IotaBread@users.noreply.github.com>

* Update enigma-cli/src/test/java/org/quiltmc/enigma/command/FillClassMappingsCommandTest.java

Co-authored-by: Iota <47987888+IotaBread@users.noreply.github.com>

* only create enigma instances once in commands

* Update enigma-cli/src/test/java/org/quiltmc/enigma/command/MapSpecializedMethodsCommandTest.java

Co-authored-by: Iota <47987888+IotaBread@users.noreply.github.com>

* use WalkFileTree

* superfluous variable in build.gradle

* new default namespaces

* reimplement format detection test (no longer automatic :( )

* checkstyle and NPE fix

* test format not found

* remove pointless method

---------

Co-authored-by: Iota <47987888+IotaBread@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enigma crashes when saving for the first time from the unsaved changes dialog
3 participants