Ignore:
Timestamp:
2008-11-10T09:13:31+01:00 (16 years ago)
Author:
stoecker
Message:

added ShortCut support

Location:
applications/editors/josm/plugins/validator
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/validator/build.xml

    r11517 r11861  
    4242        <attribute name="Plugin-Description" value="A OSM data validator"/>
    4343        <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
     44        <attribute name="Plugin-Mainversion" value="1065"/>
    4445        <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    4546        <attribute name="Author" value="Francisco R. Santos"/>
  • applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/ValidateAction.java

    r11530 r11861  
    1414import org.openstreetmap.josm.data.osm.OsmPrimitive;
    1515import org.openstreetmap.josm.plugins.validator.util.AgregatePrimitivesVisitor;
     16import org.openstreetmap.josm.tools.ShortCut;
    1617
    1718/**
     
    3637     */
    3738    public ValidateAction(OSMValidatorPlugin plugin) {
    38         super(tr("Validation"), "validator", tr("Performs the data validation"), KeyEvent.VK_V, KeyEvent.CTRL_DOWN_MASK
    39                 + KeyEvent.ALT_MASK, true);
     39        super(tr("Validation"), "validator", tr("Performs the data validation"),
     40        ShortCut.registerShortCut("tools:validate", tr("Tool: {0}", tr("Validation")), KeyEvent.VK_V, ShortCut.GROUP_EDIT, ShortCut.SHIFT_DEFAULT), true);
    4041        this.plugin = plugin;
    4142    }
  • applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/ValidatorDialog.java

    r11530 r11861  
    3636import org.openstreetmap.josm.gui.dialogs.ToggleDialog;
    3737import org.openstreetmap.josm.tools.ImageProvider;
     38import org.openstreetmap.josm.tools.ShortCut;
    3839
    3940/**
     
    7071     */
    7172    public ValidatorDialog(OSMValidatorPlugin plugin) {
    72         super(tr("Validation errors"), "validator", tr("Open the validation window."), KeyEvent.VK_V, 150);
     73        super(tr("Validation errors"), "validator", tr("Open the validation window."),
     74        ShortCut.registerShortCut("subwindow:validator", tr("Toggle: {0}", tr("Validation errors")),
     75        KeyEvent.VK_V, ShortCut.GROUP_LAYER, ShortCut.SHIFT_DEFAULT), 150);
    7376
    7477        this.plugin = plugin;
Note: See TracChangeset for help on using the changeset viewer.