Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » What is the name/path of the clicked file
What is the name/path of the clicked file [message #176700] Thu, 26 October 2006 12:03 Go to next message
Eclipse UserFriend
Originally posted by: locquetx.netscape.net

It is probably trivial but i coulnd't find the answer in FAQ or newcomer.

I created a plugin-text editor for .paf files
When i selected in file>open file> browse test.paf
the file open in the editor but how can i know, in the plugin, what is the
file/path of that file?
I read info about how to create IFile in order to save it somewhere else
but how do i get the IFile currently called onto the plugin.
Thanks
Xavier
Re: What is the name/path of the clicked file [message #184529 is a reply to message #176700] Thu, 14 December 2006 10:17 Go to previous message
Remy Suen is currently offline Remy SuenFriend
Messages: 462
Registered: July 2009
Senior Member
xavier wrote:
> I created a plugin-text editor for .paf files
> When i selected in file>open file> browse test.paf
> the file open in the editor but how can i know, in the plugin, what is
> the file/path of that file?
> I read info about how to create IFile in order to save it somewhere else
> but how do i get the IFile currently called onto the plugin.

From within your editor (that being your EditorPart subclass), you can
probably just do...

IFile inputFile = ((IFileEditorInput) getEditorInput()).getFile();

Is this what you want?

Regards,
Rem
Previous Topic:Creating BIRT Report by java code
Next Topic:How to run properties view example
Goto Forum:
  


Current Time: Thu Sep 19 10:02:54 GMT 2024

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

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

Back to the top