[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform] Re: The type org.eclipse.core.resources.IFile cannot be resolved. It is indirectly referenced from , required .class files

Jan,

Add org.eclipse.core.resources to the plugin dependencies. For any other issue like this, use Ctrl-Shift-T to find the class, use the little left-right arrow in the navigator/project explorer to find out where that class lives, and then add the containing plugin to the dependencies.

Jan Weidauer wrote:
Hi all,

I've got a problem using IFileEditorInput. After adding
org.eclipse.ui.ide to the dependencies of my plug-in the following error
appears while trying to use the IFileEditorInput.getFile() method.

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

What can I do to fix this?

Jan