Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How to get an instance of the active editor fromr workbench?
How to get an instance of the active editor fromr workbench? [message #287187] Sun, 26 June 2005 15:57 Go to next message
Eclipse UserFriend
Originally posted by: Langerjo.de.ibm.com

Hi guys,

my problem is i need to get the file the actual editor is using from an
external plugin.

I don 't know how to do this.

The command must look something like this i think
MyPlugin.getDefault().getworkbench.getActiveEditor().getEdit orInput()

but i don't know how exactly, Anbody an idea?

Thanks in advance

Johannes
Re: How to get an instance of the active editor fromr workbench? [message #287190 is a reply to message #287187] Mon, 27 June 2005 02:58 Go to previous message
Eclipse UserFriend
Originally posted by: Langerjo.de.ibm.com

Found it:-)

The command i've searched looks like this:

TestPlugin.getDefault().getWorkbench().getActiveWorkbenchWin dow().getActivePage().getActiveEditor()

Bye Johannes

Johannes Langer wrote:
> Hi guys,
>
> my problem is i need to get the file the actual editor is using from an
> external plugin.
>
> I don 't know how to do this.
>
> The command must look something like this i think
> MyPlugin.getDefault().getworkbench.getActiveEditor().getEdit orInput()
>
> but i don't know how exactly, Anbody an idea?
>
> Thanks in advance
>
> Johannes
Previous Topic:Context Menu in PropertySheet
Next Topic:Shutting down workbench
Goto Forum:
  


Current Time: Mon Jun 02 23:21:38 EDT 2025

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

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

Back to the top