NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

How to listen to plugin activation

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users
View previous topic :: View next topic  
Author Message
vra5107



Joined: 15 Mar 2011
Posts: 49

PostPosted: Sat Jan 07, 2012 4:35 am    Post subject: How to listen to plugin activation Reply with 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
Back to top
Enrico Scantamburlo
Posted via mailing list.





PostPosted: Mon Jan 09, 2012 11:08 am    Post subject: [platform-dev] Re: How to listen to plugin activation Reply with quote

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.





PostPosted: Mon Jan 09, 2012 12:20 pm    Post subject: [platform-dev] Re: How to listen to plugin activation Reply with quote

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

PostPosted: Tue May 29, 2012 12:22 am    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo