registerPluginResource(string $pluginName, string $lookUpKey, string $defaultValue)
なし
| 変数名 | 変数型 | 説明 |
|---|---|---|
| $pluginName | string | 固有のプラグイン名です(loadPlugin に渡されるとおり)。 |
| $lookUpKey | string | この文字列リソースの固有のキーです。 |
| $defaultValue | string | リソースに関連付けるデフォルト文字列の値です。 |
// Assign resource values that will be used to initialize
// menu item labels for the plugin.
// The plugin name is "myPlugin" and each resource has a unique
// key.
// The default values given for the resource will be used unless
// they are subsequently overridden using setPluginResource.
//
registerPluginResource("myPlugin", "showBBoxLabel", "Show Bounding Box");
registerPluginResource("myPlugin", "hideBBoxLabel", "Hide Bounding Box");