Changeset 1054 in josm for trunk/src/org/openstreetmap/josm/gui/preferences/ShortcutPreference.java
- Timestamp:
- 2008-10-23T18:15:37+02:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/ShortcutPreference.java
r1053 r1054 35 35 // Maybe move this to prefPanel? There's no need for it to be here. 36 36 private class scListModel extends AbstractTableModel { 37 private String[] columnNames = new String[]{tr("ID"),tr("Action"), tr("Group"), tr("Shortcut")}; 37 // private String[] columnNames = new String[]{tr("Action"), tr("Shortcut"), tr("Group"), tr("ID")}; 38 private String[] columnNames = new String[]{tr("Action"), tr("Shortcut")}; 38 39 private Collection<ShortCut> data; 39 40 public scListModel() { … … 52 53 ShortCut sc = (ShortCut)data.toArray()[row]; 53 54 if (col == 0) { 54 return sc.get ShortText();55 return sc.getLongText(); 55 56 } else if (col == 1) { 56 return sc.get LongText();57 } else if (col == 2) { 57 return sc.getKeyText(); 58 } /*else if (col == 2) { 58 59 if (sc.getRequestedGroup() == ShortCut.GROUP_NONE) { 59 60 return tr("None"); … … 76 77 } 77 78 } else if (col == 3) { 78 return sc.get KeyText();79 } else { 79 return sc.getShortText(); 80 } */else { 80 81 // This is a kind of hack that allows the actions on the editing controls 81 82 // to access the underlying shortcut object without introducing another
Note:
See TracChangeset
for help on using the changeset viewer.
