Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Cannot access IFileEditorInput
Cannot access IFileEditorInput [message #281604] Tue, 22 February 2005 12:57 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Calling a method in one view from another view
Next Topic:Accessing Running Plugins
Goto Forum:
  


Current Time: Mon Sep 22 13:32:56 EDT 2025

Powered by FUDForum. Page generated in 0.07293 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top