...
This procedure is designed to help you create the files that are needed to install your plug-in within IGB. The first section contains the steps needed to modify your local copy of the IGB code in order to generate the needed files. You should have an updated, local copy of the IGB code or check out the most recent version from Sourceforge.
...
Step 5. Update Activator.java: Expand the sample plugin / src folder until you see Activator.java (and SamplePlugin.java).
...
Step 6. Update SamplePlugin.java: Open SamplePlugin.java in the same /src directory with Activator.java. 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).
...
Code Block | ||||
---|---|---|---|---|
| ||||
public class MyPlugin extends AbstractAnnotationOperator implements Operator { MyPlugin(FileTypeCategory category){ super(category); } @Override public String getName() { return this.category.toString().toLowerCase() +"_my_plugin"; } @Override public String getDisplay() { return "My Operation"; } private boolean overlap(BioSeq aseq, SeqSymmetry s0, SeqSymmetry s1) { } @Override public SeqSymmetry operate(BioSeq aseq, List<SeqSymmetry> symList) { } } |
Wiki Markup |
---|
*Step 7. Update* *{_}MAINFEST.BASE{_}{*}*:* Directly under |
the _\[MyPlugin\]_ folder, update the following highlighted fields for _MAINFEST.BASE_. |
Panel | ||
---|---|---|
|
- Bundle-Name - change to your plugin name
- Bundle-SymbolicName - change to your package path
- Bundle-Version - change to your plugin version
- Bundle-Activation - change to your Activator path (e.g. com.myorg.myplugin.Activator)
- Import-Package - include all the classes your are using in your source code
Wiki Markup |
---|
*Step 8. Update* *{_}ant.properties{_}{*}*:* Also found |
under _\[MyPlugin\]_ folder, update the highlighted fields as follows. |
Panel |
---|
name=MyPlugin |
...
Step 9. Update build.properties for the project: Under the IGB project folder(not the build.properties file in your plugin folder), open the build.properties file:
...