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 (+13 lines)
Lines 1687-1692 UIEvents.Context.TOPIC_CONTEXT, Link Here
1687
					}
1687
					}
1688
				});
1688
				});
1689
		
1689
		
1690
		// watch for windows' widget being set, once they've been set, we
1691
		// need to create a WorkbenchWindow
1692
		eventBroker.subscribe(UIEvents.UIElement.TOPIC_WIDGET, new EventHandler() {
1693
			public void handleEvent(org.osgi.service.event.Event event) {
1694
				Object element = event.getProperty(UIEvents.EventTags.ELEMENT);
1695
				if (element instanceof MWindow && UIEvents.isSET(event)
1696
						&& event.getProperty(UIEvents.EventTags.NEW_VALUE) instanceof Shell) {
1697
					MWindow window = (MWindow) element;
1698
					createWorkbenchWindow(getDefaultPageInput(), null, window, false);
1699
				}
1700
			}
1701
		});
1702
1690
		boolean found = false;
1703
		boolean found = false;
1691
		List<MPartDescriptor> currentDescriptors = application.getDescriptors();
1704
		List<MPartDescriptor> currentDescriptors = application.getDescriptors();
1692
		for (MPartDescriptor desc : currentDescriptors) {
1705
		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