how to get current file [message #213801] |
Tue, 05 June 2007 01:51 |
Eclipse User |
|
|
|
Originally posted by: gmguyx.gmail.com
I'm creating a plugin to do a very simple thing: open the currently edited
file in an external application. However, I can't seem to find anything in
the eclipse help manual which tells me how to find the file which is
currently open. Does anybody know how to do this? Thank you.
|
|
|
Re: how to get current file [message #213831 is a reply to message #213801] |
Tue, 05 June 2007 05:24 |
Eclipse User |
|
|
|
Originally posted by: hema.gandhi.appulse.com
YM wrote:
> I'm creating a plugin to do a very simple thing: open the currently edited
> file in an external application. However, I can't seem to find anything in
> the eclipse help manual which tells me how to find the file which is
> currently open. Does anybody know how to do this? Thank you.
you can get it from eclipse WorkBench's ActiveWindow
|
|
|
|
Re: how to get current file [message #213939 is a reply to message #213837] |
Tue, 05 June 2007 19:46 |
Eclipse User |
|
|
|
Originally posted by: gmguyx.gmail.com
Thanks for the quick response Hema and Daniel. The
ActiveWindow/IWorkbenchWindow is exactly what I'm looking for and I also
found many helpful search results in this newsgroup discussing this class.
Thanks again!
|
|
|
Powered by
FUDForum. Page generated in 0.08083 seconds