private ZapMenuItem getMenuItemPolicy ( ) { if ( menuItemPolicy == null ) { menuItemPolicy = new ZapMenuItem ( "menu.analyse.scanPolicy" , getView ( ) . getMenuShortcutKeyStroke ( KeyEvent . VK_P , 0 , false ) ) ; menuItemPolicy . addActionListener ( new java . awt . event . ActionListener ( ) { @ Override public void actionPerformed ( java . awt . event . ActionEvent e ) { showPolicyManagerDialog ( ) ; } } ) ; } return menuItemPolicy ; }
This method initializes menuItemPolicy