Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
titlecom.myorg.myplugin.MyPlugin.java
borderStylesolid
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 template /src (close /com), update the following highlighted fields in MAINFEST.BASE
 the _\[MyPlugin\]_ folder, update the following highlighted fields for&nbsp;_MAINFEST.BASE_.

Panel

Wiki Markup
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
<span style="color: #ff0000">Bundle-Name</span><span style="color: #000000">: MyPlugin</span>
<span style="color: #ff0000">Bundle-SymbolicName</span><span style="color: #000000">: com.myorg.myplugin.MyPlugin</span>
<span style="color: #ff0000">Bundle-Version</span><span style="color: #000000">: 0.0.9</span>
<span style="color: #ff0000">Bundle-Activator</span><span style="color: #000000">:</span> <span style="color: #000000">com.myorg.myplugin</span><span style="color: #000000">.Activator</span>
<span style="color: #000000">Bundle-ActivationPolicy: lazy</span>
<span style="color: #000000">Bundle-RequiredExecutionEnvironment: JavaSE-1.6</span>
<span style="color: #000000">Bundle-Description: Plugin to allow the user to create a plugin as template</span>
Bundle-DocURL: [http://wiki.transvar.org]<span style="color: #ff0000"><a href="http://wiki.transvar.org">http://wiki.transvar.org</a></span>
<span style="color: #ff0000">Import-Package</span>: com.affymetrix.common;version="\[<span style="color: #000000">&nbsp;</span><span style="color: #000000">(appVersion)</span><span style="color: #000000">,</span> <span style="color: #000000">&nbsp;</span><span style="color: #000000">(appVersion)</span>\]",
&nbsp;com.affymetrix.genometryImpl,
&nbsp;com.affymetrix.genometryImpl.operator,
&nbsp;com.affymetrix.genometryImpl.symmetry,
&nbsp;com.affymetrix.genometryImpl.parsers,
&nbsp;com.affymetrix.igb.osgi.service,
&nbsp;org.osgi.framework;version="1.5.0",
&nbsp;org.osgi.util.tracker;version="1.4.0"

  • 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 the template /src, update the highlighted fields as
 under _\[MyPlugin\]_ folder, update the highlighted fields as follows.

Panel

name=MyPlugin
project=MyPlugin
classpath=${igb_service}/build:${window_service}/build:${common}/build:${igb}/build:${genometry}/build:${genoviz}/build:${osgi.impl}
plugin-jar=true

...

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:

...