Page tree

Versions Compared

Key

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

...

Eclipse (http://www.eclipse.org) makes it a lot easier to develop bundles. You can create a new project
as a plug in project, and it will give you wizards, etc. for development. see:http://www.vogella.de/articles/OSGi/article.html
(using eclipse Helios)

  1. check Check out IGB from https://genoviz.svn.sourceforge.net/svnroot/genoviz/trunk into a new directory - we will refer to the project directory below as IGB_HOME. in eclipse, project explorer
    • open a command prompt in IGB_HOME, run "svn co https://genoviz.svn.sourceforge.net/svnroot/genoviz/trunkImage Removed"
    • in eclipse, project explorer, "File>Import"
    • in the Import popup, under "General", select "Existing Projects into Workspace"
    • "Next >" button
    • make sure "Select root directory:" is selected, and fill in the IGB_HOME directory
    • click the "Finish" button
  2. open a command prompt in IGB_HOME, and do an "ant clean" and "ant jar"
    • Ann's comment: I followed the directions exactly, even checking an all-new copy of genoviz-trunk into a newly created directory (I called it IGB_HOME) but Eclipse refused to let me proceed, showing an error message on the "Import" window that syas "Some projects cannot be imported because they already exist in the workspace." I got it to work only after I deleted another copy of the IGB project. Is it not possible to have to separate IGB projects on the same computer without Eclipse causing a problem? I need to be able to develop on the branch and the trunk at the same time. How do I do this?
  3. Open a command prompt in IGB_HOME, and do an "ant clean" and "ant jar"
  4. Make sure Eclipse is displaying the Project Explorer Tab. (If not, click View>Show View>Project Explorer.)
  5. In eclipse, Project Explorer, right click the IGB project and select "refresh."
  6. in eclipse, project explorerProject Explorer, right click on open space, and select "Import..." Ann's comment: When I did this, I did not see a folder labeled "Plug-in Development." Is this something unique to how your Eclipse is set up? If yes, please explain what other stuff I need to install to follow the directions.  
    • Select "Plug-ins and Fragments" under "Plug-in Development", click the "Next >" button
    • under "Import From", select "Directory:",
    • under "Plug-ins and Fragments to Import" select "Select from all plug-ins and Fragments",
    • under "Import As" select "Binary Projects"
    • for "Directory:", click the "Browse..." button and select the IGB_HOME/ext, click the "OK" button
    • click the "Next >" button
    • under "Plug-ins and Fragments Found:", select affx_fusion, colt, freehep, image4j, jlfgr, picard, and sam
    • click the "Add -->" button to add these all to "Plug-ins and Fragments to Import:", click the "Finish" button
  7. Do the following for the directories under IGB_HOME, genometryImpl, genoviz_sdk, igb, plugins/igb_service, plugins/window_service
    • in eclipse, project explorer, right click on open space, and select "Import..."
    • Select "Existing Projects into Workspace" under "General", click the "Next >" button
    • click "Select root directory:" and click the "Browse..." button on the right
    • select the project under IGB_HOME, and click "OK"
    • click "Finish"
  • note - you will find it easier to debug in eclipse if you use the Debug project. You can add the Activator for your bundle in com.affymetrix.igb.debug.Debug, in the static statement at the top. Then on Debug, you can "Debug As" "Java Application", and
    this will run IGB using a dummy OSGi implementation, so that you can easily step through code, set breakpoints, etc. Please explain in more detail.

Sample plug-in using eclipse

...