dcsimg
How can i know the path of the file opened in editor???
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   eclipse_programmer
Posted On:   Monday, April 21, 2008 12:43 AM

Hi


A text file is opened in eclipse editor. I want to display the path of that file and name of that file on the console in a action.


So how can i get the information of the file opened in editor??


please help me....

Re: How can i know the path of the file opened in editor???

Posted By:   luke_raeside  
Posted On:   Monday, April 21, 2008 08:01 AM

Hi,
I think I can get you started on this one but may not get you all the way to your full solution. If you use the System.getProperty("user.dir") call in your program you will be return the path to the project directory of your Eclipse project, its usually is the full path in the form of a String...to get the file name also may involve getting the file name and appending to this path, their may be another System.getProperty call that might do that for you....hope that helps a little.

Luke
About | Sitemap | Contact