Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » full path of the file opened in the editor
full path of the file opened in the editor [message #202590] Sun, 01 April 2007 03:05 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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.
Previous Topic:Display resultset to window dialoge box
Next Topic:Testing with JBoss?
Goto Forum:
  


Current Time: Fri Mar 29 15:00:52 GMT 2024

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

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

Back to the top