...
- In the Project Explorer - blank area, right-click
- New > Project ... > Plug-in Project > "Next >" button
- Project name: "HelloWorld"
- On "Target Platform" select "an OSGi framework".Select "standard" on the drop down box beside "an OSGi framework" radio button.
- "Next >" button
- Version: "1.0.0"
- check "Generate an activator ..."
- Activator
helloworld.Activator
- "Next >" button
- Uncheck "Create a plug-in using one of the templates"
- "Finish" button
- New > Project ... > Plug-in Project > "Next >" button
- Under the new HelloWorld project, find the META-INF directory, and open the MANIFEST.MF file by double-clicking on it.
- Click on the "Dependencies" tab,
- On "Imported Packages" box, click the "Add..." button, in the "Package Selection" popup in the text box, enter
com.affymetrix.genoviz.util
and click the "OK" button.
- On "Imported Packages" box, click the "Add..." button, in the "Package Selection" popup in the text box, enter
- Right click on the blank area at the top, next to "Dependencies" and
- a context menu comes up, click "Save".
- a context menu comes up, click "Save".
- Open the Activator.java file under src/helloworld
- add the import statement
import com.affymetrix.genoviz.util.ErrorHandler;
- at the top, and add the line
ErrorHandler.errorPanel("Hello World");
- at the end of the start() method, and
ErrorHandler.errorPanel("Goodbye World");
- at the end of the stop method
- Save the file
- In the Project Explorer
- Right click the HelloWorld project
- > "Export ..."
- "Deployable plug-ins and fragments"
- "Next >" button
- Under "Available Plug-ins and Fragments:", check only Hello World
- "Directory:" use any directory you like
- click the "Finish" button.
- The HelloWorld_1.0.0.jar file will be in the plugins directory under the directory the you specified. This is your bundle
- In the IGB_HOME directory, from the command line run
run_igb -install_bundle file:/<bundle_directory>/plugins/HelloWorld_1.0.0.jar
(Windows)./run_igb.sh -install_bundle file:/<bundle_directory>/plugins/HelloWorld_1.0.0.jar
(Mac and Linux)- where IGB_HOME is your IGB directory, and <bundle_directory> is the directory that you specified
in the export
- You should now see your Hello World plugin.
- If you install the plugin you will see an Error popup "Hello World"
- When you uninstall the plugin, you will see an Error popup "Goodbye World"
- Congratulations!
...