[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [pde-dev] How to add an "extension" to the extension tab in the plugin, programmatically?
|
Sudhir,
do you want to make your extension visible in PDE manifest editor?
Not sure why would you want to do that, but I guess PDE editor builds the extensions tab contents from plug-ins schemas (xsd files), so there's no API for that. Better provide correct schemas. Very stubborn developer could look at PDE editor internals, but it's too hacky. Note that pde editor is not the only place that shows target platform extensions, Plug-in Registry view is the other one.
If you want to add your extension programatically in runtime, then org.eclipse.core.internal.registry.ExtensionRegistry seems to have some methods like addExtensionPoint, addExtension, etc. but I never used them.
Maybe someone could advise something better if you told more what you're trying to achieve.
Jacek
On Wed, Nov 25, 2009 at 8:34 AM, Sudhir Agrawal
<sagrawal@xxxxxxxxxxxxxxxxx> wrote:
Hi,
How to add an "extension" in the extensions
tab to a plugin programmatically?
I used the code
IPluginExtension extension =
fModel.getPluginFactory().createExtension();
extension.setId("");
extension.setInTheModel(false);
extension.setName("");
extension.setPoint("com.axway.xtp.test.core.componentClass");
fModel.getPluginBase().add(extension);
but it is not showing up, and in the debug mode its
schema is showing as "NULL".
please help.
Best
Regards,
Sudhir
Agrawal
Team Lead
Sopra India | A-67 Sector 64, Noida
201301
Tel: +91-120-4056100 | Fax: +91-120-4056122 | www.in.sopragroup.com
This message may contain confidential and proprietary material for the sole use of the intended recipient.
Any review or distribution by others is strictly prohibited.
If you are not the intended recipient, please contact the sender and delete all copies.
_______________________________________________
pde-dev mailing list
pde-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/pde-dev