Пример #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) {
   }
 }
Пример #2
0
 public static void removeWarp(final Warp warp) {
   WARPS.remove(warp.getName());
 }
Пример #3
0
 public static void addWarp(final Warp warp) {
   WARPS.put(warp.getName(), warp);
 }
Пример #4
0
 public static Warp matchWarp(final String partial) {
   return WARPS.matchKey(partial);
 }
Пример #5
0
 public static Warp getWarp(final String name) {
   return WARPS.get(name);
 }
Пример #6
0
 public static Collection<Warp> getWarps() {
   return WARPS.values();
 }
Пример #7
0
 public static void saveWarps(final File parent) throws IOException {
   WARPS.save(parent + File.separator + FILENAME);
 }
Пример #8
0
 public static int numWarps() {
   return WARPS.size();
 }