full path of the file opened in the editor [message #202590] |
Sun, 01 April 2007 03:05 |
Eclipse User |
|
|
|
Originally posted by: mukerji.nita.gmail.com
I have installed eclipse 3.2.1.I have a java action plugin.The run() of
the action needs to read the full path of the file that is open in the
editor of workbench.
The java program that is called from run()will read from this file
therefore the need of the full path of the file.
|
|
|
Re: full path of the file opened in the editor [message #202622 is a reply to message #202590] |
Sun, 01 April 2007 12:34 |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
Nita,
You can use IEditorPart.getEditorInput and could test for
IFileEditorInput to get an IFile and from that call
getLocation/getLocationURI or use getAdapter(IFile) to try to adapt it
to an IFile. It might also be an IStorageEditorInput and an
IURIEditorInput which would let you get the IStorage's getFullPath or
the getURI.
Nita wrote:
> I have installed eclipse 3.2.1.I have a java action plugin.The run()
> of the action needs to read the full path of the file that is open in
> the editor of workbench.
> The java program that is called from run()will read from this file
> therefore the need of the full path of the file.
|
|
|
Powered by
FUDForum. Page generated in 0.07457 seconds