Search in sources :

Example 1 with AddUsmCredDialog

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();
    }
}
Also used : SnmpUsmCredential(org.netxms.client.snmp.SnmpUsmCredential) AddUsmCredDialog(org.netxms.ui.eclipse.snmp.dialogs.AddUsmCredDialog)

Aggregations

SnmpUsmCredential (org.netxms.client.snmp.SnmpUsmCredential)1 AddUsmCredDialog (org.netxms.ui.eclipse.snmp.dialogs.AddUsmCredDialog)1