Kagemand Andersen
Kagemand Andersen

Reputation: 1693

Adding Plug-in dependencies in Eclipse?

When I try to import org.eclipse.core.resources.IFile for a Plug-in project in Eclipse I get the following error:

The type org.eclipse.core.resources.IFile cannot be resolved. It is indirectly referenced from required .class files

How do I add it to Plug-in Dependencies?

Upvotes: 1

Views: 2056

Answers (1)

greg-449
greg-449

Reputation: 111142

Add org.eclipse.core.resources to the 'Required Plug-ins' on the 'Dependencies' tab of the MANIFEST.MF editor for your plugin.

Upvotes: 1

Related Questions