Open project directory from eclipse plugin
This question has already been asked by someone:
How can an Eclipse plugin access the project directory?
The answer was good: using ResourcesPlugin
.
But for some reason, my Ganymede eclipse does not under any circumstances acknowledge the existence of a package org.eclipse.core.resources
containing ResourcesPlugin
.
Why is this?
This is usually associated with a manifest:
- - imported package (
Import-Package
) or required package (Require-Bundle
) in your plugin. - (health check) is the package exported by the original package (
Export-Bundle
).
If you both check, I'll take a look at the target platform. A typical basic RCP-only installation does not include a package resources
.
source to share
(*) You may have specified a version limitation in the Manifest.MF for a dependency. And the version available is different. If so, remove the constraint or just click Mapping in the dependency properties
(*) Check your target framework and check if this plugin exists org.eclipse.core.resources.
(*) If the error still persists, go to the Plugins tab in your RCP startup configuration. Check if oecresources are added. Validate Plug-ins buttons should be helpful for identifying any problems.
source to share