Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 23:57 Go to next message
Yufen Kuo is currently offline Yufen KuoFriend
Messages: 7
Registered: July 2009
Junior Member
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 15:38 Go to previous messageGo to next message
Eugene Kondrashev is currently offline Eugene KondrashevFriend
Messages: 8
Registered: January 2012
Junior Member
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 20:42 Go to previous messageGo to next message
Surya Vanaparthy is currently offline Surya VanaparthyFriend
Messages: 1
Registered: January 2015
Junior Member
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 10:48 Go to previous messageGo to next message
Nigel Westbury is currently offline Nigel WestburyFriend
Messages: 18
Registered: July 2009
Junior Member
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 10:55 Go to previous messageGo to next message
Nigel Westbury is currently offline Nigel WestburyFriend
Messages: 18
Registered: July 2009
Junior Member
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 08:32 Go to previous message
ilke Muhtar is currently offline ilke MuhtarFriend
Messages: 47
Registered: September 2015
Member
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 Nov 09 01:39:53 GMT 2024

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

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

Back to the top