How to define custom p2 touchpoint actions correctly? [message #883155] |
Thu, 07 June 2012 19:57  |
Eclipse User |
|
|
|
I am trying to define my own custom p2 touchpoint actions. But I am always getting "Not Action found for:
com.company.my.touchpoint.actiontype.my_custom_action" during install phase.
In the plugin.xml, I added the following extensions:
<plugin>
<extension point="org.eclipse.equinox.p2.engine.touchpoints" id="my.id" name="Eclipse Touchpoint">
<touchpoint type="com.company.my.touchpoint.actiontype" class="org.eclipse.equinox.internal.p2.touchpoint.eclipse.EclipseTouchpoint" version="1.0"/>
</extension>
<extension point="org.eclipse.equinox.p2.engine.actions">
<action
class="com.company.touchpoints.CustomAction"
name="my_custom_action"
touchpointType="com.company.my.touchpoint.actiontype"
touchpointVersion="1.0"
version="1.0">
</action>
</extension>
</plugin>
in the plugin's p2.inf:
provides.0.namespace=org.eclipse.equinox.p2.engine.actions
provides.0.name=my_custom_action
provides.0.version=1.0
and in plugin that wishes to use this custom touchpoint action's p2.inf, I have defined:
metaRequirements.0.namespace=org.eclipse.equinox.p2.engine.actions
metaRequirements.0.name=my_custom_action
metaRequirements.0.range=1.0
instructions.install = my_custom_action();
instructions.install.import = com.company.my.touchpoint.actiontype.my_custom_action;
Is there anything I am missing for defining custom p2 touchpoint actions?
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05113 seconds