Modifying plugin.xml file programmatically [message #330137] |
Wed, 16 July 2008 10:25  |
Eclipse User |
|
|
|
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 #330272 is a reply to message #330226] |
Thu, 24 July 2008 03:48  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03255 seconds