NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
vra5107
Joined: 15 Mar 2011 Posts: 49
|
Posted: Sat Jan 07, 2012 4:35 am Post subject: How to listen to plugin activation |
|
|
Hi
Netbeans Platform API currently doesn't allow plugins to force restart on module re-activation. So, the alternative as Jaroslav Tulach suggested is to prompt restart. But to be able to do this, one would need to be able to listen to module activation events.
Does any body know of any events that will be published when module activated.
Thanks
Venkat |
|
| Back to top |
|
 |
Enrico Scantamburlo Posted via mailing list.
|
Posted: Mon Jan 09, 2012 11:08 am Post subject: [platform-dev] Re: How to listen to plugin activation |
|
|
have your plugin put something in the global lookup and listen to that event.
On Sat, Jan 7, 2012 at 5:35 AM, vra5107 <address-removed ([email]address-removed[/email])> wrote:
| Quote: | Hi
Netbeans Platform API currently doesn't allow plugins to force restart on module re-activation. So, the alternative as Jaroslav Tulach suggested is to prompt restart. But to be able to do this, one would need to be able to listen to module activation events.
Does any body know of any events that will be published when module activated.
Thanks
Venkat
|
--
Enrico Scantamburlo
"For people that try to compensate the lack of capacity with more effort, there is no limit to the things they cannot do" |
|
| Back to top |
|
 |
Jaroslav Tulach Posted via mailing list.
|
Posted: Mon Jan 09, 2012 12:20 pm Post subject: [platform-dev] Re: How to listen to plugin activation |
|
|
| Quote: | ## 7. 1. 2012 05:35:23 ##<
Hi
Netbeans Platform API currently doesn't allow plugins to force
restart on module re-activation. So, the alternative as Jaroslav Tulach
suggested is to prompt restart. But to be able to do this, one would need
to be able to listen to module activation events.
Does any body know of any events that will be published when
module activated.
|
ModuleInstaller.restored()
-jt |
|
| Back to top |
|
 |
vra5107
Joined: 15 Mar 2011 Posts: 49
|
Posted: Tue May 29, 2012 12:22 am Post subject: |
|
|
ModuleInstall.restored() is called every time netbeans starts as well.
Is there an event that is fired when plugin is activated and deactivated ? |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|