Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>In general, it is possible to provide update functionality in RCP applications. Today the simplest way is to use p2 for this.</p> <p>For this reason you will be needing an update site, and a p2-enabled RCP product.</p> <p>About features, plug-ins and dependencies: a feature is basically a container for plug-ins; plug-ins basically contribute the code to execute. A feature contains plug-ins, and automatically depends on all the plug-ins that the contained plug-ins depend on, so there is no need to add the contained projects as dependencies to the feature. On the other hand, the plug-in project should and must not know about the features that contain them - that would introduce dependency cycles that are impossible to manage.</p> <p>About update site projects: don't use them - they are a legacy project type used by the old Update manager - for p2 it is better to simply export features. For details I shamelessly offer my <a href="http://cubussapiens.hu/2010/08/update-sites-in-the-p2-era/" rel="nofollow">own blog post</a> from last year.</p> <p>Then you can add the required p2 elements to your application - basically you have to make sure that the p2 plug-ins are present and executed during runtime. You can either reuse the p2 update GUI from the IDE, or you can roll your own. Details about this functionality is found in the <a href="http://wiki.eclipse.org/Equinox/p2/Adding_Self-Update_to_an_RCP_Application" rel="nofollow">Eclipse wiki</a> and in <a href="http://aniefer.blogspot.com/2009/03/building-p2-rcp-products-in-eclipse.html" rel="nofollow">Andrew Niefers</a> blog post (also linked from the wiki page).</p> <p><strong>Update</strong>: and a <a href="http://www.vogella.de/blog/2011/10/20/eclipse-rcp-updates-with-p2-got-sooo-much-easier/" rel="nofollow">brand new corresponding post</a> on vogella.de</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload