Lines 40-46
Link Here
|
40 |
* |
40 |
* |
41 |
* @since 3.0 |
41 |
* @since 3.0 |
42 |
*/ |
42 |
*/ |
43 |
public final class IDEApplication implements IPlatformRunnable, IExecutableExtension { |
43 |
public class IDEApplication implements IPlatformRunnable, IExecutableExtension { |
44 |
|
44 |
|
45 |
private static final String METADATA_FOLDER = ".metadata"; //$NON-NLS-1$ |
45 |
private static final String METADATA_FOLDER = ".metadata"; //$NON-NLS-1$ |
46 |
private static final String VERSION_FILENAME = "version.ini"; //$NON-NLS-1$ |
46 |
private static final String VERSION_FILENAME = "version.ini"; //$NON-NLS-1$ |
Lines 69-76
Link Here
|
69 |
* @see org.eclipse.core.boot.IPlatformRunnable#run(java.lang.Object) |
69 |
* @see org.eclipse.core.boot.IPlatformRunnable#run(java.lang.Object) |
70 |
*/ |
70 |
*/ |
71 |
public Object run(Object args) throws Exception { |
71 |
public Object run(Object args) throws Exception { |
72 |
// create and startup the display for the workbench |
72 |
Display display = createDisplay(); |
73 |
Display display = PlatformUI.createDisplay(); |
|
|
74 |
|
73 |
|
75 |
try { |
74 |
try { |
76 |
Shell shell = new Shell(display, SWT.ON_TOP); |
75 |
Shell shell = new Shell(display, SWT.ON_TOP); |
Lines 112-117
Link Here
|
112 |
if (display != null) |
111 |
if (display != null) |
113 |
display.dispose(); |
112 |
display.dispose(); |
114 |
} |
113 |
} |
|
|
114 |
} |
115 |
|
116 |
/** |
117 |
* @return The Diaplay used my the application. |
118 |
*/ |
119 |
protected Display createDisplay() { |
120 |
// create and startup the display for the workbench |
121 |
Display display = PlatformUI.createDisplay(); |
122 |
return display; |
115 |
} |
123 |
} |
116 |
|
124 |
|
117 |
/* (non-Javadoc) |
125 |
/* (non-Javadoc) |