Changeset 25727 in osm for applications/editors
- Timestamp:
- 2011-03-26T08:29:44+01:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/relcontext/src/relcontext
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/relcontext/src/relcontext/RelContextDialog.java
r25717 r25727 517 517 super("…", null, tr("Enter role for selected members"), 518 518 Shortcut.registerShortcut("reltoolbox:changerole", tr("Relation Toolbox: {0}", tr("Enter role for selected members")), 519 KeyEvent.VK_R, Shortcut.GROUP_EDIT ), true);519 KeyEvent.VK_R, Shortcut.GROUP_EDIT, Shortcut.SHIFT_DEFAULT), true); 520 520 chosenRelation.addChosenRelationListener(this); 521 521 updateEnabledState(); -
applications/editors/josm/plugins/relcontext/src/relcontext/actions/CreateMultipolygonAction.java
r25721 r25727 6 6 import java.awt.event.ActionEvent; 7 7 import java.awt.event.ActionListener; 8 import java.awt.event.KeyEvent; 8 9 import java.util.*; 9 10 import javax.swing.*; … … 13 14 import org.openstreetmap.josm.data.osm.*; 14 15 import org.openstreetmap.josm.tools.GBC; 16 import org.openstreetmap.josm.tools.Shortcut; 15 17 import relcontext.ChosenRelation; 16 18 … … 27 29 28 30 public CreateMultipolygonAction( ChosenRelation chRel ) { 29 super("Multi", "data/multipolygon", tr("Create a multipolygon from selected objects"), null, false); 31 super("Multi", "data/multipolygon", tr("Create a multipolygon from selected objects"), 32 Shortcut.registerShortcut("reltoolbox:multipolygon", tr("Relation Toolbox: {0}", tr("Create multipolygon")), 33 KeyEvent.VK_B, Shortcut.GROUP_HOTKEY), true); 30 34 this.chRel = chRel; 31 35 updateEnabledState(); -
applications/editors/josm/plugins/relcontext/src/relcontext/actions/CreateRelationAction.java
r25695 r25727 8 8 import java.awt.event.ActionEvent; 9 9 import java.awt.event.ActionListener; 10 import java.awt.event.KeyEvent; 10 11 import java.util.Arrays; 11 12 import java.util.List; … … 22 23 import org.openstreetmap.josm.gui.tagging.ac.AutoCompletingComboBox; 23 24 import org.openstreetmap.josm.tools.GBC; 25 import org.openstreetmap.josm.tools.Shortcut; 24 26 import relcontext.ChosenRelation; 25 import relcontext.RelContextDialog;26 27 27 28 /** … … 36 37 37 38 public CreateRelationAction( ChosenRelation chRel ) { 38 super(tr("New"), "data/relation", tr("Create a relation from selected objects"), null, false); 39 super(tr("New"), "data/relation", tr("Create a relation from selected objects"), 40 Shortcut.registerShortcut("reltoolbox:create", tr("Relation Toolbox: {0}", tr("Create a new relation")), 41 KeyEvent.VK_C, Shortcut.GROUP_HOTKEY, Shortcut.SHIFT_DEFAULT), true); 39 42 this.chRel = chRel; 40 43 updateEnabledState(); -
applications/editors/josm/plugins/relcontext/src/relcontext/actions/FindRelationAction.java
r25717 r25727 29 29 super("Find", "relcontext/find", tr("Find a relation"), 30 30 Shortcut.registerShortcut("reltoolbox:find", tr("Relation Toolbox: {0}", tr("Find a relation")), 31 KeyEvent.VK_F, Shortcut.GROUP_ EDIT), true);31 KeyEvent.VK_F, Shortcut.GROUP_HOTKEY), true); 32 32 this.chRel = chRel; 33 33 }
Note:
See TracChangeset
for help on using the changeset viewer.