|
Last change
on this file since 402 was 298, checked in by imi, 18 years ago |
- added license description to head of each source file
|
|
File size:
839 bytes
|
| Line | |
|---|
| 1 | // License: GPL. Copyright 2007 by Immanuel Scholz and others
|
|---|
| 2 | package org.openstreetmap.josm.actions;
|
|---|
| 3 |
|
|---|
| 4 | import static org.openstreetmap.josm.tools.I18n.tr;
|
|---|
| 5 |
|
|---|
| 6 | import java.awt.event.InputEvent;
|
|---|
| 7 | import java.awt.event.KeyEvent;
|
|---|
| 8 | import java.io.File;
|
|---|
| 9 |
|
|---|
| 10 | import org.openstreetmap.josm.gui.layer.OsmDataLayer;
|
|---|
| 11 |
|
|---|
| 12 | /**
|
|---|
| 13 | * Export the data as OSM intern xml file.
|
|---|
| 14 | *
|
|---|
| 15 | * @author imi
|
|---|
| 16 | */
|
|---|
| 17 | public class SaveAsAction extends SaveActionBase {
|
|---|
| 18 |
|
|---|
| 19 | /**
|
|---|
| 20 | * Construct the action with "Save" as label.
|
|---|
| 21 | * @param layer Save this layer.
|
|---|
| 22 | */
|
|---|
| 23 | public SaveAsAction(OsmDataLayer 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 | }
|
|---|
| 26 |
|
|---|
| 27 | @Override protected File getFile(OsmDataLayer layer) {
|
|---|
| 28 | return openFileDialog();
|
|---|
| 29 | }
|
|---|
| 30 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.