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 55146 Details for
Bug 166972
[Workbench] Migrate org.eclipse.ui.ide.workbench to IApplication
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
patch
166972_org.eclipse.ui.ide.patch (text/plain), 2.52 KB, created by
Thomas Watson
on 2006-12-06 12:20:27 EST
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Thomas Watson
Created:
2006-12-06 12:20:27 EST
Size:
2.52 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.ui.ide >Index: src/org/eclipse/ui/internal/ide/IDEApplication.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEApplication.java,v >retrieving revision 1.43 >diff -u -r1.43 IDEApplication.java >--- src/org/eclipse/ui/internal/ide/IDEApplication.java 30 Jul 2006 07:48:55 -0000 1.43 >+++ src/org/eclipse/ui/internal/ide/IDEApplication.java 6 Dec 2006 17:14:39 -0000 >@@ -22,10 +22,11 @@ > import org.eclipse.core.runtime.CoreException; > import org.eclipse.core.runtime.IConfigurationElement; > import org.eclipse.core.runtime.IExecutableExtension; >-import org.eclipse.core.runtime.IPlatformRunnable; > import org.eclipse.core.runtime.IStatus; > import org.eclipse.core.runtime.Platform; > import org.eclipse.core.runtime.Status; >+import org.eclipse.equinox.app.IApplication; >+import org.eclipse.equinox.app.IApplicationContext; > import org.eclipse.jface.dialogs.MessageDialog; > import org.eclipse.osgi.service.datalocation.Location; > import org.eclipse.osgi.util.NLS; >@@ -33,6 +34,7 @@ > import org.eclipse.swt.widgets.Display; > import org.eclipse.swt.widgets.MessageBox; > import org.eclipse.swt.widgets.Shell; >+import org.eclipse.ui.IWorkbench; > import org.eclipse.ui.PlatformUI; > > /** >@@ -40,7 +42,7 @@ > * > * @since 3.0 > */ >-public class IDEApplication implements IPlatformRunnable, IExecutableExtension { >+public class IDEApplication implements IApplication, IExecutableExtension { > > /** > * The name of the folder containing metadata information for the workspace. >@@ -69,9 +71,9 @@ > } > > /* (non-Javadoc) >- * @see org.eclipse.core.boot.IPlatformRunnable#run(java.lang.Object) >+ * @see org.eclipse.equinox.app.IApplication#start(org.eclipse.equinox.app.IApplicationContext context) > */ >- public Object run(Object args) throws Exception { >+ public Object start(IApplicationContext appContext) throws Exception { > Display display = createDisplay(); > > try { >@@ -450,4 +452,20 @@ > return null; > } > } >+ >+ /* (non-Javadoc) >+ * @see org.eclipse.equinox.app.IApplication#stop() >+ */ >+ public void stop() { >+ final IWorkbench workbench = PlatformUI.getWorkbench(); >+ if (workbench == null) >+ return; >+ final Display display = workbench.getDisplay(); >+ display.syncExec(new Runnable() { >+ public void run() { >+ if (!display.isDisposed()) >+ workbench.close(); >+ } >+ }); >+ } > }
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 166972
: 55146 |
55273