Ignore:
Timestamp:
2020-10-19T08:36:46+02:00 (4 years ago)
Author:
Zverikk
Message:

[reltoolbox] no-shortcut for the reconstruct polygon action

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/ReconstructPolygonAction.java

    r34551 r35602  
    55
    66import java.awt.event.ActionEvent;
     7import java.awt.event.KeyEvent;
    78import java.util.ArrayList;
    89import java.util.Arrays;
     
    1415import java.util.Set;
    1516
    16 import javax.swing.AbstractAction;
    1717import javax.swing.JOptionPane;
    1818
     19import org.openstreetmap.josm.actions.JosmAction;
    1920import org.openstreetmap.josm.command.AddCommand;
    2021import org.openstreetmap.josm.command.ChangeCommand;
     
    3435import org.openstreetmap.josm.gui.MainApplication;
    3536import org.openstreetmap.josm.tools.ImageProvider;
     37import org.openstreetmap.josm.tools.Shortcut;
    3638
    3739import relcontext.ChosenRelation;
     
    4244 * @author Zverik
    4345 */
    44 public class ReconstructPolygonAction extends AbstractAction implements ChosenRelationListener {
     46public class ReconstructPolygonAction extends JosmAction implements ChosenRelationListener {
    4547    private ChosenRelation rel;
    4648
     
    4951
    5052    public ReconstructPolygonAction(ChosenRelation rel) {
    51         super(tr("Reconstruct polygon"));
    52         putValue(SMALL_ICON, ImageProvider.get("dialogs", "filter"));
    53         putValue(LONG_DESCRIPTION, "Reconstruct polygon from multipolygon relation");
     53        super(tr("Reconstruct polygon"), "dialogs/filter", tr("Reconstruct polygon from multipolygon relation"),
     54                Shortcut.registerShortcut("reltoolbox:reconstructpoly", tr("Relation Toolbox: {0}", tr("Reconstruct polygon from multipolygon relation")),
     55                        KeyEvent.CHAR_UNDEFINED, Shortcut.NONE), false);
    5456        this.rel = rel;
    5557        rel.addChosenRelationListener(this);
Note: See TracChangeset for help on using the changeset viewer.