Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSusan Franklin2009-03-17 17:57:10 -0400
committerSusan Franklin2009-03-17 17:57:10 -0400
commitcd3afb59e0b251f2e297fbbf176b7687eb1b8a82 (patch)
tree596882e37ca24b97053b1272809f253bebaedfb9 /examples
parentac42a2506465806af45e04c844a586eedf39bea4 (diff)
downloadrt.equinox.p2-cd3afb59e0b251f2e297fbbf176b7687eb1b8a82.tar.gz
rt.equinox.p2-cd3afb59e0b251f2e297fbbf176b7687eb1b8a82.tar.xz
rt.equinox.p2-cd3afb59e0b251f2e297fbbf176b7687eb1b8a82.zip
tutorial version
Diffstat (limited to 'examples')
-rw-r--r--examples/org.eclipse.equinox.p2.examples.rcp.prestartupdate/src/org/eclipse/equinox/p2/examples/rcp/prestartupdate/ApplicationWorkbenchAdvisor.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/org.eclipse.equinox.p2.examples.rcp.prestartupdate/src/org/eclipse/equinox/p2/examples/rcp/prestartupdate/ApplicationWorkbenchAdvisor.java b/examples/org.eclipse.equinox.p2.examples.rcp.prestartupdate/src/org/eclipse/equinox/p2/examples/rcp/prestartupdate/ApplicationWorkbenchAdvisor.java
index a3e5d6b05..c5f04b9b9 100644
--- a/examples/org.eclipse.equinox.p2.examples.rcp.prestartupdate/src/org/eclipse/equinox/p2/examples/rcp/prestartupdate/ApplicationWorkbenchAdvisor.java
+++ b/examples/org.eclipse.equinox.p2.examples.rcp.prestartupdate/src/org/eclipse/equinox/p2/examples/rcp/prestartupdate/ApplicationWorkbenchAdvisor.java
@@ -20,6 +20,8 @@ public class ApplicationWorkbenchAdvisor extends WorkbenchAdvisor {
* @see org.eclipse.ui.application.WorkbenchAdvisor#preStartup()
*/
public void preStartup() {
+ // XXX check for updates before starting up.
+ // If an update is performed, restart.
if (P2Util.checkForUpdates())
PlatformUI.getWorkbench().restart();
}

Back to the top