/**
  * ********************************************************************************* METHODS
  * ********************************************************************************
  */
 public static void convertAnnotations(MapModel map) throws IOException {
   if (map == null) {
     throw new IllegalArgumentException("NULL");
   }
   DocearFileBackupController.createBackupForConversion(map);
   synchronized (currentHandler) {
     currentHandler.convert(map);
     LogUtils.info("converted annotations for " + map.getTitle() + " - " + map.getFile());
   }
 }
示例#2
0
 private void updateList(final MapModel map, final String restoreString) {
   // ignore documentation maps loaded using documentation actions
   if (map.containsExtension(DocuMapAttribute.class)) return;
   if (restoreString != null) {
     if (lastOpenedList.contains(restoreString)) {
       lastOpenedList.remove(restoreString);
     }
     lastOpenedList.add(0, restoreString);
     mRestorableToMapName.put(restoreString, map.getTitle());
   }
   updateMenus();
 }