Skip to content

Commit efd92aa

Browse files
committed
#82 Show file extension in the tooltip; code style
1 parent 6eefb38 commit efd92aa

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

decima-ui/src/main/java/com/shade/decima/ui/controls/FileExtensionFilter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public final class FileExtensionFilter extends FileFilter {
2424
* <li>On Windows, the extension is {@code dll}</li>
2525
* </ul>
2626
*/
27+
@NotNull
2728
public static FileExtensionFilter ofNativeLibrary(@NotNull String description) {
2829
if (SystemInfo.isMacOS) {
2930
return new FileExtensionFilter(description, "dylib");

decima-ui/src/main/java/com/shade/decima/ui/dialogs/ProjectEditDialog.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ protected JComponent createContentsPane() {
149149
final FileExtensionFilter filter = FileExtensionFilter.ofNativeLibrary("Oodle Library");
150150

151151
final JLabel label = new JLabel("Oodle library:");
152-
label.setToolTipText("<html>Path to the Oodle library used for compressing/decompressing game data.<br>For most games, it's a file in the game's root folder called <kbd>oo2core_XXX" + "</kbd>.</html>");
152+
label.setToolTipText("<html>Path to the Oodle library used for compressing/decompressing game data.<br>For most games, it's a file in the game's root folder called <kbd>oo2core_XXX." + filter.getExtension() + "</kbd>.</html>");
153153

154154
panel.add(label, "gap ind");
155155
panel.add(compressorPath, "wrap");

0 commit comments

Comments
 (0)