Bug 319583 Parts misbehaving after a perspective switch
1. Launch your inner. 2. Make a new Java project. Make a class. Add a hello world print statement. 3. Ctrl+Shift+B for a breakpoint. Right-click > Debug As > Java Application 4. When prompted, confirm to switch perspectives. 5. The 'Debug' view's content will flash for a second before going empty. F8 to let the application run to completion. 6. The 'Debug', 'Variables', and 'Console' view's stacks will all not activate. You can only activate the editor area and the 'Outline' view's stack. Closing views will not save you. 7. Window > Open Perspective > Java 8. Magically, the 'Variables', 'Debug', and 'Breakpoints' view are now appearing in the bottom stack.
bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/PerspectiveStackRenderer.java
}
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer#showTab(org
	 * .eclipse.e4.ui.model.application.MUIElement)
	 */
	@Override
	protected void showTab(MUIElement tabElement) {
		super.showTab(tabElement);
		Control ctrl = (Control) tabElement.getWidget();
		if (ctrl == null) {
			ctrl = (Control) renderer.createGui(tabElement);
		}
		
		if (tabElement instanceof MPerspective) {
			MPerspective persp = (MPerspective) tabElement;
			IEclipseContext context = persp.getContext();
			context.getParent().set(IContextConstants.ACTIVE_CHILD, context);
		}
		Composite psComp = ctrl.getParent();
		StackLayout sl = (StackLayout) psComp.getLayout();
		sl.topControl = ctrl;
		psComp.layout();
		ctrl.moveAbove(null);
	}
}