Search in sources :

Example 1 with SelectNodeDciDialog

use of org.netxms.ui.eclipse.datacollection.dialogs.SelectNodeDciDialog in project netxms by netxms.

the class IdMatchingDialog method mapDci.

/**
 * Map DCI
 *
 * @param data
 */
private void mapDci(DciIdMatchingData data) {
    if (data.dstNodeId == 0)
        return;
    SelectNodeDciDialog dlg = new SelectNodeDciDialog(getShell(), data.dstNodeId);
    if (dlg.open() == Window.OK) {
        DciValue v = dlg.getSelection();
        if (v != null) {
            data.dstDciId = v.getId();
            data.dstName = v.getDescription();
            viewer.update(data, null);
        }
    }
}
Also used : SelectNodeDciDialog(org.netxms.ui.eclipse.datacollection.dialogs.SelectNodeDciDialog) DciValue(org.netxms.client.datacollection.DciValue)

Aggregations

DciValue (org.netxms.client.datacollection.DciValue)1 SelectNodeDciDialog (org.netxms.ui.eclipse.datacollection.dialogs.SelectNodeDciDialog)1