Plugins and Extensions [message #68488] |
Thu, 08 June 2006 09:38 |
Eclipse User |
|
|
|
Originally posted by: andrew.easter.gmail.com
Does a plugin have to contribute an extension? For example I want to write a plugin that simply discovers a bunch of extensions that contribute factory classes for creating objects and provides a simple interface for retrieving objects created by the factories.
e.g.
- extension-point : com.example.ExampleFactory
- Factory interface allows creation of Example objects.
- My plugin queries extension registry and gets all ExampleFactory extensions.
- My plugin then provides an interface to get access to all Example objects created from the ExampleFactory extensions.
The point is that my plugin doesn't extend any obvious extension point defined by the Eclipse Platform so can I just discard the "plugin.xml" file?
Is this a common requirement for Eclipse development? I am assuming that something like the SWT plugin is similar.
Thanks,
Andrew Easter
|
|
|
Re: Plugins and Extensions [message #68501 is a reply to message #68488] |
Thu, 08 June 2006 10:03 |
Eclipse User |
|
|
|
Originally posted by: yavin.gmx.com
Andrew Easter schrieb:
> The point is that my plugin doesn't extend any obvious extension point defined by the Eclipse Platform so can I just discard the "plugin.xml" file?
No you can't. The definition of the extension point is in the plugin.xml.
|
|
|
Powered by
FUDForum. Page generated in 0.04263 seconds