Download and unzip the template file SamplePlugin.zip

Copy the template folder to IGB source plugins folder


Update files:

1. Change the plugin name from 'SamplePlug' to your customized name such as 'MyPlugin' (your plugin name)

2. Change the package from 'com.affymetrix.igb.sampleplugin' to your package name i.e. 'com.myorg.myplugin'.

If you IDE does not support create folder directly you can do this from your Finder (MacOS) or Windows Explorer, the directory is IGB_HOME/plugins/MyPlug/src

3. Expand src from your IDE until you see the Activator.java and SamplePlugin.java, update the 'SamplePlugin.java' to your plugin name and change all the necessary package declaration, class name and constructor(s).
4. Update MAINFEST.BASE

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: <span style="color: #ff0000">SamplePlugin</span>
Bundle-SymbolicName: <span style="color: #ff0000">com.affymetrix.igb.sampleplugin.SamplePlugin</span>
Bundle-Version: <span style="color: #ff0000">0.0.9</span>
Bundle-Activator: <span style="color: #ff0000">com.affymetrix.igb.sampleplugin.Activator</span>
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Bundle-Description: <span style="color: #ff0000">Plugin to allow the user to create a plugin as template</span>
Bundle-DocURL: [<span style="color: #ff0000"><span class="nobr"><a href="http://wiki.transvar.org" class="external-link" rel="nofollow">http://wiki.transvar.org<sup><img class="rendericon" src="/confluence/images/icons/linkext7.gif" height="7" width="7" align="absmiddle" alt="" border="0"/></sup></a></span></span>|http://wiki.transvar.org]
<span style="color: #ff0000">Import-Package</span>: com.affymetrix.common;version="\[&nbsp;(appVersion),&nbsp;(appVersion)\]",
&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"

5. Update ant.properties

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