use of org.netxms.ui.eclipse.snmp.dialogs.AddUsmCredDialog in project netxms by netxms.
the class SnmpCredentials method addUsmCredentials.
/**
* Add SNMP USM credentials to the list
*/
private void addUsmCredentials() {
AddUsmCredDialog dlg = new AddUsmCredDialog(getSite().getShell());
if (dlg.open() == Window.OK) {
SnmpUsmCredential cred = dlg.getValue();
cred.setZoneId((int) zoneUIN);
config.addUsmCredentials(cred, zoneUIN);
snmpUsmCredList.setInput(config.getUsmCredentials(zoneUIN));
setModified();
}
}
Aggregations