|
Lines 28-33
Link Here
|
| 28 |
import org.eclipse.e4.ui.model.application.ui.basic.MWindow; |
28 |
import org.eclipse.e4.ui.model.application.ui.basic.MWindow; |
| 29 |
import org.eclipse.e4.ui.model.application.ui.menu.MMenuElement; |
29 |
import org.eclipse.e4.ui.model.application.ui.menu.MMenuElement; |
| 30 |
import org.eclipse.e4.ui.model.application.ui.menu.MToolBar; |
30 |
import org.eclipse.e4.ui.model.application.ui.menu.MToolBar; |
|
|
31 |
import org.eclipse.e4.ui.workbench.IPresentationEngine; |
| 31 |
import org.eclipse.e4.ui.workbench.UIEvents; |
32 |
import org.eclipse.e4.ui.workbench.UIEvents; |
| 32 |
import org.eclipse.e4.ui.workbench.modeling.EModelService; |
33 |
import org.eclipse.e4.ui.workbench.modeling.EModelService; |
| 33 |
import org.eclipse.e4.ui.workbench.renderers.swt.SashLayout; |
34 |
import org.eclipse.e4.ui.workbench.renderers.swt.SashLayout; |
|
Lines 62-68
Link Here
|
| 62 |
// Determine the elements that should *not* ever be auto-destroyed |
63 |
// Determine the elements that should *not* ever be auto-destroyed |
| 63 |
if (container instanceof MApplication || container instanceof MPerspectiveStack |
64 |
if (container instanceof MApplication || container instanceof MPerspectiveStack |
| 64 |
|| container instanceof MMenuElement || container instanceof MTrimBar |
65 |
|| container instanceof MMenuElement || container instanceof MTrimBar |
| 65 |
|| container instanceof MToolBar || container instanceof MArea) { |
66 |
|| container instanceof MToolBar || container instanceof MArea |
|
|
67 |
|| container.getTags().contains(IPresentationEngine.NO_AUTO_COLLAPSE)) { |
| 66 |
return; |
68 |
return; |
| 67 |
} |
69 |
} |
| 68 |
|
70 |
|
|
Lines 262-267
Link Here
|
| 262 |
if (!container.isToBeRendered()) |
264 |
if (!container.isToBeRendered()) |
| 263 |
container.setToBeRendered(true); |
265 |
container.setToBeRendered(true); |
| 264 |
} else { |
266 |
} else { |
|
|
267 |
// Never hide the container marked as no_close |
| 268 |
if (container.getTags().contains(IPresentationEngine.NO_AUTO_COLLAPSE)) { |
| 269 |
return; |
| 270 |
} |
| 271 |
|
| 265 |
int visCount = modelService.countRenderableChildren(container); |
272 |
int visCount = modelService.countRenderableChildren(container); |
| 266 |
|
273 |
|
| 267 |
// Remove stacks with no visible children from the display (but not the |
274 |
// Remove stacks with no visible children from the display (but not the |