Ignore:
Timestamp:
2012-02-16T21:27:51+01:00 (13 years ago)
Author:
stoecker
Message:

fix deprecaction

Location:
applications/editors/josm/plugins/alignways/src/com/tilusnet/josm/plugins/alignways
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/alignways/src/com/tilusnet/josm/plugins/alignways/AlignWaysAction.java

    r27732 r27810  
    3333                        + "around a chosen pivot."),
    3434                                Shortcut.registerShortcut("tools:alignways", tr("Tool: {0}", tr("Align Ways")),
    35                                 KeyEvent.VK_SPACE, Shortcut.GROUP_DIRECT, Shortcut.SHIFT_DEFAULT)
     35                                KeyEvent.VK_SPACE, Shortcut.GROUP_DIRECT+Shortcut.GROUPS_ALT1)
    3636                                , true);
    3737        setEnabled(false);
  • applications/editors/josm/plugins/alignways/src/com/tilusnet/josm/plugins/alignways/AlignWaysCmdKeepLength.java

    r27619 r27810  
    1111import java.util.Map;
    1212
    13 import javax.swing.JLabel;
     13import javax.swing.Icon;
    1414import javax.swing.JOptionPane;
    1515import javax.swing.SwingConstants;
     
    189189
    190190    @Override
    191     public JLabel getDescription() {
    192         return new JLabel(tr("Align way segment"), ImageProvider.get("",
    193                 "alignways"), SwingConstants.HORIZONTAL);
     191    public String getDescriptionText() {
     192        return tr("Align way segment");
     193    }
     194
     195    @Override
     196    public Icon getDescriptionIcon() {
     197        return ImageProvider.get("alignways");
    194198    }
    195199
  • applications/editors/josm/plugins/alignways/src/com/tilusnet/josm/plugins/alignways/AlignWaysMode.java

    r27387 r27810  
    4545                Shortcut.registerShortcut("mapmode:alignways",
    4646                        tr("Mode: {0}", tr("Align Ways")),
    47                         KeyEvent.VK_N, Shortcut.GROUP_EDIT, Shortcut.SHIFT_DEFAULT),
     47                        KeyEvent.VK_N, Shortcut.GROUP_EDIT+Shortcut.GROUPS_ALT1),
    4848                        mapFrame, Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
    4949        noneSelected = new AlignWaysSelNoneState();
Note: See TracChangeset for help on using the changeset viewer.