Get a filename with the complete path? [message #157939] |
Mon, 17 November 2003 19:14 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.02937 seconds