Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Eclipse plugins(Eclipse plugins)
Eclipse plugins [message #725657] Thu, 15 September 2011 13:20 Go to next message
uma_ig88 is currently offline uma_ig88Friend
Messages: 2
Registered: September 2011
Location: India
Junior Member
I am trying to create a plugin to open the physical location of the file opened in the editor in windows.

How can get the path of that file ?
Re: Eclipse plugins [message #725915 is a reply to message #725657] Fri, 16 September 2011 07:36 Go to previous messageGo to next message
saurav sarkar is currently offline saurav sarkarFriend
Messages: 428
Registered: July 2009
Senior Member
Hi,

If the editor input is of type FileEditorInput , you will get a method called getFile() which is basically the input for the editor.Once you get the instance of file you should be able to get the file location.

cheers,
Saurav


Re: Eclipse plugins [message #728525 is a reply to message #725915] Fri, 23 September 2011 12:16 Go to previous message
uma_ig88 is currently offline uma_ig88Friend
Messages: 2
Registered: September 2011
Location: India
Junior Member
How do i get the instance of FileEditorInput ?
This file may be a js file, or a jsp file, or a java file, or any file for that matter.
Previous Topic:Flash Builder Plugin
Next Topic:Can't get eclipse and clearcase to work together
Goto Forum:
  


Current Time: Tue Mar 19 10:50:21 GMT 2024

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

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

Back to the top