Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » how to get current file
how to get current file [message #213801] Tue, 05 June 2007 01: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 05: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 06:27 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
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 19: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: Fri Apr 26 15:40:08 GMT 2024

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

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

Back to the top