Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 11177 Details for
Bug 64276
[RCP] Allow subclassing of IDEApplication
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Patch for IDEApplication to allow subclassing
IDEApplication.patch (text/plain), 1.37 KB, created by
Michael Scharf
on 2004-05-26 23:44:54 EDT
(
hide
)
Description:
Patch for IDEApplication to allow subclassing
Filename:
MIME Type:
Creator:
Michael Scharf
Created:
2004-05-26 23:44:54 EDT
Size:
1.37 KB
patch
obsolete
>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)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 64276
: 11177