Possibility to configure terminal emulator.
[instantlauncher.git] / src / main / java / eu / svjatoslav / instantlauncher / configuration / Configuration.java
1 package eu.svjatoslav.instantlauncher.configuration;
2
3 import java.io.File;
4 import java.util.Set;
5
6 public class Configuration {
7     public Set<FileAssociation> fileAssociations;
8     public String navigationRootPath;
9     public String directoryOpenCommand;
10     public String directoryTerminalOpenCommand;
11
12     public FileAssociation findFileAssociation(File file) {
13         for (FileAssociation association : fileAssociations)
14             if (association.matchesFile(file)) return association;
15
16         return null;
17     }
18
19     public File getNavigationRootDirectory() {
20         return new File(navigationRootPath);
21     }
22
23 }