2 * Instantlauncher. Copyright ©2012-2019, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of version 3 of the GNU Lesser General Public License
6 * or later as published by the Free Software Foundation.
9 package eu.svjatoslav.instantlauncher.configuration;
14 public class Configuration {
15 public Set<FileAssociation> fileAssociations;
16 public String navigationRootPath;
17 public String directoryOpenCommand;
18 public String directoryTerminalOpenCommand;
20 public FileAssociation findFileAssociation(File file) {
21 for (FileAssociation association : fileAssociations)
22 if (association.matchesFile(file)) return association;
27 public File getNavigationRootDirectory() {
28 return new File(navigationRootPath);