Package sk.netmap.util

Examples of sk.netmap.util.PackUtill


    if (file != null) {

      SpringUtil.closeSingletones();

      PackUtill pack = new PackUtill();

      if (logger.isDebugEnabled()) {
        logger.debug("Loaded database: " + file);
        logger.debug("Path to temp database folder: " + Global.PATH_TO_DB);
      }

      pack.decompresToDir(file.getAbsolutePath(), Global.PATH_TO_DB);

      PreferencesConfig.userRoot().put(PreferencesConfig.KEY_LAST_DB_PATH, file.getAbsolutePath());
      PreferencesConfig.savePreferences();
      dynamicTree.fillTree();
      DataController.getInstance().fireDataChanged();
View Full Code Here


  }

  public void loadLastDatabase() {
    String file = Preferences.userRoot().get(
        PreferencesConfig.KEY_LAST_DB_PATH, "");
    PackUtill pack = new PackUtill();

    if (logger.isDebugEnabled()) {
      logger.debug("Auto load last database: " + file);
      logger.debug("Path to temp database folder: " + Global.PATH_TO_DB);
    }

    pack.decompresToDir(file, Global.PATH_TO_DB);
  }
View Full Code Here

    File file = choose.getSelectedFile();

    if (file != null) {
      SpringUtil.closeSingletones();

      PackUtill pack = new PackUtill();
      if (CommonUtill.getExtension(file).equals(Global.JNET_MAP_FILE_EXTENSION)){
        pack.compresFromDir(file.getAbsolutePath(), Global.PATH_TO_DB);
      } else {
        pack.compresFromDir(file.getAbsolutePath() + "."+Global.JNET_MAP_FILE_EXTENSION, Global.PATH_TO_DB);
      }
     
    }
  }
View Full Code Here

TOP

Related Classes of sk.netmap.util.PackUtill

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.