Exemple #1
0
  /**
   * Save the preferences at a given location
   *
   * @param path
   */
  public void saveToPath(String path) {
    // Get the xml string
    String xmlString = XMLUtility.toHardXML(xelem);

    // Save the file
    XMLUtility.XMLsave(path, xmlString);
  }
Exemple #2
0
  /** Save the preferences at the preset location */
  public void save() {
    // If the path is null
    if (path == null) {
      JEXStatics.logManager.log("Path not set for saving preferences", 0, this);
      return;
    }

    // Get the xml string
    String xmlString = XMLUtility.toHardXML(xelem);

    // Save the file
    XMLUtility.XMLsave(path, xmlString);
  }