Changeset 1023 in josm for trunk/src/org/openstreetmap/josm/actions/SaveAsAction.java
- Timestamp:
- 2008-10-05T17:06:27+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/SaveAsAction.java
r693 r1023 9 9 10 10 import org.openstreetmap.josm.gui.layer.Layer; 11 import org.openstreetmap.josm.tools.ShortCut; 11 12 12 13 /** 13 14 * Export the data. 14 * 15 * 15 16 * @author imi 16 17 */ 17 18 public class SaveAsAction extends SaveActionBase { 18 19 19 20 /** 20 21 * Construct the action with "Save" as label. … … 22 23 */ 23 24 public SaveAsAction(Layer layer) { 24 super(tr("Save as ..."), "save_as", tr("Save the current data to a new file."), KeyEvent.VK_S, InputEvent.CTRL_DOWN_MASK | InputEvent.SHIFT_DOWN_MASK, layer); 25 super(tr("Save as ..."), "save_as", tr("Save the current data to a new file."), 26 ShortCut.registerShortCut("system:saveas", tr("File: Save as..."), KeyEvent.VK_S, ShortCut.GROUP_MENU), layer); 25 27 } 26 28 27 29 @Override protected File getFile(Layer layer) { 28 30 return openFileDialog(layer);
Note:
See TracChangeset
for help on using the changeset viewer.