* the <code>ActionDictionary</code> from which to look up the action properties
* @param id
* the ID to use when querying the dictionary
*/
public static void decorateFromDictionary(Action action, ActionDictionary dictionary, String id) {
MnemonicString name = dictionary.getName(id);
if (name != null) {
action.putValue(Action.NAME, name.getRaw());
}
action.putValue(Action.SHORT_DESCRIPTION, dictionary.getToolTip(id));
action.putValue(Action.SMALL_ICON, dictionary.getSmallIcon(id));
action.putValue(Action2.MEDIUM_ICON_KEY, dictionary.getMediumIcon(id));
action.putValue(Action.LARGE_ICON_KEY, dictionary.getLargeIcon(id));