示例#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();
 }