Getting Project from JSP editor [message #187917] |
Mon, 12 February 2007 13:24  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.03823 seconds