Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » When does the plugin actually get activated
When does the plugin actually get activated [message #309544] Mon, 30 October 2006 20:11 Go to next message
Keith McQueen is currently offline Keith McQueenFriend
Messages: 73
Registered: July 2009
Member
I have a plugin that does not seem to be activated even when enclosed
classes have been loaded and instantiated. I thought that if a class
from the plugin were loaded and instantiated, then the plugin/bundle
must be activated. But this seems clearly *not* to be the case. I run
into this when I ask the platform adapter manager to adapt an object.
It won't load the adapter factory because the plugin/bundle is not yet
active, even though the object I am trying to adapt is from the same
plugin/bundle. Is there something that needs to be set for the
plugin/bundle to activate when its classes are loaded/instantiated?

Thanks,
Keith
Re: When does the plugin actually get activated [message #309546 is a reply to message #309544] Mon, 30 October 2006 22:28 Go to previous message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
If you add the header "Eclipse-LazyStart: true" to your manifest, then
your bundle will get activated when a class is loaded from it.

-Andrew
Keith McQueen wrote:
> I have a plugin that does not seem to be activated even when enclosed
> classes have been loaded and instantiated. I thought that if a class
> from the plugin were loaded and instantiated, then the plugin/bundle
> must be activated. But this seems clearly *not* to be the case. I run
> into this when I ask the platform adapter manager to adapt an object. It
> won't load the adapter factory because the plugin/bundle is not yet
> active, even though the object I am trying to adapt is from the same
> plugin/bundle. Is there something that needs to be set for the
> plugin/bundle to activate when its classes are loaded/instantiated?
>
> Thanks,
> Keith
Previous Topic:Open View NOT Editor
Next Topic:"Wizard Closing"
Goto Forum:
  


Current Time: Thu Jul 18 04:36:12 GMT 2024

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

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

Back to the top