Index: IDEApplication.java =================================================================== RCS file: /home/eclipse/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEApplication.java,v retrieving revision 1.21 diff -u -r1.21 IDEApplication.java --- IDEApplication.java 26 May 2004 20:43:12 -0000 1.21 +++ IDEApplication.java 27 May 2004 03:28:13 -0000 @@ -40,7 +40,7 @@ * * @since 3.0 */ -public final class IDEApplication implements IPlatformRunnable, IExecutableExtension { +public class IDEApplication implements IPlatformRunnable, IExecutableExtension { private static final String METADATA_FOLDER = ".metadata"; //$NON-NLS-1$ private static final String VERSION_FILENAME = "version.ini"; //$NON-NLS-1$ @@ -69,8 +69,7 @@ * @see org.eclipse.core.boot.IPlatformRunnable#run(java.lang.Object) */ public Object run(Object args) throws Exception { - // create and startup the display for the workbench - Display display = PlatformUI.createDisplay(); + Display display = createDisplay(); try { Shell shell = new Shell(display, SWT.ON_TOP); @@ -112,6 +111,15 @@ if (display != null) display.dispose(); } + } + + /** + * @return The Diaplay used my the application. + */ + protected Display createDisplay() { + // create and startup the display for the workbench + Display display = PlatformUI.createDisplay(); + return display; } /* (non-Javadoc)