public void reloadPolicies ( String scanPolicyName ) { DefaultComboBoxModel < String > policies = new DefaultComboBoxModel <> ( ) ; for ( String policy : extension . getPolicyManager ( ) . getAllPolicyNames ( ) ) { policies . addElement ( policy ) ; } getPolicySelector ( ) . setModel ( policies ) ; getPolicySelector ( ) . setSelectedItem ( scanPolicyName ) ; }
Reloads the scan policies which will pick any new ones that have been defined and selects the policy with the given name .