Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Get a filename with the complete path?
Get a filename with the complete path? [message #157939] Mon, 17 November 2003 19:14 Go to next message
Eclipse UserFriend
Originally posted by: dennis.avanci.siemens.com

Hello.

I've implemented an editor and now when the user clicks in an menu that
I've created, I want to get the filename that is focused in the workbench.
I've already done this, but I can't get the whole path, just the file
name. I have searched how to get the whole path of the file, but I can't
find anywhere.
Could someone please help me?

Thanks,
Dennis J. Avanci
Re: Get a filename with the complete path? [message #157944 is a reply to message #157939] Mon, 17 November 2003 19:34 Go to previous message
Eclipse UserFriend
Originally posted by: dhavrda.motive.com

IFile yourfile
yourfile.getLocation().toOSString()

if you have your editorinput then cast it to
FileEditorInput then do a getFile() on it to get the IFile

dave


"Dennis J. Avanci" <dennis.avanci@siemens.com> wrote in message
news:bpb6nc$t19$1@eclipse.org...
> Hello.
>
> I've implemented an editor and now when the user clicks in an menu that
> I've created, I want to get the filename that is focused in the workbench.
> I've already done this, but I can't get the whole path, just the file
> name. I have searched how to get the whole path of the file, but I can't
> find anywhere.
> Could someone please help me?
>
> Thanks,
> Dennis J. Avanci
>
Previous Topic:problem in wizard page display..
Next Topic:How is it the way to create a Plugin for debuggin????
Goto Forum:
  


Current Time: Thu Dec 26 13:53:13 GMT 2024

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

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

Back to the top