Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Discovering the defining plugin
Discovering the defining plugin [message #443955] Tue, 07 February 2006 10:03 Go to next message
Eclipse UserFriend
Originally posted by: huffordkevin.johndeere.com

Does anyone know how to programatically discover the defining plugin for a
product?

I see that you can discover the defining bundle with something like this:

String bundleName =
Platform.getProduct().getDefiningBundle().getSymbolicName();

Bundle bundle = Platform.getBundle(bundleName);


But once I have the bundle is there any way to get a reference to it's
associated Plugin

Thanks,

-Kevin
Re: Discovering the defining plugin [message #443958 is a reply to message #443955] Tue, 07 February 2006 10:56 Go to previous messageGo to next message
Eclipse UserFriend
Kevin Hufford wrote:
> Does anyone know how to programatically discover the defining plugin for
> a product?
>
> I see that you can discover the defining bundle with something like this:
>
> String bundleName =
> Platform.getProduct().getDefiningBundle().getSymbolicName();
>
> Bundle bundle = Platform.getBundle(bundleName);
>
>
> But once I have the bundle is there any way to get a reference to it's
> associated Plugin

What does "a reference to it's associated Plugin" mean? It's manifest?
It's plugin.xml? Or do you mean you want to access the activator class
so you can do something like MyPlugin.getDefault()?

To get the activator class you could find the class name from the bundle
header, ask the bundle to load the class, and use reflection to run the
getDefault() method.

Later,
PW
Re: Discovering the defining plugin [message #443965 is a reply to message #443958] Tue, 07 February 2006 13:57 Go to previous message
Eclipse UserFriend
Originally posted by: huffordkevin.johndeere.com

Yea, I wanted to access the activator class.

Thanks for your response, I'll give that a try.

-Kevin
Previous Topic:how to kill a job
Next Topic:JOGL in RCP
Goto Forum:
  


Current Time: Thu Jul 03 20:22:33 EDT 2025

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

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

Back to the top