private static final String FILE_INDICATOR = "<FILE>";
+ private static final String MUSIC_PLAYER = "clementine";
+
public static HashMap<String, String[]> extensionToApplication = new HashMap<String, String[]>();
public static boolean openFile(final File file) {
extensionToApplication.put("flv", new String[] { "vlc", FILE_INDICATOR });
extensionToApplication.put("wmv", new String[] { "vlc", FILE_INDICATOR });
+ extensionToApplication.put("flac", new String[] { MUSIC_PLAYER, FILE_INDICATOR });
+ extensionToApplication.put("mp3", new String[] { MUSIC_PLAYER, FILE_INDICATOR });
+ extensionToApplication.put("ogg", new String[] { MUSIC_PLAYER, FILE_INDICATOR });
+ extensionToApplication.put("wav", new String[] { MUSIC_PLAYER, FILE_INDICATOR });
+
extensionToApplication.put("ods", new String[] { SPREADSHEET_EDITOR, FILE_INDICATOR });
extensionToApplication.put("xls", new String[] { SPREADSHEET_EDITOR, FILE_INDICATOR });
extensionToApplication.put("xlsx", new String[] { SPREADSHEET_EDITOR, FILE_INDICATOR });