Changeset 4146 in josm
- Timestamp:
- 2011-06-19T17:17:43+02:00 (13 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/ShowStatusReportAction.java
r4139 r4146 41 41 tr("Show status report with useful information that can be attached to bugs"), 42 42 Shortcut.registerShortcut("help:showstatusreport", tr("Help: {0}", 43 tr("Show Status Report")), KeyEvent.VK_R, Shortcut.GROUP_NONE), true);43 tr("Show Status Report")), KeyEvent.VK_R, Shortcut.GROUP_NONE), false); 44 44 45 45 putValue("help", ht("/Action/ShowStatusReport")); 46 46 putValue("toolbar", "help/showstatusreport"); 47 Main.toolbar.register(this); 47 48 } 48 49 -
trunk/src/org/openstreetmap/josm/gui/io/RecentlyOpenedFilesMenu.java
r3758 r4146 58 58 putValue(NAME, file); 59 59 putValue("help", ht("/Action/OpenRecent")); 60 putValue("toolbar", false); 60 61 } 61 62 @Override … … 83 84 putValue(SHORT_DESCRIPTION, tr("Clear the list of recently opened files")); 84 85 putValue("help", ht("/Action/OpenRecent")); 86 putValue("toolbar", "recentlyopenedfiles/clear"); 85 87 } 86 88 -
trunk/src/org/openstreetmap/josm/gui/preferences/ToolbarPreferences.java
r4139 r4146 490 490 int index = selectedList.getSelectedIndex(); 491 491 upButton.setEnabled(index > 0); 492 downButton.setEnabled(index < selectedList.getModel().getSize() - 1);492 downButton.setEnabled(index != -1 && index < selectedList.getModel().getSize() - 1); 493 493 removeButton.setEnabled(index != -1); 494 494 addButton.setEnabled(actionsTree.getSelectionCount() > 0); … … 788 788 Action action = menuItem.getAction(); 789 789 userObject = action; 790 String toolbar = (String)action.getValue("toolbar");791 if(t oolbar== null) {790 Object tb = action.getValue("toolbar"); 791 if(tb == null) { 792 792 System.out.println(tr("Toolbar action without name: {0}", 793 793 action.getClass().getName())); 794 continue; 795 } else if (!(tb instanceof String)) { 796 if(!(tb instanceof Boolean) || (Boolean)tb) { 797 System.out.println(tr("Strange toolbar value: {0}", 798 action.getClass().getName())); 799 } 800 continue; 794 801 } else { 802 String toolbar = (String) tb; 795 803 Action r = actions.get(toolbar); 796 804 if(r != null && r != action) { … … 798 806 toolbar, r.getClass().getName(), action.getClass().getName())); 799 807 } 800 }801 actions.put(toolbar, action);808 actions.put(toolbar, action); 809 } 802 810 } else { 803 811 userObject = menuItem.getText();
Note:
See TracChangeset
for help on using the changeset viewer.