Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Modifying plugin.xml file programmatically
Modifying plugin.xml file programmatically [message #330137] Wed, 16 July 2008 14:25 Go to next message
Eclipse UserFriend
Originally posted by: malloovidio.bluewin.ch

Hi all,

I have a project builder which, among other things, should modify
some parts of the plugin.xml file. More concretely, I want to automatically
add an additional enablement-condition to actions defined in the plugin.xml
file. Therefore, I wanted to ask whether there is some API to read in
specific extensions (the actions in the actionSet) and modify part of it
(the enablement)?

Thanks in advance for any help.

Regards,
Ovidio
Re: Modifying plugin.xml file programmatically [message #330219 is a reply to message #330137] Mon, 21 July 2008 16:36 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Ovidio Mallo wrote:
> Hi all,
>
> I have a project builder which, among other things, should modify
> some parts of the plugin.xml file. More concretely, I want to automatically
> add an additional enablement-condition to actions defined in the plugin.xml
> file. Therefore, I wanted to ask whether there is some API to read in
> specific extensions (the actions in the actionSet) and modify part of it
> (the enablement)?

Check out how the org.eclipse.pde.internal.ui.editor.PDEFormEditor does
it (complicated example, admittedly). Most changes seem to be made
using org.eclipse.pde.core.plugin.IPluginElement

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


Re: Modifying plugin.xml file programmatically [message #330226 is a reply to message #330137] Mon, 21 July 2008 19:14 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: zx.code9.com

Ovidio Mallo wrote:
> Hi all,
>
> I have a project builder which, among other things, should modify
> some parts of the plugin.xml file. More concretely, I want to automatically
> add an additional enablement-condition to actions defined in the plugin.xml
> file. Therefore, I wanted to ask whether there is some API to read in
> specific extensions (the actions in the actionSet) and modify part of it
> (the enablement)?

There's no public API to do this... here is a bug you may be interested in:

216037: [API] Way to modify MANIFEST files
https://bugs.eclipse.org/bugs/show_bug.cgi?id=216037

Cheers,

~ Chris
Re: Modifying plugin.xml file programmatically [message #330272 is a reply to message #330226] Thu, 24 July 2008 07:48 Go to previous message
Eclipse UserFriend
Originally posted by: malloovidio.bluewin.ch

Paul & Chris,

thanks a lot for the pointers. I have ended up using the IPluginElement
interface to get it running. As Chris noted, it needs internal API to
be used but for now I can live with that.

Thanks again for the help!

Best regards,
Ovidio


Chris Aniszczyk wrote:
> Ovidio Mallo wrote:
>> Hi all,
>>
>> I have a project builder which, among other things, should modify
>> some parts of the plugin.xml file. More concretely, I want to
>> automatically
>> add an additional enablement-condition to actions defined in the
>> plugin.xml
>> file. Therefore, I wanted to ask whether there is some API to read in
>> specific extensions (the actions in the actionSet) and modify part of it
>> (the enablement)?
>
> There's no public API to do this... here is a bug you may be interested in:
>
> 216037: [API] Way to modify MANIFEST files
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=216037
>
> Cheers,
>
> ~ Chris
Previous Topic:Question about Common Navigator and drop adapter assistants
Next Topic:Access to MessageDialog object
Goto Forum:
  


Current Time: Fri Apr 19 09:22:31 GMT 2024

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

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

Back to the top