-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix all those issues I just made (#196)
* move to serializedNameConvention annotation instead of individual names * make class tree stat icons configurable * fix #194 * checkstyle
- Loading branch information
Showing
13 changed files
with
75 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 5 additions & 4 deletions
9
enigma-swing/src/main/java/org/quiltmc/enigma/gui/config/DevSection.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
enigma-swing/src/main/java/org/quiltmc/enigma/gui/config/FeaturesSection.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package org.quiltmc.enigma.gui.config; | ||
|
||
import org.quiltmc.config.api.ReflectiveConfig; | ||
import org.quiltmc.config.api.annotations.Comment; | ||
import org.quiltmc.config.api.annotations.SerializedNameConvention; | ||
import org.quiltmc.config.api.metadata.NamingSchemes; | ||
import org.quiltmc.config.api.values.TrackedValue; | ||
|
||
@SerializedNameConvention(NamingSchemes.SNAKE_CASE) | ||
public class FeaturesSection extends ReflectiveConfig.Section { | ||
@Comment("Enables statistic icons in the class tree. This has a major performance impact on JAR files with lots of classes.") | ||
public final TrackedValue<Boolean> enableClassTreeStatIcons = this.value(true); | ||
} |
5 changes: 3 additions & 2 deletions
5
enigma-swing/src/main/java/org/quiltmc/enigma/gui/config/KeyBindConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 3 additions & 4 deletions
7
enigma-swing/src/main/java/org/quiltmc/enigma/gui/config/StatsSection.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
package org.quiltmc.enigma.gui.config; | ||
|
||
import org.quiltmc.config.api.ReflectiveConfig; | ||
import org.quiltmc.config.api.annotations.SerializedName; | ||
import org.quiltmc.config.api.annotations.SerializedNameConvention; | ||
import org.quiltmc.config.api.metadata.NamingSchemes; | ||
import org.quiltmc.config.api.values.TrackedValue; | ||
|
||
@SerializedNameConvention(NamingSchemes.SNAKE_CASE) | ||
public class StatsSection extends ReflectiveConfig.Section { | ||
@SerializedName("last_selected_dir") | ||
public final TrackedValue<String> lastSelectedDir = this.value(""); | ||
@SerializedName("last_top_level_package") | ||
public final TrackedValue<String> lastTopLevelPackage = this.value(""); | ||
@SerializedName("should_include_synthetic_parameters") | ||
public final TrackedValue<Boolean> shouldIncludeSyntheticParameters = this.value(false); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.