/** * Sets the name, mnemonic, and description of this action. * * @param msg The resource bundle. * @param keyRoot The root of the keys for the properties. * "<code>.Name</code>", "<code>.Mnemonic</code>", and * "<code>.Desc</code>" will be appended to create the key for each * property. */ public void setProperties(ResourceBundle msg, String keyRoot) { setName(msg.getString(keyRoot + ".Name")); setMnemonic(msg.getString(keyRoot + ".Mnemonic").charAt(0)); setShortDescription(msg.getString(keyRoot + ".Desc")); }
/** * Sets the name, mnemonic, and description of this action. * * @param msg The resource bundle. * @param keyRoot The root of the keys for the properties. * "<code>.Name</code>", "<code>.Mnemonic</code>", and * "<code>.Desc</code>" will be appended to create the key for each * property. */ public void setProperties(ResourceBundle msg, String keyRoot) { setName(msg.getString(keyRoot + ".Name")); setMnemonic(msg.getString(keyRoot + ".Mnemonic").charAt(0)); setShortDescription(msg.getString(keyRoot + ".Desc")); }