Bug 319800 Close/Close Others/Close All menu in editor
It would be nice to have a submenu on editor tabs for the close functions. For those who aren't used to the key bindings, we make it hard to figure out how to do it because: - there is no menu - there is no key assist dialog (to look it up) - we've removed the keys pref page (to look it up) close others doesn't have a binding by default anyway...
bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/StackRenderer.java
if (!(me instanceof MElementContainer<?>))
			return;
		final MElementContainer<MUIElement> stack = (MElementContainer<MUIElement>) me;
		
		CTabFolder ctf = (CTabFolder) me.getWidget();
		ctf.addSelectionListener(new SelectionListener() {
			public void widgetDefaultSelected(SelectionEvent e) {
			}
			public void widgetSelected(SelectionEvent e) {
				
				if (ignoreTabSelChanges)
					return;
				MUIElement ele = (MUIElement) e.item.getData(OWNING_ME);
				ele.getParent().setSelectedElement(ele);
				activateStack(stack);
			}
		});
		CTabFolder2Adapter closeListener = new CTabFolder2Adapter() {
			public void close(CTabFolderEvent event) {
				MUIElement uiElement = (MUIElement) event.item
						.getData(AbstractPartRenderer.OWNING_ME);
				MPart part = (MPart) ((uiElement instanceof MPart) ? uiElement
						: ((MPlaceholder) uiElement).getRef());
				IEclipseContext partContext = part.getContext();
				
				IEclipseContext context = partContext == null ? StackRenderer.this.context
						: partContext;
				
				EPartService partService = (EPartService) context
						.get(EPartService.class.getName());