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 325392 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/e4/ui/workbench/addons/cleanupaddon/CleanupAddon.java (-1 / +3 lines)
Lines 29-34 Link Here
29
import org.eclipse.e4.ui.model.application.ui.basic.MTrimBar;
29
import org.eclipse.e4.ui.model.application.ui.basic.MTrimBar;
30
import org.eclipse.e4.ui.model.application.ui.basic.MWindow;
30
import org.eclipse.e4.ui.model.application.ui.basic.MWindow;
31
import org.eclipse.e4.ui.model.application.ui.menu.MMenuElement;
31
import org.eclipse.e4.ui.model.application.ui.menu.MMenuElement;
32
import org.eclipse.e4.ui.model.application.ui.menu.MRenderedToolBar;
32
import org.eclipse.e4.ui.workbench.UIEvents;
33
import org.eclipse.e4.ui.workbench.UIEvents;
33
import org.eclipse.e4.ui.workbench.modeling.EModelService;
34
import org.eclipse.e4.ui.workbench.modeling.EModelService;
34
import org.eclipse.emf.ecore.impl.EObjectImpl;
35
import org.eclipse.emf.ecore.impl.EObjectImpl;
Lines 59-65 Link Here
59
				MUIElement containerParent = container.getParent();
60
				MUIElement containerParent = container.getParent();
60
				// Determine the elements that should *not* ever be auto-destroyed
61
				// Determine the elements that should *not* ever be auto-destroyed
61
				if (container instanceof MApplication || container instanceof MPerspectiveStack
62
				if (container instanceof MApplication || container instanceof MPerspectiveStack
62
						|| container instanceof MMenuElement || container instanceof MTrimBar) {
63
						|| container instanceof MMenuElement || container instanceof MTrimBar
64
						|| container instanceof MRenderedToolBar) {
63
					return;
65
					return;
64
				}
66
				}
65
67

Return to bug 325392