Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » How to start a plugin by an event trigger
icon3.gif  How to start a plugin by an event trigger [message #1727434] Wed, 23 March 2016 06:49 Go to next message
Dilini madd is currently offline Dilini maddFriend
Messages: 2
Registered: March 2016
Junior Member
I want to develop an Eclipse plugin where it would be started once an error event is triggered in the IDE. Is it possible to start up a plugin by an event? And if so where should I subscribe as an event listener??
Re: How to start a plugin by an event trigger [message #1727499 is a reply to message #1727434] Wed, 23 March 2016 11:20 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 23.03.2016 um 12:04 schrieb Dilini madd:
> I want to develop an Eclipse plugin where it would be started once an error event is triggered in the IDE. Is it
> possible to start up a plugin by an event? And if so where should I subscribe as an event listener??
You must first start your bundle early and then, from its start() method, register a log listener, see
org.eclipse.core.runtime.Platform.addLogListener(ILogListener). Don't foget to unregister your listener in the bundle's
stop() method.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Re: How to start a plugin by an event trigger [message #1727709 is a reply to message #1727499] Fri, 25 March 2016 15:17 Go to previous message
Dilini madd is currently offline Dilini maddFriend
Messages: 2
Registered: March 2016
Junior Member
Hey thanks a lot!! This worked for me Cool
Previous Topic:How do I change highlighting of C++ preprocessor directives?
Next Topic:Scrapbook Page
Goto Forum:
  


Current Time: Thu Apr 25 16:14:59 GMT 2024

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

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

Back to the top