source: josm/src/org/openstreetmap/josm/actions/SaveAsAction.java@ 295

Last change on this file since 295 was 295, checked in by imi, 17 years ago
  • added "download to new layer" option
  • added missing color preferences when opening preferences dialog
File size: 777 bytes
Line 
1package org.openstreetmap.josm.actions;
2
3import static org.openstreetmap.josm.tools.I18n.tr;
4
5import java.awt.event.InputEvent;
6import java.awt.event.KeyEvent;
7import java.io.File;
8
9import org.openstreetmap.josm.gui.layer.OsmDataLayer;
10
11/**
12 * Export the data as OSM intern xml file.
13 *
14 * @author imi
15 */
16public class SaveAsAction extends SaveActionBase {
17
18 /**
19 * Construct the action with "Save" as label.
20 * @param layer Save this layer.
21 */
22 public SaveAsAction(OsmDataLayer layer) {
23 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);
24 }
25
26 @Override protected File getFile(OsmDataLayer layer) {
27 return openFileDialog();
28 }
29}
Note: See TracBrowser for help on using the repository browser.