[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.equinox] OSGi application with a workspace

Does anyone have any experience creating an OSGi framework application that requires a workspace? Is it possible? Can anyone list the pros/cons?

In my first attempt, my OSGi framework launch configuration includes org.eclipse.core.resources and all of its dependencies, so the bundles validate with no problems. It also specifies the "-ws" program argument with the value of a qualified path to a workspace (since the ${target.ws} variable is unavailable).

When my bundle finally gets to access the workspace I find that,

ResourcesPlugin.getWorkspace().getRoot().getProjects() returns an empty IProject[0] array.

I also tried setting the "auto-start" to true for org.eclipse.core.resources, but at this point I've run out of ideas and I'm guessing. I'm developing in Eclipse 3.4, but my target platform is Eclipse 3.4.1.

Thanks in advance,
Scott