[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform] Re: Generating extension point XML
|
- From: Paul Webster <pwebster@xxxxxxxxxx>
- Date: Wed, 21 Nov 2007 14:37:24 -0500
- Newsgroups: eclipse.platform
- Organization: EclipseCorner
- User-agent: Thunderbird 1.5.0.12 (X11/20070529)
You can (with some hand waving) generate programmatic extensions into
the IExtensionRegistry ... but those aren't persisted. Although if you
hack the registry you can persist them as well :-)
If you are already working with the PDE editor, you can provide
templates (like the actionSet Hello World template).
The templates have API that can update a plugin.xml with elements and
attributes.
Of course, you can always have a look at
org.eclipse.pde.internal.ui.editor.plugin.ManifestEditor in
org.eclipse.pde.ui. From there it reads and modifies a plugin.xml.
Depending on how dynamic your plugin.xml is, you can always use string
builders or something like XMLMemento to create the XML and then insert
it (using input and output stream) into the plugin.xml directly ... this
is low level, though.
Later,
PW
--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/workbench.htm