How to get a plugins class [message #275418] |
Mon, 08 November 2004 11:05  |
Eclipse User |
|
|
|
Originally posted by: dhavrda.motive.com
I have a plug-in that will need to access other plugins plug-in class
dynamically. Is there a way to 1) get the class name of a plug-in based on
the plug-in id? 2) is there a way to load the plug-in/class and call a
method on the plug-in?
I have tried Platform.getBundle("plug-in id") and tried bundle.start().
This fails telling me the activator for that plug-in is invalid. What do I
have to do to make the activator valid?
thx
|
|
|
|
|
|
|
Re: How to get a plugins class [message #275566 is a reply to message #275460] |
Tue, 09 November 2004 09:56  |
Eclipse User |
|
|
|
Originally posted by: Lamont_Gilbert.rigidsoftware.com
Rich Kulp wrote:
> Use extension points instead. The extension can provide the id and a
> class that you can instantiate from the plugin. (See
> IConfigurationElement.createExecutableExtension). This class would be
> the node. Each plugin would provide the extension to the extension point
> along with an id.
>
Yes, and it sounds like he is going to want to create 'features' and not
'plugins'. Not to worry, you can change a plugin into a feature
relatively easy. The difference is a feature can not stand alone and
depends on the presence of another plugin. Which seems to be what you
have described.
--
Respectfully,
CL Gilbert
"Verily, verily, I say unto you, He that entereth not by the door() into
the sheepfold{}, but climbeth up some other *way, the same is a thief
and a robber." John 10:1
GnuPG Key Fingerprint:
82A6 8893 C2A1 F64E A9AD 19AE 55B2 4CD7 80D2 0A2D
For a free Java interface to Freechess.org see
http://www.rigidsoftware.com/Chess/chess.html
|
|
|
Powered by
FUDForum. Page generated in 0.07792 seconds