Bug 325722 'Close'-related context menu actions should show up for all stacks and apply to all items
See bug title ;)
bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/StackRenderer.java
});
		MenuItem menuItemAll = new MenuItem(menu, SWT.NONE);
		menuItemAll.setText(SWTRenderersMessages.menuCloseAll);
		menuItemAll.addSelectionListener(new SelectionAdapter() {
			public void widgetSelected(SelectionEvent e) {
				MPart part = (MPart) menu.getData(STACK_SELECTED_PART);
				closeSiblingEditors(part, false);
			}
		});
		return menu;
	}
	private boolean isEditor(MPart part) {
		if (part == null)
			return false;
		return part.getTags().contains("Editor"); 
	}
	private void closeSiblingEditors(MPart part, boolean skipThisPart) {
		MElementContainer<MUIElement> container = part.getParent();
		if (container == null)
			return;
		List<MUIElement> children = container.getChildren();
		List<MPart> others = new LinkedList<MPart>();
		for (MUIElement child : children) {
			MPart otherPart = null;
			if (child instanceof MPart)
				otherPart = (MPart) child;
			else if (child instanceof MPlaceholder) {
				MUIElement otherItem = ((MPlaceholder) child).getRef();
				if (otherItem instanceof MPart)
					otherPart = (MPart) otherItem;