Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 374121 | Differences between
and this patch

Collapse All | Expand All

(-)a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java (+14 lines)
Lines 1684-1689 UIEvents.Context.TOPIC_CONTEXT, Link Here
1684
					}
1684
					}
1685
				});
1685
				});
1686
		
1686
		
1687
		// watch for windows' widget being set, once they've been set, we
1688
		// need to create a WorkbenchWindow
1689
		eventBroker.subscribe(UIEvents.UIElement.TOPIC_WIDGET, new EventHandler() {
1690
			public void handleEvent(org.osgi.service.event.Event event) {
1691
				Object element = event.getProperty(UIEvents.EventTags.ELEMENT);
1692
				if (element instanceof MWindow && UIEvents.isSET(event)
1693
						&& event.getProperty(UIEvents.EventTags.NEW_VALUE) instanceof Shell) {
1694
					MWindow window = (MWindow) element;
1695
					createWorkbenchWindow(getDefaultPageInput(), getPerspectiveRegistry()
1696
							.findPerspectiveWithId(getDefaultPerspectiveId()), window, false);
1697
				}
1698
			}
1699
		});
1700
1687
		boolean found = false;
1701
		boolean found = false;
1688
		List<MPartDescriptor> currentDescriptors = application.getDescriptors();
1702
		List<MPartDescriptor> currentDescriptors = application.getDescriptors();
1689
		for (MPartDescriptor desc : currentDescriptors) {
1703
		for (MPartDescriptor desc : currentDescriptors) {
(-)a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchWindowConfigurer.java (+2 lines)
Lines 311-316 public final class WorkbenchWindowConfigurer implements Link Here
311
            throw new IllegalArgumentException();
311
            throw new IllegalArgumentException();
312
        }
312
        }
313
        windowTitle = title;
313
        windowTitle = title;
314
	// FIXME: should be TextProcessor.process'd?
315
        window.getModel().setLabel(title);
314
        Shell shell = window.getShell();
316
        Shell shell = window.getShell();
315
        if (shell != null && !shell.isDisposed()) {
317
        if (shell != null && !shell.isDisposed()) {
316
            shell.setText(TextProcessor.process(title, WorkbenchWindow.TEXT_DELIMITERS));
318
            shell.setText(TextProcessor.process(title, WorkbenchWindow.TEXT_DELIMITERS));

Return to bug 374121