From ddd31b58d7e689d64cd9a5e7da2c0779560b5658 Mon Sep 17 00:00:00 2001 From: Konloch Date: Fri, 27 Sep 2024 01:34:28 -0600 Subject: [PATCH] Code Style Cleanup --- .../club/bytecodeviewer/resources/ResourceType.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/resources/ResourceType.java b/src/main/java/the/bytecode/club/bytecodeviewer/resources/ResourceType.java index 700f2e05..89918667 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/resources/ResourceType.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/resources/ResourceType.java @@ -33,7 +33,18 @@ public enum ResourceType // TODO add the files icons for the missing files from the.bytecode.club.bytecodeviewer.util.SyntaxLanguage // or from org.fife.ui.rsyntaxtextarea.FileTypeUtil or from org.fife.ui.rsyntaxtextarea.SyntaxConstants - CLASS_FILE(IconResources.classIcon, "class"), JAVA_ARCHIVE(IconResources.jarIcon, "jar", "war", "ear"), ZIP_ARCHIVE(IconResources.zipIcon, "zip"), ANDROID_ARCHIVE(IconResources.androidIcon, "apk", "wapk", "dex", "xapk"), IMAGE_FILE(IconResources.imageIcon, "png", "jpg", "jpeg", "bmp", "wbmp", "gif", "tif", "webp"), CONFIG_TEXT_FILE(IconResources.configIcon, "properties", "xml", "jsp", "mf", "config", "csv", "yml", "yaml", "ini", "json", "sql", "gradle", "dockerfile", "htaccess", "plugin", "attachprovider", "transportservice", "connector"), JAVA_FILE(IconResources.javaIcon, "java"), TEXT_FILE(IconResources.textIcon, "txt", "md", "log", "html", "css"), CPP_FILE(IconResources.cplusplusIcon, "c", "cpp", "h"), CSHARP_FILE(IconResources.csharpIcon, "cs"), BAT_FILE(IconResources.batIcon, "bat", "batch"), SH_FILE(IconResources.shIcon, "sh", "bash"), + CLASS_FILE(IconResources.classIcon, "class"), + JAVA_ARCHIVE(IconResources.jarIcon, "jar", "war", "ear"), + ZIP_ARCHIVE(IconResources.zipIcon, "zip"), + ANDROID_ARCHIVE(IconResources.androidIcon, "apk", "wapk", "dex", "xapk"), + IMAGE_FILE(IconResources.imageIcon, "png", "jpg", "jpeg", "bmp", "wbmp", "gif", "tif", "webp"), + CONFIG_TEXT_FILE(IconResources.configIcon, "properties", "xml", "jsp", "mf", "config", "csv", "yml", "yaml", "ini", "json", "sql", "gradle", "dockerfile", "htaccess", "plugin", "attachprovider", "transportservice", "connector"), + JAVA_FILE(IconResources.javaIcon, "java"), + TEXT_FILE(IconResources.textIcon, "txt", "md", "log", "html", "css"), + CPP_FILE(IconResources.cplusplusIcon, "c", "cpp", "h"), + CSHARP_FILE(IconResources.csharpIcon, "cs"), + BAT_FILE(IconResources.batIcon, "bat", "batch"), + SH_FILE(IconResources.shIcon, "sh", "bash"), ; public static final Map extensionMap = new HashMap<>();