Skip to main content



      Home
Home » Newcomers » Newcomers » how to get current file
how to get current file [message #213801] Mon, 04 June 2007 21:51 Go to next message
Eclipse UserFriend
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 01:24 Go to previous messageGo to next message
Eclipse UserFriend
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 #213837 is a reply to message #213801] Tue, 05 June 2007 02:27 Go to previous messageGo to next message
Eclipse UserFriend
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.
>
Check the newsgroup archives. This has been answered a few times already.

Dani
Re: how to get current file [message #213939 is a reply to message #213837] Tue, 05 June 2007 15:46 Go to previous message
Eclipse UserFriend
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!
Previous Topic:JUnit 4 Tests With Compile Errors Do Not Run
Next Topic:problem: install plug-in for Axis2 Codegen
Goto Forum:
  


Current Time: Wed May 21 15:55:10 EDT 2025

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

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

Back to the top