show swf bundles in tree

This commit is contained in:
Honfika
2014-01-21 20:55:14 +01:00
parent 254b91dd5d
commit 13722ba24c
29 changed files with 715 additions and 328 deletions
+14
View File
@@ -738,6 +738,20 @@ public class Helper {
}
}
/*
* Get the extension of a file.
*/
public static String getExtension(File f) {
String ext = null;
String s = f.getName();
int i = s.lastIndexOf('.');
if (i > 0 && i < s.length() - 1) {
ext = s.substring(i).toLowerCase();
}
return ext;
}
public static void appendTimeoutComment(GraphTextWriter writer, int timeout) {
writer.appendNoHilight("/*").newLine();
writer.appendNoHilight(" * ").appendNoHilight(AppStrings.translate("decompilationError")).newLine();