[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: How can i know the path of the file opened in editor???

Assuming that the editor has opened a workspace file:

IEditorPart editor = ...
IFileEditorInput editorInput = (IFileEditorInput)editor.getEditorInput();
IPath path = editorInput.getFile().getLocation();


--

 - Prakash

Eclipse Tips: http://blog.cypal-solutions.com
Eclipse Search: http://www.cypal.in/eclipsesearch



rajesh wrote:
Hi A text/any file is opened in eclipse editor. I want to display the path and name of that file on the console in a action class written by me.
So how can i get the information of the file opened in editor currently ? ?
please help me....