}
private void disablePerspectiveToolbarMenu() {
final PerspectiveBarManager perspectiveBarManager = ((WorkbenchWindow)PlatformUI.getWorkbench().getActiveWorkbenchWindow()).getPerspectiveBar();
if(perspectiveBarManager != null) {
ToolBar toolbar = perspectiveBarManager.getControl();
Listener[] listeners = toolbar.getListeners(SWT.MenuDetect);
if(listeners == null) {
return;
}
for(Listener l: listeners) {