source: subversion/applications/editors/josm/plugins/pdfimport/src/org/openstreetmap/josm/plugins/pdfimport/PdfImportAction.java

Last change on this file was 34609, checked in by donvip, 8 months ago

name package

File size: 1.1 KB
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.plugins.pdfimport;
3
4import static org.openstreetmap.josm.tools.I18n.tr;
5
6import java.awt.event.ActionEvent;
7import java.awt.event.KeyEvent;
8
9import org.openstreetmap.josm.actions.JosmAction;
10import org.openstreetmap.josm.tools.Shortcut;
11
12/**
13 * Loads a PDF file into a new layer.
14 *
15 */
16public class PdfImportAction extends JosmAction {
17
18    public PdfImportAction() {
19        super(tr("Import PDF file"), "pdf_import",
20            tr("Import PDF file."),
21            Shortcut.registerShortcut("tools:pdfimport", tr("Tool: {0}", tr("Import PDF file")),
22            KeyEvent.VK_F, Shortcut.ALT_CTRL_SHIFT), true);
23    }
24
25    /**
26     * The action button has been clicked
27     *
28     * @param e
29     *            Action Event
30     */
31    @Override
32    public void actionPerformed(ActionEvent e) {
33
34        //show dialog asking to select coordinate axes and input coordinates and projection.
35        /*
36         * TODO: make dialog reusable
37         */
38        LoadPdfDialog dialog = new LoadPdfDialog();
39        dialog.setTitle(tr("Import PDF"));
40    }
41}
Note: See TracBrowser for help on using the repository browser.