Bug 174213 [ViewMgmt] add attribute to close a sticky view in all open perspectives
Currently, when you open a sticky view, it remains open when you switch perspectives. However, when you close a sticky view, it only closes the sticky view in the current active perspective. Could we add an attribute to the contribution to specify that the sticky view be closed in all other open perspectives? Use case: Based on usability feedback for our product, users are getting very confused when they see the help view reappear when they change perspectives, after having closed the help view. They are expecting that when they close it in one perspective, it closes it in all other open perspectives, not just the active perspective.
bundles/org.eclipse.ui/src/org/eclipse/ui/internal/UIPreferenceInitializer.java
import org.osgi.service.prefs.BackingStoreException;
/**
 * Implementation of the UI plugin's preference extension's customization
 * element. This is needed in order to force the UI plugin's preferences to be
 * initialized properly when running without
 * org.eclipse.core.runtime.compatibility. For more details, see bug 58975 - New
 * preference mechanism does not properly initialize defaults.
 * 
 * @since 3.0
 */
public class UIPreferenceInitializer extends AbstractPreferenceInitializer {
	 private static final String SYSTEM_DEFAULT_THEME = "org.eclipse.ui.ide.systemDefault";
	 
	public void initializeDefaultPreferences() {
		
		
		
		final boolean[] highContrast = new boolean[1];
		StartupThreading.runWithoutExceptions(new StartupRunnable() {
			public void runWithException() throws Throwable {
				highContrast[0] = Display.getCurrent().getHighContrast();
				
			}});
		
		IScopeContext context = new DefaultScope();
		IEclipsePreferences node = context.getNode(UIPlugin.getDefault()
				.getBundle().getSymbolicName());
		node.put(IWorkbenchPreferenceConstants.OPEN_NEW_PERSPECTIVE,
				IWorkbenchPreferenceConstants.OPEN_PERSPECTIVE_REPLACE);