Search in sources :

Example 11 with SnmpObjectId

use of org.netxms.client.snmp.SnmpObjectId in project netxms by netxms.

the class MibSelectionDialog method onMibTreeSelectionChanged.

/**
 * Handler for selection change in MIB tree
 */
private void onMibTreeSelectionChanged() {
    MibObject object = mibTree.getSelection();
    if ((object != null) && updateObjectId) {
        SnmpObjectId objectId = object.getObjectId();
        // $NON-NLS-1$
        oid.setText((objectId != null) ? objectId.toString() : "");
    }
    details.setObject(object);
}
Also used : SnmpObjectId(org.netxms.client.snmp.SnmpObjectId) MibObject(org.netxms.client.snmp.MibObject)

Aggregations

SnmpObjectId (org.netxms.client.snmp.SnmpObjectId)11 SnmpObjectIdFormatException (org.netxms.client.snmp.SnmpObjectIdFormatException)8 Dialog (org.eclipse.jface.dialogs.Dialog)2 IParameterSelectionDialog (org.netxms.ui.eclipse.datacollection.dialogs.IParameterSelectionDialog)2 SelectAgentParamDlg (org.netxms.ui.eclipse.datacollection.dialogs.SelectAgentParamDlg)2 SelectParameterScriptDialog (org.netxms.ui.eclipse.datacollection.dialogs.SelectParameterScriptDialog)2 SelectSnmpParamDlg (org.netxms.ui.eclipse.datacollection.dialogs.SelectSnmpParamDlg)2 DCIPropertyPageDialog (org.netxms.ui.eclipse.datacollection.propertypages.helpers.DCIPropertyPageDialog)2 IStructuredSelection (org.eclipse.jface.viewers.IStructuredSelection)1 StructuredSelection (org.eclipse.jface.viewers.StructuredSelection)1 SelectionEvent (org.eclipse.swt.events.SelectionEvent)1 SelectionListener (org.eclipse.swt.events.SelectionListener)1 GridData (org.eclipse.swt.layout.GridData)1 GridLayout (org.eclipse.swt.layout.GridLayout)1 Button (org.eclipse.swt.widgets.Button)1 Composite (org.eclipse.swt.widgets.Composite)1 MibObject (org.netxms.client.snmp.MibObject)1 SnmpTrapParameterMapping (org.netxms.client.snmp.SnmpTrapParameterMapping)1 SnmpValue (org.netxms.client.snmp.SnmpValue)1 SelectInternalParamDlg (org.netxms.ui.eclipse.datacollection.dialogs.SelectInternalParamDlg)1