Beispiel #1
0
 public static void loadWarps(final File parent) throws IOException {
   try {
     final BufferedReader file =
         new BufferedReader(new FileReader(parent + File.separator + FILENAME));
     String nextLine;
     while ((nextLine = file.readLine()) != null) {
       WARPS.put(nextLine.split("\t")[0], new Warp(nextLine));
     }
     file.close();
   } catch (FileNotFoundException ex) {
   }
 }
Beispiel #2
0
 public static void removeWarp(final Warp warp) {
   WARPS.remove(warp.getName());
 }
Beispiel #3
0
 public static void addWarp(final Warp warp) {
   WARPS.put(warp.getName(), warp);
 }
Beispiel #4
0
 public static Warp matchWarp(final String partial) {
   return WARPS.matchKey(partial);
 }
Beispiel #5
0
 public static Warp getWarp(final String name) {
   return WARPS.get(name);
 }
Beispiel #6
0
 public static Collection<Warp> getWarps() {
   return WARPS.values();
 }
Beispiel #7
0
 public static void saveWarps(final File parent) throws IOException {
   WARPS.save(parent + File.separator + FILENAME);
 }
Beispiel #8
0
 public static int numWarps() {
   return WARPS.size();
 }