Package org.freeplane.features.map.MapWriter

Examples of org.freeplane.features.map.MapWriter.Mode


  private boolean copyMap(final MapModel map, final String pDirectoryName) {
    boolean success = true;
    try {
      final BufferedWriter fileout = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(
          pDirectoryName + File.separator + "map" + UrlManager.FREEPLANE_FILE_EXTENSION)));
      final Mode mode = Mode.valueOf(getProperty("copymode", Mode.EXPORT.name()));
      Controller.getCurrentModeController().getMapController().getFilteredXml(map, fileout, mode, Mode.EXPORT.equals(mode));
    }
    catch (final IOException e) {
      success = false;
    }
View Full Code Here


    try {
      mTransformResultWithoutError = true;
      final boolean create_image = StringUtils.equals(getProperty("create_html_linked_image"), "true");
      final String areaCode = getAreaCode(create_image);
      final String xsltFileName = getProperty("xslt_file");
      final Mode mode = Mode.valueOf(getProperty("mode", Mode.EXPORT.name()));
      String[] parameters = getProperty("set_properties", "").split(",\\s*");
      boolean success = transformMapWithXslt(xsltFileName, saveFile, areaCode, mode, parameters);
      if (!success) {
        JOptionPane.showMessageDialog(UITools.getFrame(), getProperty("error_applying_template"), "Freeplane",
            JOptionPane.ERROR_MESSAGE);
View Full Code Here

TOP

Related Classes of org.freeplane.features.map.MapWriter.Mode

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.