Changeset 9271 in josm for trunk


Ignore:
Timestamp:
2016-01-02T23:59:54+01:00 (8 years ago)
Author:
simon04
Message:

Checkstyle fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/properties/TagEditHelper.java

    r9266 r9271  
    708708                // Create action for reusing the tag, with keyboard shortcut
    709709                /* POSSIBLE SHORTCUTS: 1,2,3,4,5,6,7,8,9,0=10 */
    710                 final Shortcut sc = count > 10 ? null : Shortcut.registerShortcut(
    711                         "properties:recent:" + count, tr("Choose recent tag {0}", count), KeyEvent.VK_0 + (count % 10), Shortcut.CTRL);
    712                 final JosmAction action = new JosmAction(tr("Choose recent tag {0}", count), null, tr("Use this tag again"), sc, false) {
     710                final Shortcut sc = count > 10 ? null : Shortcut.registerShortcut("properties:recent:" + count,
     711                        tr("Choose recent tag {0}", count), KeyEvent.VK_0 + (count % 10), Shortcut.CTRL);
     712                final JosmAction action = new JosmAction(
     713                        tr("Choose recent tag {0}", count), null, tr("Use this tag again"), sc, false) {
    713714                    @Override
    714715                    public void actionPerformed(ActionEvent e) {
     
    721722                };
    722723                /* POSSIBLE SHORTCUTS: 1,2,3,4,5,6,7,8,9,0=10 */
    723                 final Shortcut scShift = count > 10 ? null : Shortcut.registerShortcut(
    724                         "properties:recent:apply:" + count, tr("Apply recent tag {0}", count), KeyEvent.VK_0 + (count % 10), Shortcut.CTRL_SHIFT);
    725                 final JosmAction actionShift = new JosmAction(tr("Apply recent tag {0}", count), null, tr("Use this tag again"), scShift, false) {
     724                final Shortcut scShift = count > 10 ? null : Shortcut.registerShortcut("properties:recent:apply:" + count,
     725                         tr("Apply recent tag {0}", count), KeyEvent.VK_0 + (count % 10), Shortcut.CTRL_SHIFT);
     726                final JosmAction actionShift = new JosmAction(
     727                        tr("Apply recent tag {0}", count), null, tr("Use this tag again"), scShift, false) {
    726728                    @Override
    727729                    public void actionPerformed(ActionEvent e) {
Note: See TracChangeset for help on using the changeset viewer.