Bug 296796 MWindow name changes are not reflected in a shell
bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/workbench/ui/renderers/swt/WBWRenderer.java
}
	private List<MSaveablePart> collectSaveableParts(
			MElementContainer<?> window, List<MSaveablePart> saveableParts) {
		for (Object element : window.getChildren()) {
			if (element instanceof MSaveablePart) {
				MSaveablePart part = (MSaveablePart) element;
				if (part.isDirty()) {
					Object clientObject = part.getObject();
					if (clientObject != null) {
						Boolean saveOnCloseNeeded = Boolean.TRUE;
						try {
							saveOnCloseNeeded = (Boolean) ContextInjectionFactory
									.invoke(
											clientObject,
											"isSaveOnCloseNeeded", null, Boolean.TRUE); 
						} catch (InvocationTargetException e) {
							if (logger != null)
								logger.error(e);
						}
						if (saveOnCloseNeeded.booleanValue()) {
							saveableParts.add(part);
						}
					}
				}
			}
			if (element instanceof MElementContainer<?>) {
				collectSaveableParts((MElementContainer<?>) element,
						saveableParts);
			}
		}