source: subversion/applications/editors/josm/plugins/buildings_tools/src/org/openstreetmap/josm/plugins/buildings_tools/BuildingSizeAction.java

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

rename package

File size: 897 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.plugins.buildings_tools;
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
12public class BuildingSizeAction extends JosmAction {
13
14    public BuildingSizeAction() {
15        super(tr("Set buildings size"), "mapmode/building", tr("Set buildings size"),
16                Shortcut.registerShortcut("edit:buildingsdialog", tr("Edit: {0}", tr("Set buildings size")),
17                KeyEvent.VK_B, Shortcut.ALT_CTRL),
18                true);
19    }
20
21    @Override
22    public void actionPerformed(ActionEvent arg0) {
23        BuildingSizeDialog dlg = new BuildingSizeDialog();
24        if (dlg.getValue() == 1) {
25            dlg.saveSettings();
26        }
27    }
28}
Note: See TracBrowser for help on using the repository browser.