Skip to main content



      Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » touchpoint action when plugin updates
touchpoint action when plugin updates [message #830610] Tue, 27 March 2012 17:44 Go to next message
Eclipse UserFriend
Hi,

I know how to create a touchpoint action when the plugin is installed for the first time. This is done with following p2.inf settings which uses my own install feature:
metaRequirements.0.namespace=org.eclipse.equinox.p2.osgi   
metaRequirements.0.name=installAction    
metaRequirements.0.range=1.0   
  
instructions.configure=installAction();   
instructions.configure.import=featureproject.mytouchpoint.custominstall.installAction


However I also would like to add custom code when the plugin updates.
I also need the previous installed version of the installed plugin-bundle that is being updated

Could you give any example/help?

Regards,
Phil
Re: touchpoint action when plugin updates [message #830984 is a reply to message #830610] Wed, 28 March 2012 05:59 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I solved it myself. The problem was the range. However if the range is set with the more recent versions included it still aborts with an error that it can't install another touchpoint (when installing the custom plugin) so I just removed the range and now it seems to take the most recent one... Any information because of this behaviour would be welcome Smile

Regards,
Phil
Re: touchpoint action when plugin updates [message #1863663 is a reply to message #830984] Tue, 20 February 2024 03:50 Go to previous message
Eclipse UserFriend
How did you get the newly updated touchpoint code to run at the installation of the update? I noticed that performing an update on a plugin containing a touchpoint action executes the previously installed action and not the currently updated one. I tried your method of removing the range from metaRequirements and it didn't change anything. Please see also my thread here.
Previous Topic:Launch Java Agent in Eclipse PDE
Next Topic:Create Icon with Line number for every public static method in java file
Goto Forum:
  


Current Time: Thu Jul 24 12:49:31 EDT 2025

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

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

Back to the top