Skip to main content



      Home
Home » Newcomers » Newcomers » programatically finding plugins that extend my extension point
programatically finding plugins that extend my extension point [message #20700] Sat, 29 January 2005 17:11 Go to next message
Eclipse UserFriend
Originally posted by: 0kcc.qlink.queensu.ca

Hi,

I am pretty sure I declared my extension point correctly because when I
create a new plugin project I can extend my extension point, after setting
a dependency on the providing plugin. (Thanks Kim Horne)

Now i am trying to programatically (FAQ 86 from eclipsefaq.org) find the
plugin(s) that extend my extension point. What happens is I am able to
find the plugin I wrote that extends my extension point but when I try
"getConfigurationElements()" on the extension, it is always of length zero.
The code in FAQ 86 seems to require the getConfigurationElements() method
to return at least one object to be able to create an instance of the
plugin...


Another question I have is..
When you create an extension point, in the schema editor you have to
create an element and attributes such as: name, id and class. Say I added
another attribute (under an element that I added) called test and set it
to required, is it supposed to display on the Extending plugin's
'Extensions' tab of its plugin.xml?

Thanks in advance.
Re: programatically finding plugins that extend my extension point [message #20726 is a reply to message #20700] Sat, 29 January 2005 19:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Chris_Laffra.ca.ibm.com

In your runtime workbench, do Window > Show View > Other... > PDE Runtime >
Plugin Registry.
Then find your plugin and see who is extending it. If you see ones there,
you probably made a typo
in your discovery plugin.

--
Chris Laffra, http://eclipsefaq.org


"Kevin" <0kcc@qlink.queensu.ca> wrote in message
news:cth1m4$r5v$1@www.eclipse.org...
> Hi,
>
> I am pretty sure I declared my extension point correctly because when I
> create a new plugin project I can extend my extension point, after setting
> a dependency on the providing plugin. (Thanks Kim Horne)
>
> Now i am trying to programatically (FAQ 86 from eclipsefaq.org) find the
> plugin(s) that extend my extension point. What happens is I am able to
> find the plugin I wrote that extends my extension point but when I try
> "getConfigurationElements()" on the extension, it is always of length
zero.
> The code in FAQ 86 seems to require the getConfigurationElements() method
> to return at least one object to be able to create an instance of the
> plugin...
>
>
> Another question I have is..
> When you create an extension point, in the schema editor you have to
> create an element and attributes such as: name, id and class. Say I added
> another attribute (under an element that I added) called test and set it
> to required, is it supposed to display on the Extending plugin's
> 'Extensions' tab of its plugin.xml?
>
> Thanks in advance.
>
>
>
Re: programatically finding plugins that extend my extension point [message #20752 is a reply to message #20726] Sat, 29 January 2005 23:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: 0kcc.qlink.queensu.ca

Thanks for the quick reply.

I do see my main plugin that has the extension point declared.
Under the main plugin in the heirarchy (ie. contributed by:) I also see my
plugin that extends that extension point.
However I am not sure what you meant by my discovery plugin.


Chris Laffra wrote:

> In your runtime workbench, do Window > Show View > Other... > PDE Runtime >
> Plugin Registry.
> Then find your plugin and see who is extending it. If you see ones there,
> you probably made a typo
> in your discovery plugin.
Re: programatically finding plugins that extend my extension point [message #20765 is a reply to message #20752] Sun, 30 January 2005 00:09 Go to previous message
Eclipse UserFriend
Originally posted by: 0kcc.qlink.queensu.ca

Think I figured out my own problem for now..

On the extensions page I clicked ADD and added the extension but then I
had not created a new element from it.

thx!

kevin wrote:

> Thanks for the quick reply.

> I do see my main plugin that has the extension point declared.
> Under the main plugin in the heirarchy (ie. contributed by:) I also see my
> plugin that extends that extension point.
> However I am not sure what you meant by my discovery plugin.


> Chris Laffra wrote:

>> In your runtime workbench, do Window > Show View > Other... > PDE Runtime >
>> Plugin Registry.
>> Then find your plugin and see who is extending it. If you see ones there,
>> you probably made a typo
>> in your discovery plugin.
Previous Topic:Multiple 'targets'
Next Topic:jsp / servlet Howto
Goto Forum:
  


Current Time: Tue Jul 22 17:52:17 EDT 2025

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

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

Back to the top