Changeset 1084 in josm for trunk/src/org/openstreetmap/josm/gui/preferences/ShortcutPreference.java
- Timestamp:
- 2008-11-18T19:53:53+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/ShortcutPreference.java
r1054 r1084 10 10 11 11 import org.openstreetmap.josm.tools.GBC; 12 import org.openstreetmap.josm.tools.Short Cut;12 import org.openstreetmap.josm.tools.Shortcut; 13 13 import org.openstreetmap.josm.gui.preferences.prefJPanel; 14 14 … … 37 37 // private String[] columnNames = new String[]{tr("Action"), tr("Shortcut"), tr("Group"), tr("ID")}; 38 38 private String[] columnNames = new String[]{tr("Action"), tr("Shortcut")}; 39 private Collection<Short Cut> data;39 private Collection<Shortcut> data; 40 40 public scListModel() { 41 data = Short Cut.listAll();41 data = Shortcut.listAll(); 42 42 } 43 43 public int getColumnCount() { … … 51 51 } 52 52 public Object getValueAt(int row, int col) { 53 Short Cut sc = (ShortCut)data.toArray()[row];53 Shortcut sc = (Shortcut)data.toArray()[row]; 54 54 if (col == 0) { 55 55 return sc.getLongText(); … … 57 57 return sc.getKeyText(); 58 58 } /*else if (col == 2) { 59 if (sc.getRequestedGroup() == Short Cut.GROUP_NONE) {59 if (sc.getRequestedGroup() == Shortcut.GROUP_NONE) { 60 60 return tr("None"); 61 } else if (sc.getRequestedGroup() == Short Cut.GROUP_HOTKEY) {61 } else if (sc.getRequestedGroup() == Shortcut.GROUP_HOTKEY) { 62 62 return tr("Hotkey"); 63 } else if (sc.getRequestedGroup() == Short Cut.GROUP_MENU) {63 } else if (sc.getRequestedGroup() == Shortcut.GROUP_MENU) { 64 64 return tr("Menu"); 65 } else if (sc.getRequestedGroup() == Short Cut.GROUP_EDIT) {65 } else if (sc.getRequestedGroup() == Shortcut.GROUP_EDIT) { 66 66 return tr("Edit"); 67 } else if (sc.getRequestedGroup() == Short Cut.GROUP_LAYER) {67 } else if (sc.getRequestedGroup() == Shortcut.GROUP_LAYER) { 68 68 return tr("Subwindow"); 69 } else if (sc.getRequestedGroup() == Short Cut.GROUP_DIRECT) {69 } else if (sc.getRequestedGroup() == Shortcut.GROUP_DIRECT) { 70 70 return tr("Direct"); 71 } else if (sc.getRequestedGroup() == Short Cut.GROUP_MNEMONIC) {71 } else if (sc.getRequestedGroup() == Shortcut.GROUP_MNEMONIC) { 72 72 return tr("Mnemonic"); 73 } else if (sc.getRequestedGroup() == Short Cut.GROUP_RESERVED) {73 } else if (sc.getRequestedGroup() == Shortcut.GROUP_RESERVED) { 74 74 return tr("System"); 75 75 } else {
Note:
See TracChangeset
for help on using the changeset viewer.