PERSPECTIVE_BAR_EXTRAS and SHOW_OPEN_ON_PERSPECTIVE_BAR settings not taken into account [message #1219287] |
Tue, 03 December 2013 07:52 |
Cedric Moonen Messages: 274 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
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03283 seconds