views:

158

answers:

2

This is a question already asked by someone:

http://stackoverflow.com/questions/242032/eclipse-project-directory

The answer was good: using ResourcesPlugin. But for some reason, under no circoumstances will my Ganymede eclipse recognise the existence of "org.eclipse.core.resources" package which contains ResourcesPlugin.

Why is that?

A: 

This is usually something to do with the Manifest:

  • is the package imported (Import-Package), or the bundle required (Require-Bundle) in your plugin.
  • (sanity check) is the package exported by the source bundle (Export-Bundle).

If both of these check out, then I would look at the target platform. A typical base install for RCP only does not include the resources bundle.

jamesh
A: 

Add the bundle org.eclipse.core.resources in your plugin dependencies. That should work just fine.

Suraj Chandran