Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Resource editor opened event?
Resource editor opened event? [message #541931] Wed, 23 June 2010 09:13 Go to next message
Andrey is currently offline AndreyFriend
Messages: 10
Registered: May 2010
Junior Member
Hi,

Is there any type of event to listen openings of editors for any files/resources? Also I expect this event to be fired for restored editors when workbench is started.

Thanks!
Re: Resource editor opened event? [message #541973 is a reply to message #541931] Wed, 23 June 2010 12:30 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Andrey wrote:
> Hi,
>
> Is there any type of event to listen openings of editors for any
> files/resources? Also I expect this event to be fired for restored
> editors when workbench is started.

You probably want to use IWorkbenchPage#addPartListener(IPartListener2
listener);

That will tell you when parts are open, and you can check them to see if
they're editors.

PW



--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Re: Resource editor opened event? [message #542250 is a reply to message #541973] Thu, 24 June 2010 11:21 Go to previous message
Andrey is currently offline AndreyFriend
Messages: 10
Registered: May 2010
Junior Member
Thanks, that works!
Previous Topic:Problem updating to final helios release from RC6
Next Topic:Second WorkbenchWindow instance which is fully customizable
Goto Forum:
  


Current Time: Sun Dec 21 11:21:09 GMT 2014

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

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