Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » PERSPECTIVE_BAR_EXTRAS and SHOW_OPEN_ON_PERSPECTIVE_BAR settings not taken into account
PERSPECTIVE_BAR_EXTRAS and SHOW_OPEN_ON_PERSPECTIVE_BAR settings not taken into account [message #1219287] Tue, 03 December 2013 02:52 Go to next message
Cedric Moonen is currently offline Cedric Moonen
Messages: 269
Registered: August 2009
Senior Member
Hello,

I updated an old RCP application to Kepler. Some of the preferences related to the perspective bar do not work anymore:

- SHOW_OPEN_ON_PERSPECTIVE_BAR: setting this preference to false do not hide the open perspective button (this was working before)
- PERSPECTIVE_BAR_EXTRAS: the extra perspectives listed here are not shown by default on the perspective bar.

Here is how I'm settings this values (in my ApplicationWorkbenchWindowAdvisor):
	public void preWindowOpen() {

		IPreferenceStore prefStore = PlatformUI.getPreferenceStore();
		prefStore.setValue(IWorkbenchPreferenceConstants.DOCK_PERSPECTIVE_BAR,
				"RIGHT");
		prefStore.setValue(
				IWorkbenchPreferenceConstants.SHOW_TRADITIONAL_STYLE_TABS,
				false);
		prefStore.setValue(
				IWorkbenchPreferenceConstants.SHOW_OTHER_IN_PERSPECTIVE_MENU,
				false);
		prefStore.setValue(
				IWorkbenchPreferenceConstants.SHOW_OPEN_ON_PERSPECTIVE_BAR,
				false);
		prefStore.setValue(
				IWorkbenchPreferenceConstants.PERSPECTIVE_BAR_EXTRAS,
				LogAnPerspective.PERSPECTIVE_ID + ","
						+ PatternEditPerspective.PERSPECTIVE_ID + ","
						+ DebugPerspective.PERSPECTIVE_ID);
	}


Actually, my use case us that in my RCP application, all perspectives are directly visible in the tool bar (so I don't want an extra open perspective button). I only have 3 of them and this is much more convenient for the user.

Should I open a bug report for this ?
Thanks
Re: PERSPECTIVE_BAR_EXTRAS and SHOW_OPEN_ON_PERSPECTIVE_BAR settings not taken into account [message #1219396 is a reply to message #1219287] Tue, 03 December 2013 11:27 Go to previous messageGo to next message
Eric Moffatt is currently offline Eric Moffatt
Messages: 117
Registered: July 2009
Senior Member

Certainly, we're keen to fix regressions like this one. Would it be better if we found a way to hide the default perspective switcher as well ?
Re: PERSPECTIVE_BAR_EXTRAS and SHOW_OPEN_ON_PERSPECTIVE_BAR settings not taken into account [message #1219484 is a reply to message #1219396] Wed, 04 December 2013 02:50 Go to previous message
Cedric Moonen is currently offline Cedric Moonen
Messages: 269
Registered: August 2009
Senior Member
Ok, I've open a bug here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=423136

Not sure if this has to go under e4 -> UI or under Platform -> UI...

Quote:
Would it be better if we found a way to hide the default perspective switcher as well ?


I currently do not need this but I could see that as a potential useful feature.
Previous Topic:How to change the style of the main application window shell
Next Topic:Opening dialog from E4 command/handler
Goto Forum:
  


Current Time: Tue Jul 29 17:10:21 EDT 2014

Powered by FUDForum. Page generated in 0.03103 seconds