[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???
|
- From: "Prakash G.R." <grprakash@xxxxxxxxx>
- Date: Mon, 21 Apr 2008 12:45:47 +0530
- Newsgroups: eclipse.platform.rcp
- Organization: EclipseCorner
- User-agent: Thunderbird 2.0.0.12 (Macintosh/20080213)
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....