Skip to main content



      Home
Home » Eclipse Projects » P2 » How to define custom p2 touchpoint actions correctly?
How to define custom p2 touchpoint actions correctly? [message #883155] Thu, 07 June 2012 19:57 Go to next message
Eclipse UserFriend
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?
Re: How to define custom p2 touchpoint actions correctly? [message #1007142 is a reply to message #883155] Mon, 04 February 2013 10:38 Go to previous messageGo to next message
Eclipse UserFriend
Hi,
Have you resolved this issue?

I'm facing the same problem.
Re: How to define custom p2 touchpoint actions correctly? [message #1568205 is a reply to message #1007142] Fri, 16 January 2015 15:42 Go to previous messageGo to next message
Eclipse UserFriend
Hi

I am facing the same issue. Can you guys post the solution if you found any?
Re: How to define custom p2 touchpoint actions correctly? [message #1781268 is a reply to message #1568205] Mon, 05 February 2018 05:48 Go to previous messageGo to next message
Eclipse UserFriend
A common cause of this issue is that the touchpoint bundle is not defined as a singleton.
Re: How to define custom p2 touchpoint actions correctly? [message #1781269 is a reply to message #1781268] Mon, 05 February 2018 05:55 Go to previous messageGo to next message
Eclipse UserFriend
Also check your namespace. You probably want 'org.eclipse.equinox.p2.iu'.
Re: How to define custom p2 touchpoint actions correctly? [message #1796490 is a reply to message #883155] Mon, 15 October 2018 04:32 Go to previous message
Eclipse UserFriend
I face the same issue, any solution ?
Previous Topic:How to trigger multiple changes via different p2.inf files in eclipse?
Next Topic:P2 repositories intermittent failures
Goto Forum:
  


Current Time: Sat Jun 14 14:25:26 EDT 2025

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

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

Back to the top