Ignore:
Timestamp:
2008-11-18T19:53:53+01:00 (15 years ago)
Author:
framm
Message:
  • cosmetics: rename ShortCut to Shortcut, and shortCut to shortcut
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/ShortcutPreference.java

    r1054 r1084  
    1010
    1111import org.openstreetmap.josm.tools.GBC;
    12 import org.openstreetmap.josm.tools.ShortCut;
     12import org.openstreetmap.josm.tools.Shortcut;
    1313import org.openstreetmap.josm.gui.preferences.prefJPanel;
    1414
     
    3737//              private String[] columnNames = new String[]{tr("Action"), tr("Shortcut"), tr("Group"), tr("ID")};
    3838                private String[] columnNames = new String[]{tr("Action"), tr("Shortcut")};
    39                 private Collection<ShortCut> data;
     39                private Collection<Shortcut> data;
    4040                public scListModel() {
    41                         data = ShortCut.listAll();
     41                        data = Shortcut.listAll();
    4242                }
    4343                public int getColumnCount() {
     
    5151                }
    5252                public Object getValueAt(int row, int col) {
    53                         ShortCut sc = (ShortCut)data.toArray()[row];
     53                        Shortcut sc = (Shortcut)data.toArray()[row];
    5454                        if (col == 0) {
    5555                                return sc.getLongText();
     
    5757                                return sc.getKeyText();
    5858                        } /*else if (col == 2) {
    59                                 if (sc.getRequestedGroup() == ShortCut.GROUP_NONE) {
     59                                if (sc.getRequestedGroup() == Shortcut.GROUP_NONE) {
    6060                                        return tr("None");
    61                                 } else if (sc.getRequestedGroup() == ShortCut.GROUP_HOTKEY) {
     61                                } else if (sc.getRequestedGroup() == Shortcut.GROUP_HOTKEY) {
    6262                                        return tr("Hotkey");
    63                                 } else if (sc.getRequestedGroup() == ShortCut.GROUP_MENU) {
     63                                } else if (sc.getRequestedGroup() == Shortcut.GROUP_MENU) {
    6464                                        return tr("Menu");
    65                                 } else if (sc.getRequestedGroup() == ShortCut.GROUP_EDIT) {
     65                                } else if (sc.getRequestedGroup() == Shortcut.GROUP_EDIT) {
    6666                                        return tr("Edit");
    67                                 } else if (sc.getRequestedGroup() == ShortCut.GROUP_LAYER) {
     67                                } else if (sc.getRequestedGroup() == Shortcut.GROUP_LAYER) {
    6868                                        return tr("Subwindow");
    69                                 } else if (sc.getRequestedGroup() == ShortCut.GROUP_DIRECT) {
     69                                } else if (sc.getRequestedGroup() == Shortcut.GROUP_DIRECT) {
    7070                                        return tr("Direct");
    71                                 } else if (sc.getRequestedGroup() == ShortCut.GROUP_MNEMONIC) {
     71                                } else if (sc.getRequestedGroup() == Shortcut.GROUP_MNEMONIC) {
    7272                                        return tr("Mnemonic");
    73                                 } else if (sc.getRequestedGroup() == ShortCut.GROUP_RESERVED) {
     73                                } else if (sc.getRequestedGroup() == Shortcut.GROUP_RESERVED) {
    7474                                        return tr("System");
    7575                                } else {
Note: See TracChangeset for help on using the changeset viewer.