How to change plugin.xml programmatically? [message #33576] |
Mon, 17 November 2008 10:36  |
Eclipse User |
|
|
|
Originally posted by: news2008.torsten-keil.net
I wan't to provide a function (wizard or editor) to add activities
(extensions) into the plugin.xml of a certain workspace project.
With
PluginRegistry.getWorkspaceModels(); and PluginRegistry.getexternalModels();
i can get the plugin models and read the extensions defined. So i'm able
to get all view IDs for example. But how can i add a new activity for
it? The models loaded via PluginRegistry are read-only and most of the
classes within PDE are internal.
Is there a way to add new extensions programmatically? I didn't really
want to go the XML way and parse/write the plugin.xml file if there
would be an easier solution to achieve this by already existing API.
Or is it possible to extend the manifest editor to add such a function?
Thanks in advance,
Torsten
|
|
|
|
|
Re: How to change plugin.xml programmatically? [message #33980 is a reply to message #33961] |
Thu, 20 November 2008 06:53  |
Eclipse User |
|
|
|
:) I bet you it is not an official Eclipse package. This is a helper
class in one of our products.
This is the real thing:
org.eclipse.pde.internal.ui.util.PDEModelUtility
Double-checked, this class is the correct one:)
Torsten Keil wrote:
> Danail Nachev schrieb:
>> Have a look at com.prosyst.eclipse.cdeditor.text.PDETextModelHelper
>> class inside PDE.
>
> Could you point me where to find this class? I can't find it within PDE
> and it seems not to be an official eclipse package.
>
> Thanks,
> Torsten
|
|
|
Re: How to change plugin.xml programmatically? [message #585606 is a reply to message #33576] |
Wed, 19 November 2008 03:13  |
Eclipse User |
|
|
|
Have a look at com.prosyst.eclipse.cdeditor.text.PDETextModelHelper
class inside PDE.
Unfortunately, PDE doesn't expose too much API, because it is not so
widely required. If need to rely on internal details in order to modify
workspace plugin models.
The PDE team, correct me if I'm wrong.
BR,
Danail Nachev
Torsten Keil wrote:
> I wan't to provide a function (wizard or editor) to add activities
> (extensions) into the plugin.xml of a certain workspace project.
> With
> PluginRegistry.getWorkspaceModels(); and PluginRegistry.getexternalModels();
> i can get the plugin models and read the extensions defined. So i'm able
> to get all view IDs for example. But how can i add a new activity for
> it? The models loaded via PluginRegistry are read-only and most of the
> classes within PDE are internal.
>
> Is there a way to add new extensions programmatically? I didn't really
> want to go the XML way and parse/write the plugin.xml file if there
> would be an easier solution to achieve this by already existing API.
>
> Or is it possible to extend the manifest editor to add such a function?
>
> Thanks in advance,
> Torsten
|
|
|
Re: How to change plugin.xml programmatically? [message #585633 is a reply to message #33915] |
Thu, 20 November 2008 05:49  |
Eclipse User |
|
|
|
Originally posted by: news2008.torsten-keil.net
Danail Nachev schrieb:
> Have a look at com.prosyst.eclipse.cdeditor.text.PDETextModelHelper
> class inside PDE.
Could you point me where to find this class? I can't find it within PDE
and it seems not to be an official eclipse package.
Thanks,
Torsten
|
|
|
Re: How to change plugin.xml programmatically? [message #585643 is a reply to message #33961] |
Thu, 20 November 2008 06:53  |
Eclipse User |
|
|
|
:) I bet you it is not an official Eclipse package. This is a helper
class in one of our products.
This is the real thing:
org.eclipse.pde.internal.ui.util.PDEModelUtility
Double-checked, this class is the correct one:)
Torsten Keil wrote:
> Danail Nachev schrieb:
>> Have a look at com.prosyst.eclipse.cdeditor.text.PDETextModelHelper
>> class inside PDE.
>
> Could you point me where to find this class? I can't find it within PDE
> and it seems not to be an official eclipse package.
>
> Thanks,
> Torsten
|
|
|
Powered by
FUDForum. Page generated in 0.05022 seconds