Hi Devs,
I started to write my own touchpoint to edit XML file when new features get
installed, using p2.inf , I configured my touchpoint in plugin.xml file but
this will not available when ActionManger call getActionMap() here is the
code segment i am refering
IExtensionPoint point =
RegistryFactory.getRegistry().getExtensionPoint(EngineActivator.ID,
PT_ACTIONS);
IExtension[] extensions = point.getExtensions();
How can i register my touchpoint ? Following are the configurations I used,
appreciate any help on this.
in my plugin.xm i add following configurations
<extension
point="org.eclipse.equinox.p2.engine.actions">
<action
class="my.custom.p2.touchpoint.actions.xml.AddElementAction"
name="addElement"
touchpointType="org.eclipse.equinox.p2.osgi"
tochpointVersion="1.0.0"
version="1.0.0">
</action>
</extension>
I
added following to p2.inf file of the feature which get installed
metaRequirements.0.namespace=org.eclipse.equinox.p2.osgi
metaRequirements.0.name=my.custom.p2.touchpoint
metaRequirements.0.range=[4.2.0-SNAPSHOT,4.3)
instructions.configure =
my.custom.p2.touchpoint.addElement(file:/home/shameera/Desktop/sample.xml,xpath:/configuration/param1,element:<node>value</node>);\
Thanks,
Shameera.
--
Best Regards,
Shameera Rathnayaka.
email: shameera AT apache.org , shameerainfo AT gmail.com
Blog : http://shameerarathnayaka.blogspot.com/
_______________________________________________
p2-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/p2-dev