Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Getting Project from JSP editor
Getting Project from JSP editor [message #187917] Mon, 12 February 2007 13:24 Go to next message
Eclipse UserFriend
Originally posted by: kim.turner.bankofamerica.com

I am writing a small extension to the JSP editor to facilitate
externalizing text for internationalization of a web application. One of
the tasks that I need to implement is to search for and create if
necessary, a resource bundle. To accomplish this I need to get the
enclosing project. The examples that I have been able to find use
IFileEditorInput, but this class cannot be resolved. I am pretty confident
that I have included the appropriate plug-ins in my dependencies. I have
also searched through many jar files, and the cvs repository for this
class, but I have not been able to locate it. I did find a reference to
the class in org.eclipse.ui.editors.text.TextFileDocumentProvider.
According to the import in that file, IFileEditorInput should be in
eclipse.org.ui.

Can anyone tell me what happened to this class or provide an alternative
method to get the enclosing project from the JSP editor (ITextEditor)?

Thanks,
Kim
Re: Getting Project from JSP editor [message #187925 is a reply to message #187917] Mon, 12 February 2007 13:36 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Kim,

To answer a question like this, I use Ctrl-Shift-T to open
IFileEditorInput and then I use the little right left arrow toolbar
button in the Package Explorer to select the file corresponding to the
open editor in the explorer. This reveals that the class is in the
org.eclipse.ui.ide plugin.


Kim Turner wrote:
> I am writing a small extension to the JSP editor to facilitate
> externalizing text for internationalization of a web application. One
> of the tasks that I need to implement is to search for and create if
> necessary, a resource bundle. To accomplish this I need to get the
> enclosing project. The examples that I have been able to find use
> IFileEditorInput, but this class cannot be resolved. I am pretty
> confident that I have included the appropriate plug-ins in my
> dependencies. I have also searched through many jar files, and the cvs
> repository for this class, but I have not been able to locate it. I
> did find a reference to the class in
> org.eclipse.ui.editors.text.TextFileDocumentProvider. According to the
> import in that file, IFileEditorInput should be in eclipse.org.ui.
>
> Can anyone tell me what happened to this class or provide an
> alternative method to get the enclosing project from the JSP editor
> (ITextEditor)?
>
> Thanks,
> Kim
>
Previous Topic:Calling export war action in headless mode
Next Topic:Bug with WTP 2.0 M4 vs. Eclipse 3.3M5?
Goto Forum:
  


Current Time: Sat Nov 29 06:28:42 GMT 2014

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

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