Revision f9dc4154
Added by Niels Hoffmann over 14 years ago
taxeditor-application/src/main/java/eu/etaxonomy/taxeditor/ApplicationWorkbenchAdvisor.java | ||
---|---|---|
1 | 1 |
package eu.etaxonomy.taxeditor; |
2 | 2 |
|
3 |
import org.eclipse.ui.PlatformUI; |
|
3 | 4 |
import org.eclipse.ui.application.IWorkbenchConfigurer; |
4 | 5 |
import org.eclipse.ui.application.IWorkbenchWindowConfigurer; |
5 | 6 |
import org.eclipse.ui.application.WorkbenchAdvisor; |
... | ... | |
39 | 40 |
configurer.setSaveAndRestore(true); |
40 | 41 |
} |
41 | 42 |
|
43 |
/* (non-Javadoc) |
|
44 |
* @see org.eclipse.ui.application.WorkbenchAdvisor#preStartup() |
|
45 |
*/ |
|
46 |
@Override |
|
47 |
public void preStartup() { |
|
48 |
// TODO Auto-generated method stub |
|
49 |
super.preStartup(); |
|
50 |
// XXX check for updates before starting up. |
|
51 |
// If an update is performed, restart. |
|
52 |
// if (P2Util.checkForUpdates()) |
|
53 |
// PlatformUI.getWorkbench().restart(); |
|
54 |
} |
|
55 |
|
|
42 | 56 |
/** |
43 | 57 |
* see: https://bugs.eclipse.org/bugs/show_bug.cgi?id=234252 |
44 | 58 |
*/ |
Also available in: Unified diff
p2izing the editor