From: Svjatoslav Agejenko Date: Tue, 4 Jun 2013 11:07:21 +0000 (+0300) Subject: added audio file associations X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=commitdiff_plain;h=0fc204871827cdb8efa10d8e515c52a493752c97;p=instantlauncher.git added audio file associations --- diff --git a/src/main/java/eu/svjatoslav/instantlauncher/FileAssociationManager.java b/src/main/java/eu/svjatoslav/instantlauncher/FileAssociationManager.java index df40676..bb08388 100755 --- a/src/main/java/eu/svjatoslav/instantlauncher/FileAssociationManager.java +++ b/src/main/java/eu/svjatoslav/instantlauncher/FileAssociationManager.java @@ -16,6 +16,8 @@ public class FileAssociationManager { private static final String FILE_INDICATOR = ""; + private static final String MUSIC_PLAYER = "clementine"; + public static HashMap extensionToApplication = new HashMap(); public static boolean openFile(final File file) { @@ -76,6 +78,11 @@ public class FileAssociationManager { 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 });