source: subversion/applications/editors/josm/plugins/sumoconvert/src/org/openstreetmap/josm/plugins/sumoconvert/SumoExportAction.java

Last change on this file was 33921, checked in by donvip, 17 months ago

update to JOSM 12643 + clean up messed code copied from various plugins

File size: 873 bytes
Line 
1/**
2 *
3 */
4package org.openstreetmap.josm.plugins.sumoconvert;
5
6import static org.openstreetmap.josm.tools.I18n.tr;
7
8import java.awt.event.ActionEvent;
9import java.awt.event.KeyEvent;
10
11import org.openstreetmap.josm.actions.JosmAction;
12import org.openstreetmap.josm.gui.MainApplication;
13import org.openstreetmap.josm.tools.Shortcut;
14
15/**
16 * @author ignacio_palermo
17 *
18 */
19public 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.