Changeset 27921 in osm for applications/editors/josm/plugins/imagery-xml-bounds
- Timestamp:
- 2012-02-22T21:52:24+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/imagery-xml-bounds/src/org/openstreetmap/josm/plugins/imageryxmlbounds/actions/BoundsLayerSaveAction.java
r27013 r27921 16 16 package org.openstreetmap.josm.plugins.imageryxmlbounds.actions; 17 17 18 import static org.openstreetmap.josm.gui.help.HelpUtil.ht; 19 import static org.openstreetmap.josm.tools.I18n.tr; 20 18 21 import java.awt.event.ActionEvent; 19 22 import java.io.File; 20 23 21 import org.openstreetmap.josm.actions.SaveAction; 24 import org.openstreetmap.josm.actions.SaveActionBase; 22 25 import org.openstreetmap.josm.gui.layer.Layer; 23 26 import org.openstreetmap.josm.gui.layer.Layer.LayerSaveAction; … … 25 28 26 29 /** 27 * 30 * 28 31 * @author Don-vip 29 32 * … … 32 35 public class BoundsLayerSaveAction extends LayerSaveAction { 33 36 34 public static class SaveBoundsAction extends SaveAction { 35 37 public static class SaveBoundsAction extends SaveActionBase { 38 39 public SaveBoundsAction() { 40 super(tr("Save"), "save", tr("Save the current data."), null); 41 putValue("help", ht("/Action/Save")); 42 } 43 36 44 @Override public File getFile(Layer layer) { 37 45 File f = layer.getAssociatedFile(); … … 44 52 45 53 protected XmlBoundsLayer layer; 46 54 47 55 public BoundsLayerSaveAction(XmlBoundsLayer layer) { 48 56 super(layer); 49 57 } 50 58 51 public void actionPerformed(ActionEvent e) { 59 @Override 60 public void actionPerformed(ActionEvent e) { 52 61 new SaveBoundsAction().doSave(layer); 53 62 }
Note:
See TracChangeset
for help on using the changeset viewer.