Last change
on this file was 33921, checked in by donvip, 6 years ago |
update to JOSM 12643 + clean up messed code copied from various plugins
|
File size:
873 bytes
|
Line | |
---|
1 | /**
|
---|
2 | *
|
---|
3 | */
|
---|
4 | package org.openstreetmap.josm.plugins.sumoconvert;
|
---|
5 |
|
---|
6 | import static org.openstreetmap.josm.tools.I18n.tr;
|
---|
7 |
|
---|
8 | import java.awt.event.ActionEvent;
|
---|
9 | import java.awt.event.KeyEvent;
|
---|
10 |
|
---|
11 | import org.openstreetmap.josm.actions.JosmAction;
|
---|
12 | import org.openstreetmap.josm.gui.MainApplication;
|
---|
13 | import org.openstreetmap.josm.tools.Shortcut;
|
---|
14 |
|
---|
15 | /**
|
---|
16 | * @author ignacio_palermo
|
---|
17 | *
|
---|
18 | */
|
---|
19 | public class SumoExportAction extends JosmAction {
|
---|
20 |
|
---|
21 | public SumoExportAction(){
|
---|
22 | super(tr("OSM Export"), "images/dialogs/logo-sumo.png",
|
---|
23 | tr("Export traffic data to SUMO network file."),
|
---|
24 | Shortcut.registerShortcut("menu:sumoexport", tr("Menu: {0}", tr("SUMO Export")),
|
---|
25 | KeyEvent.VK_G, Shortcut.ALT_CTRL), false);
|
---|
26 | }
|
---|
27 |
|
---|
28 | @Override
|
---|
29 | public void actionPerformed(ActionEvent e) {
|
---|
30 | MainApplication.worker.execute(new ExportTask());
|
---|
31 | }
|
---|
32 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.