Bug 280938 Remove 'name' argument from IEclipseContext#runAndTrack
I20090618 IEclipseContext#runAndTrack has a "name" argument that is only used for debugging purposes. I would like to remove this because it has very limited value - people can just as easily define a toString on their Runnable that can be used for debugging purposes. Clients are likely to find the parameter confusing, and will be unlikely to provide a string that provides us with much value as a debugging aid. Also, the runAndTrack(IRunAndTrack) method doesn't have such a name, which is inconsistent. I'd like to make this change now to avoid the churn of changing it once we have more adopters.
bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/workbench/ui/renderers/swt/StackModelFactory.java
if (!(part instanceof MStack))
			return null;
		Widget parentWidget = getParentWidget(part);
		if (parentWidget instanceof Composite) {
			
			
			
			boolean showCloseAlways = false;
			int styleModifier = 0;
			if (part.getPolicy() != null && part.getPolicy().length() > 0) {
				String policy = part.getPolicy();
				if (policy.indexOf("ViewStack") >= 0) { 
					styleModifier = SWT.CLOSE;
				}
				if (policy.indexOf("EditorStack") >= 0) { 
					styleModifier = SWT.CLOSE;
					showCloseAlways = true;
				}
			}
			Composite stylingWrapper = createWrapperForStyling((Composite) parentWidget);
			
			final CTabFolder ctf = new CTabFolder(stylingWrapper, SWT.BORDER
					| styleModifier);
			configureForStyling(ctf);
			ctf.setUnselectedCloseVisible(showCloseAlways);
			bindWidget(part, ctf);
			ctf.setVisible(true);
			newWidget = ctf;
			final IEclipseContext folderContext = part.getContext();
			folderContext.set(IContextConstants.DEBUG_STRING, "TabFolder");