@param a the action to change the text, short description and mnemonic @param substitutes substitutes to use in a message format @param prop key bundle to use
(Action a, String prop, Object... substitutes)
| 40 | * @param prop key bundle to use |
| 41 | */ |
| 42 | public static void name(Action a, String prop, Object... substitutes) |
| 43 | { |
| 44 | a.putValue(Action.NAME, getName(prop, substitutes)); |
| 45 | String shortDesc = getShortDesc(prop, substitutes); |
| 46 | if (shortDesc != null && !shortDesc.isEmpty()) |
| 47 | { |
| 48 | a.putValue(Action.SHORT_DESCRIPTION, shortDesc); |
| 49 | } |
| 50 | a.putValue(Action.MNEMONIC_KEY, getMnemonic(prop)); |
| 51 | } |
| 52 | |
| 53 | private static int getMnemonic(String prop) |
| 54 | { |