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

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

rename package

  • Property svn:eol-style set to native
File size: 905 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 BuildingRectangleAction extends JosmAction {
13
14    public BuildingRectangleAction() {
15        super(tr("Set building shape to rectangle"), "mapmode/rectangular", tr("Set building shape to rectangle"),
16                Shortcut.registerShortcut("buildings_tools:rectangle",
17                        tr("Data: {0}", tr("Set buildings shape to rectangle")),
18                        KeyEvent.VK_R, Shortcut.ALT),
19                true);
20    }
21
22    @Override
23    public void actionPerformed(ActionEvent e) {
24        ToolSettings.saveShape(ToolSettings.Shape.RECTANGLE);
25    }
26}
Note: See TracBrowser for help on using the repository browser.