Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 341030

Summary: [PerspectiveBar] More control over the "PerspectiveBar" (Context and Open menu)
Product: [Eclipse Project] Platform Reporter: Marco Lopes <marcolopespt>
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: CLOSED WONTFIX QA Contact:
Severity: enhancement    
Priority: P3 CC: marcolopespt, prakash, pwebster, remy.suen
Version: 3.7   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: stalebug

Description Marco Lopes CLA 2011-03-26 08:57:13 EDT
Build Identifier: Indigo Release Build id: 20110319-2305

I think it would be very useful to implement a way to have a more versatile "PerspectiveBar".

I currently use this code to disable the context menu on the perspective bar. It would be quite simple (i suppose) to create a new method to avoid hacking into the "core".

private void disablePerspectiveToolbarMenu() {

PerspectiveBarManager perspectiveBarManager = ((WorkbenchWindow) PlatformUI.getWorkbench().getActiveWorkbenchWindow()).getPer spectiveBar();

//perspectiveBar existe?
if (perspectiveBarManager!=null){
ToolBar toolBar = perspectiveBarManager.getControl();
Listener[] listeners = toolBar.getListeners(SWT.MenuDetect);
if (listeners != null){
for (Listener listener : listeners){
toolBar.removeListener(SWT.MenuDetect, listener);
}
}
}
}

Another great option is to have some control over the "OPEN PERSPECTIVE" menu (a way to DISABLE it, or at least to reset it - avoiding the fixes "other..." option")

Reproducible: Always
Comment 1 Lars Vogel CLA 2019-11-08 04:39:57 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

If the bug is still relevant please remove the stalebug whiteboard tag.
Comment 2 Marco Lopes CLA 2019-11-08 13:28:09 EST
It's relevant for versions 3.x not for 4.x because the perspectivebar has changed... so yes, it's never gonna be addressed

(personally i'm still using the 3.8 Eclipse Version because of incompatibility issues between 3.x and 4.x over the control of the perspectivebar)