MCPcopy Create free account
hub / github.com/PCGen/pcgen / name

Method name

code/src/java/pcgen/gui2/tools/CommonMenuText.java:42–51  ·  view source on GitHub ↗

@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)

Source from the content-addressed store, hash-verified

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 {

Callers 15

PCGenActionMethod · 0.95
SourceSelectionDialogMethod · 0.95
initComponentsMethod · 0.95
convertMethod · 0.80
unconvertMethod · 0.80
testIconsExistMethod · 0.80
unparseMethod · 0.80
unparseMethod · 0.80
getImageIconMethod · 0.80
asJavaFXMethod · 0.80
updatePhantomSlotsMethod · 0.80
LocationPanelMethod · 0.80

Calls 6

getNameMethod · 0.95
getShortDescMethod · 0.95
getMnemonicMethod · 0.95
isEmptyMethod · 0.65
putValueMethod · 0.45
setTextMethod · 0.45

Tested by 1

testIconsExistMethod · 0.64