Adobe 65007312 Programming Guide - Page 192
Customizing the Plug-in Manager
UPC - 883919154398
View all Adobe 65007312 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 192 highlights
CHAPTER 10: Defining Metadata: A Walkthrough Customizing the Plug-in Manager 192 Customizing the Plug-in Manager You plug-in can define a customized section for the Plug-in Manager dialog, which is displayed on the right when the user selects your plug-in in the list on the left. This section can make use of private data values that you make globally available within the plug-in by defining them in an initialization script. Here is an example of adding such a section, using the metadata values we have already defined. 1. In the Info.lua file, add the entry that identifies the Plug-in Info Provider definition script: return { LrSdkVersion = 3.0, LrToolkitIdentifier = 'sample.metadata.mymetadatasample', LrPluginName = LOC "$$$/MyMetadataSample/PluginName=My Metadata Sample", LrMetadataProvider = 'MyMetadataDefinitionFile.lua', LrMetadataTagsetFactory = 'MyMetadataTagset.lua', LrPluginInfoProvider = 'PluginInfoProvider.lua', } 2. Add another line that identifies a URL where the user can go for further information about this plug-in: LrPluginInfoUrl = "http://www.mycompany.com", This URL will be displayed in the standard Status section of the Plug-in Manager dialog. 3. Create two new files in the plug-in folder named PluginInfoProvider.lua and PluginManager.lua. 4. Edit the file PluginInfoProvider.lua to add the basic framework: require 'PluginManager' return { sectionsForTopOfDialog = PluginManager.sectionsForTopOfDialog, }