Changeset 7021 in josm for trunk/src/org/openstreetmap/josm/gui/preferences/ToolbarPreferences.java
- Timestamp:
- 2014-04-29T01:18:18+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/ToolbarPreferences.java
r7020 r7021 623 623 @Override 624 624 public Component getListCellRendererComponent(JList<? extends ActionDefinition> list, 625 ActionDefinition value, int index, boolean isSelected, boolean cellHasFocus) {625 ActionDefinition action, int index, boolean isSelected, boolean cellHasFocus) { 626 626 String s; 627 627 Icon i; 628 ActionDefinition action = (ActionDefinition)value;629 628 if (!action.isSeparator()) { 630 629 s = action.getDisplayName(); … … 646 645 if (sel) { 647 646 actionsTree.clearSelection(); 648 ActionDefinition action = (ActionDefinition)selected.get(selectedList.getSelectedIndex());647 ActionDefinition action = selected.get(selectedList.getSelectedIndex()); 649 648 actionParametersModel.setCurrentAction(action); 650 649 actionParametersPanel.setVisible(actionParametersModel.getRowCount() > 0); … … 864 863 ActionParser parser = new ActionParser(null); 865 864 for (int i = 0; i < selected.size(); ++i) { 866 ActionDefinition action = (ActionDefinition)selected.get(i);865 ActionDefinition action = selected.get(i); 867 866 if (action.isSeparator()) { 868 867 t.add("|");
Note:
See TracChangeset
for help on using the changeset viewer.