Package de.yaams.extensions.basemap.tiled.mapeditor.util

Examples of de.yaams.extensions.basemap.tiled.mapeditor.util.ConfirmingFileChooser.showSaveDialog()


    }

    // Make sure the "All Files" filter is selected by default
    chooser.setFileFilter(defaultFilter);

    if (chooser.showSaveDialog(appFrame) == JFileChooser.APPROVE_OPTION) {
      saveMapImage(chooser.getSelectedFile().getAbsolutePath());
    }
  }

  /**
 
View Full Code Here


    MapHelper.addExtension(chooser);

    chooser.setFileFilter(byExtensionFilter);

    int result = chooser.showSaveDialog(editor.getAppFrame());
    if (result == JFileChooser.APPROVE_OPTION) {
      savingCancelled = false;
      TiledFileFilter saver = (TiledFileFilter) chooser.getFileFilter();
      saveFile(saver, chooser.getSelectedFile());
    } else {
View Full Code Here

      }
    } else if (command.equals(SAVE_AS_BUTTON)) {
      JFileChooser ch = new ConfirmingFileChooser(map.getFilename());
      MapHelper.addExtension(ch);

      int ret = ch.showSaveDialog(this);
      if (ret == JFileChooser.APPROVE_OPTION) {
        String filename = ch.getSelectedFile().getAbsolutePath();
        try {
          MapHelper.saveTileset(set, filename);
          set.setSource(filename);
View Full Code Here

  }

  private void doExport() {
    JFileChooser chooser = new ConfirmingFileChooser(null);
    chooser.addChoosableFileFilter(xmlFileFilter);
    int result = chooser.showSaveDialog(this);

    if (result == JFileChooser.APPROVE_OPTION) {
      File configFile = chooser.getSelectedFile();

      try {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.