Cannot access IFileEditorInput [message #281604] |
Tue, 22 February 2005 12:57  |
Eclipse User |
|
|
|
Originally posted by: jai.kejriwal.air2web.com
Hi,
I am building a view plugin. I need to create a IFileEditorInput object to
access the getFile() method on the active text editor. Despite having
listed,
org.eclipse.ui as a dependency, I am unable to import IFileEditorInput. It
gives a "cannot
resolve" error.
I tired removing the dependency and adding it to the build path but that
did not work either. Please help!
Jai
|
|
|
Re: Cannot access IFileEditorInput [message #281605 is a reply to message #281604] |
Tue, 22 February 2005 13:33  |
Eclipse User |
|
|
|
Originally posted by: someone.ibm.com
It's not obvious because of its package name (org.eclipse.ui), but
IFileEditorInput defines a file-oriented input to an editor for files found
within a workspace project. This interface is defined in the
org.eclipse.ui.ide plug-in, which is dependent on the Core Resources
plug-in. Add these prerequisite plug-ins to your <requires> clause.
-- Dan
----------------------------
co-author, "The Java Developer's Guide to Eclipse"
CD-ROM preview at http://www.jdg2e.com
"Jai Kejriwal" <jai.kejriwal@air2web.com> wrote in message
news:cvfrqb$asa$1@www.eclipse.org...
> Hi,
>
> I am building a view plugin. I need to create a IFileEditorInput object to
> access the getFile() method on the active text editor. Despite having
> listed,
> org.eclipse.ui as a dependency, I am unable to import IFileEditorInput. It
> gives a "cannot
> resolve" error.
>
> I tired removing the dependency and adding it to the build path but that
> did not work either. Please help!
>
> Jai
|
|
|
Powered by
FUDForum. Page generated in 0.07293 seconds