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 215474 Details for
Bug 374121
AIOOBE when restoring a window with no perspectives
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]
Alternative patch
374121-v2.patch (text/plain), 1.43 KB, created by
Brian de Alwis
on 2012-05-11 09:30:08 EDT
(
hide
)
Description:
Alternative patch
Filename:
MIME Type:
Creator:
Brian de Alwis
Created:
2012-05-11 09:30:08 EDT
Size:
1.43 KB
patch
obsolete
>diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/StandardTrim.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/StandardTrim.java >index 77b0d63..517afdd 100644 >--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/StandardTrim.java >+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/StandardTrim.java >@@ -20,6 +20,7 @@ import org.eclipse.e4.ui.workbench.modeling.EModelService; > import org.eclipse.jface.action.StatusLineManager; > import org.eclipse.swt.widgets.Composite; > import org.eclipse.ui.IWorkbenchWindow; >+import org.eclipse.ui.PlatformUI; > import org.eclipse.ui.internal.progress.ProgressRegion; > import org.eclipse.ui.internal.util.PrefUtil; > >@@ -79,6 +80,13 @@ public class StandardTrim { > IEclipseContext context = modelService.getContainingContext(toolControl); > WorkbenchWindow wbw = (WorkbenchWindow) context.get(IWorkbenchWindow.class); > // wbw may be null if workspace is started with no open perspectives. >+ if (wbw == null) { >+ // Create one assuming there's no defined perspective >+ Workbench wb = (Workbench) PlatformUI.getWorkbench(); >+ wb.createWorkbenchWindow(wb.getDefaultPageInput(), null, >+ modelService.getTopLevelWindowFor(toolControl), false); >+ wbw = (WorkbenchWindow) context.get(IWorkbenchWindow.class); >+ } > if (wbw != null) { > manager = wbw.getStatusLineManager(); > manager.createControl(parent);
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 374121
:
212600
|
212601
|
212602
|
214925
|
215417
| 215474