Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How do you find the filename of an open file?
How do you find the filename of an open file? [message #276987] Thu, 02 December 2004 13:06 Go to next message
Eclipse UserFriend
Originally posted by: un_owen.hotmail.com

Hello everyone,

I currently have my custom TextEditor and I want to know what the name of
the file the editor is currently editing at runtime or at least the
name/location of the container the open file is in. Any suggestions are
welcome and thanks in advance.

Stephen Tse
Re: How do you find the filename of an open file? [message #277046 is a reply to message #276987] Fri, 03 December 2004 09:02 Go to previous message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Stephen Tse wrote:

>Hello everyone,
>
>I currently have my custom TextEditor and I want to know what the name of
>the file the editor is currently editing at runtime or at least the
>name/location of the container the open file is in. Any suggestions are
>welcome and thanks in advance.
>
>
You can get the editor input from the text editor and then test whether
it's an IFileEditorInput. If so you can get the file. Otherwise you can
get at least the name.

Dani

>Stephen Tse
>
>
>
>
Previous Topic:How to couple editor and views?
Next Topic:design "best practices" for IDE plug-ins?
Goto Forum:
  


Current Time: Wed Jul 16 13:03:20 EDT 2025

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

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

Back to the top