Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Perform project updates during/post plugin update
Perform project updates during/post plugin update [message #333655] Fri, 19 December 2008 21:02 Go to next message
Chris W is currently offline Chris WFriend
Messages: 33
Registered: July 2009
Member
When a new version of a plugin is install, what is the suggested way to
update the plugin's associated projects?

Are there hooks/APIs that the new plugin may implement that are executed
post-install?

Thank you.
Re: Perform project updates during/post plugin update [message #333734 is a reply to message #333655] Tue, 30 December 2008 13:58 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Chris W wrote:
> When a new version of a plugin is install, what is the suggested way to
> update the plugin's associated projects?
>
> Are there hooks/APIs that the new plugin may implement that are executed
> post-install?

I haven't seen any, at least not exposed through p2.

Another option would be to use your plugin
org.eclipse.core.runtime.Plugin.getStateLocation() and check for a file,
or save the information in your dialog settings if you are a UI plugin.

Then in your start(BundleContext) method you can check to see if this is
the first run, and perform your upgrades (or schedule a Job to do so).

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm


Previous Topic:Memory consumption of virtual TableViewers
Next Topic:Activity id and Pattern
Goto Forum:
  


Current Time: Sat Jul 27 12:32:45 GMT 2024

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

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

Back to the top