...
Step 6. Update SamplePlugin.java: Open SamplePlugin.java in the same /src directory. Start by updating the class with your plugin name (e.g. MyPlugin), your package declarations and constructor(s). Overriding getDisplay() sets the display name in IGB (e.g. "My Operation"). We recommend overriding getName() with a descriptive name (string).
This sample code inherits AbstractAnnotationOperator and implements Operator interface to work as a new annotation operation. For more options refer to the Extension Points section.
...
Panel |
---|
name=MyPlugin |
...
Wiki Markup name=\[your plugin name\]
Wiki Markup project=\[your plugin name\]
- classpath is updated with the necessary path; refer to the project build.xml for the actual paths listed, i.e. the path for igb_service or windows_service.
6Step 9. Update build.properties for the project (not the one in plugin folder)
On the line 'not.include.bundles=', delete : Under the igb project folder, open the build.properties file and make the following changes:
Delete all the existing values and add your plugin name :to the line not.include.bundles=
Panel |
---|
not.include.bundles=MyPlugin |
Step 10.Generate .jar and .xml files for your plugin: After all files have been changed and save, "Clean and Build IGBDelete files in " IGB. Using Finder (MacOS) or Windows Explorer (WindowsOS), open IGB_HOME/plugins/ext In command line, go to IGB_HOME, run commandand delete any files that are present. Open a command line prompt and run the following command:
Panel |
---|
ant externalBundles |
Enter your svn password as necessary
Wiki Markup |
---|
*Step 11. Move the .jar and .xml files to your plugin directory:* There should be 2 generated files in IGB_HOME/plugins/ext |
, _\[MyPlugin\].jar_ and _repository.xml |
_. Move these files to the folder (local or remote HTTP server) where you want your plugin site |
. Make sure |
to cut these files from from the IGB_HOME/plugins/ext |
folder, or delete |
after copying |
. |
Step 12. Add your plugin repository: Run IGB and open the Plug-ins' tab panel. Click 'Repositories...' button to open the Plugin configuration panelEnter the name you want to name, this can be any name you like since it will only show Preferences > Plugin Repositories page and click Add....
- Enter your repository name; this name will only appear in the plugin site list.
- Enter the URL for your remote server
...
OR
...
- or click '...'
...
- to select
...
- a local folder.
- Click 'Add Repository' button
...
Your plugin site is added into to the site list, also your plugin MyPlugin is showing list in Plugin Repositories:
Step 13. Activate your plugin: Your plugin appears in the Plug-ins tab in IGB after close the configuration panel
panel. Install the plugin by checking 'Installed'.
Now let's take a look what the sample plugin looks like.
...