Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » How to change plugin.xml programmatically?
How to change plugin.xml programmatically? [message #33576] Mon, 17 November 2008 15:36 Go to next message
Eclipse UserFriend
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 #33915 is a reply to message #33576] Wed, 19 November 2008 08:13 Go to previous messageGo to next message
Danail Nachev is currently offline Danail NachevFriend
Messages: 110
Registered: July 2009
Senior Member
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 #33961 is a reply to message #33915] Thu, 20 November 2008 10:49 Go to previous messageGo to next message
Eclipse UserFriend
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 #33980 is a reply to message #33961] Thu, 20 November 2008 11:53 Go to previous message
Danail Nachev is currently offline Danail NachevFriend
Messages: 110
Registered: July 2009
Senior Member
:) 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 08:13 Go to previous message
Danail Nachev is currently offline Danail NachevFriend
Messages: 110
Registered: July 2009
Senior Member
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 10:49 Go to previous message
Eclipse UserFriend
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 11:53 Go to previous message
Danail Nachev is currently offline Danail NachevFriend
Messages: 110
Registered: July 2009
Senior Member
:) 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
Previous Topic:project configuration
Next Topic:API Tooling Filter IDs Explained?
Goto Forum:
  


Current Time: Fri Mar 29 10:33:23 GMT 2024

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

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

Back to the top