Changeset 11654 in josm for trunk/src/org/openstreetmap/josm/gui/preferences/ToolbarPreferences.java
- Timestamp:
- 2017-03-03T22:37:42+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/ToolbarPreferences.java
r11553 r11654 939 939 selected.addElement(actionDefinition); 940 940 } 941 actionsTreeModel.reload(); 941 942 } 942 943 … … 1077 1078 1078 1079 /** 1080 * Registers an action to the toolbar preferences. 1079 1081 * @param action Action to register 1080 1082 * @return The parameter (for better chaining) … … 1096 1098 } 1097 1099 return action; 1100 } 1101 1102 /** 1103 * Unregisters an action from the toolbar preferences. 1104 * @param action Action to unregister 1105 * @return The removed action, or null 1106 * @since 11654 1107 */ 1108 public Action unregister(Action action) { 1109 String toolbar = (String) action.getValue("toolbar"); 1110 if (toolbar != null) { 1111 return regactions.remove(toolbar); 1112 } 1113 return null; 1098 1114 } 1099 1115
Note:
See TracChangeset
for help on using the changeset viewer.