Changeset 1023 in josm for trunk/src/org/openstreetmap/josm/actions/SaveAction.java
- Timestamp:
- 05.10.2008 17:06:27 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/SaveAction.java
r693 r1023 11 11 import org.openstreetmap.josm.gui.layer.GpxLayer; 12 12 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 13 import org.openstreetmap.josm.tools.ShortCut; 13 14 14 15 /** 15 16 * Export the data as an OSM xml file. 16 * 17 * 17 18 * @author imi 18 19 */ 19 20 public class SaveAction extends SaveActionBase { 20 21 21 22 /** 22 23 * Construct the action with "Save" as label. … … 24 25 */ 25 26 public SaveAction(Layer layer) { 26 super(tr("Save"), "save", tr("Save the current data."), KeyEvent.VK_S, InputEvent.CTRL_DOWN_MASK, layer); 27 super(tr("Save"), "save", tr("Save the current data."), 28 ShortCut.registerShortCut("system:save", tr("File: Save"), KeyEvent.VK_S, ShortCut.GROUP_MENU), layer); 27 29 } 28 30 29 31 @Override public File getFile(Layer layer) { 30 32 if (layer instanceof OsmDataLayer) {
Note: See TracChangeset
for help on using the changeset viewer.
