protected JMenu newHelpMenu ( final ActionListener listener ) { // Help menu final JMenu menuHelp = new JMenu ( newLabelTextHelp ( ) ) ; menuHelp . setMnemonic ( ' ' ) ; // Help JMenuItems // Help content final JMenuItem mihHelpContent = JComponentFactory . newJMenuItem ( newLabelTextContent ( ) , ' ' , ' ' ) ; menuHelp . add ( mihHelpContent ) ; // 2. assign help to components CSH . setHelpIDString ( mihHelpContent , newLabelTextOverview ( ) ) ; // 3. handle events final CSH . DisplayHelpFromSource displayHelpFromSource = new CSH . DisplayHelpFromSource ( helpBroker ) ; mihHelpContent . addActionListener ( displayHelpFromSource ) ; // Donate final JMenuItem mihDonate = new JMenuItem ( newLabelTextDonate ( ) ) ; mihDonate . addActionListener ( newOpenBrowserToDonateAction ( newLabelTextDonate ( ) , applicationFrame ) ) ; menuHelp . add ( mihDonate ) ; // Licence final JMenuItem mihLicence = new JMenuItem ( newLabelTextLicence ( ) ) ; mihLicence . addActionListener ( newShowLicenseFrameAction ( newLabelTextLicence ( ) + "Action" , newLabelTextLicence ( ) ) ) ; menuHelp . add ( mihLicence ) ; // Info final JMenuItem mihInfo = new JMenuItem ( newLabelTextInfo ( ) , ' ' ) ; // $NON-NLS-1$ MenuExtensions . setCtrlAccelerator ( mihInfo , ' ' ) ; mihInfo . addActionListener ( newShowInfoDialogAction ( newLabelTextInfo ( ) , ( Frame ) applicationFrame , newLabelTextInfo ( ) ) ) ; menuHelp . add ( mihInfo ) ; return menuHelp ; }
Creates the help menu .