Bug 76432 [GlobalActions] WorkbenchActionBuilder wrong null check
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/WorkbenchActionBuilder.java
}
                }
            }
        };
        /*
         * In order to ensure that the pin action toolbar sets its size 
         * correctly, the pin action should set its visiblity before we call updatePinActionToolbar().
         * 
         * In other words we always want the PinActionContributionItem to be notified before the 
         * WorkbenchActionBuilder.
         */
        WorkbenchPlugin.getDefault().getPreferenceStore()
                .addPropertyChangeListener(propPrefListener);
    }
    /**
     * Enables the menu items dependent on an active
     * page and perspective.
     * Note, the show view action already does its own 
     * listening so no need to do it here.
     */
    private void enableActions(boolean value) {
        hideShowEditorAction.setEnabled(value);
        savePerspectiveAction.setEnabled(value);
        lockToolBarAction.setEnabled(value);
        resetPerspectiveAction.setEnabled(value);
        editActionSetAction.setEnabled(value);
        closePerspAction.setEnabled(value);
        closeAllPerspsAction.setEnabled(value);
        newWizardMenu.setEnabled(value);
        newWizardDropDownAction.setEnabled(value);