Bug 293357 [context] Switch annotation processing to JSR 330
bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/workbench/ui/renderers/swt/StackRenderer.java
hookTabControllerLogic(stack, part, cti);
	}
	private int calcIndexFor(MPartStack stack, final MPart part) {
		int index = 0;
		
		for (MPart mPart : stack.getChildren()) {
			if (mPart == part)
				return index;
			if (mPart.isVisible())
				index++;
		}
		return index;
	}
	@Override
	public void childRendered(
			final MElementContainer<MUIElement> parentElement,
			MUIElement element) {
		super.childRendered(parentElement, element);
		if (!(((MUIElement) parentElement) instanceof MPartStack)
				|| !(element instanceof MPart))
			return;
		MPartStack stack = (MPartStack) ((MUIElement) parentElement);
		MPart part = (MPart) element;
		showChild(stack, part);
		
		
		Control ctrl = (Control) element.getWidget();
		if (ctrl != null) {
			showTab(stack, part);