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

Last change on this file since 1879 was 1879, checked in by Gubaer, 15 years ago

towards a fix for #3142: JOSM applet class no longer functional

  • Property svn:eol-style set to native
File size: 917 bytes
Line 
1// License: GPL. Copyright 2007 by Immanuel Scholz and others
2package org.openstreetmap.josm.actions;
3
4import static org.openstreetmap.josm.tools.I18n.tr;
5
6import java.awt.event.KeyEvent;
7import java.io.File;
8
9import org.openstreetmap.josm.Main;
10import org.openstreetmap.josm.gui.layer.Layer;
11import org.openstreetmap.josm.tools.Shortcut;
12
13/**
14 * Export the data.
15 *
16 * @author imi
17 */
18public class SaveAsAction extends SaveActionBase {
19
20 /**
21 * Construct the action with "Save" as label.
22 * @param layer Save this layer.
23 */
24 public SaveAsAction() {
25 super(tr("Save As..."), "save_as", tr("Save the current data to a new file."),
26 Shortcut.registerShortcut("system:saveas", tr("File: {0}", tr("Save As...")), KeyEvent.VK_S, Shortcut.GROUP_MENU, Shortcut.SHIFT_DEFAULT));
27 }
28
29 @Override protected File getFile(Layer layer) {
30 return openFileDialog(layer);
31 }
32}
Note: See TracBrowser for help on using the repository browser.