Package org.openstreetmap.josm.actions

Examples of org.openstreetmap.josm.actions.SaveAction


        if (result == 1) {
          Boolean savefailed = false;
          for (final Layer l : map.mapView.getAllLayers()) {
            if (l instanceof OsmDataLayer
                && ((OsmDataLayer) l).isModified()) {
              SaveAction save = new SaveAction(l);
              if (!save.doSave())
                savefailed = true;
            }
          }
          return savefailed;
        } else if (result != 2) // Cancel exiting unless the 2nd button
View Full Code Here


    }
    return new Component[] {
        new JMenuItem(new LayerListDialog.ShowHideLayerAction(this)),
        new JMenuItem(new LayerListDialog.DeleteLayerAction(this)),
        new JSeparator(),
        new JMenuItem(new SaveAction(this)),
        new JMenuItem(new SaveAsAction(this)),
        new JMenuItem(new GpxExportAction(this)),
        new JMenuItem(new ConvertToGpxLayerAction()),
        new JSeparator(),
        new JMenuItem(new RenameLayerAction(getAssociatedFile(), this)),
View Full Code Here

TOP

Related Classes of org.openstreetmap.josm.actions.SaveAction

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.