Search in sources :

Example 1 with ConditionDciEditDialog

use of org.netxms.ui.eclipse.objectmanager.dialogs.ConditionDciEditDialog in project netxms by netxms.

the class ConditionData method editItem.

/**
 * Edit selected item
 */
private void editItem() {
    IStructuredSelection selection = (IStructuredSelection) viewer.getSelection();
    ConditionDciInfo dci = (ConditionDciInfo) selection.getFirstElement();
    if (dci == null)
        return;
    ConditionDciEditDialog dlg = new ConditionDciEditDialog(getShell(), dci, labelProvider.getColumnText(dci, COLUMN_NODE), labelProvider.getColumnText(dci, COLUMN_METRIC));
    if (dlg.open() == Window.OK) {
        viewer.update(dci, null);
        isModified = true;
    }
}
Also used : ConditionDciInfo(org.netxms.client.datacollection.ConditionDciInfo) IStructuredSelection(org.eclipse.jface.viewers.IStructuredSelection) ConditionDciEditDialog(org.netxms.ui.eclipse.objectmanager.dialogs.ConditionDciEditDialog)

Aggregations

IStructuredSelection (org.eclipse.jface.viewers.IStructuredSelection)1 ConditionDciInfo (org.netxms.client.datacollection.ConditionDciInfo)1 ConditionDciEditDialog (org.netxms.ui.eclipse.objectmanager.dialogs.ConditionDciEditDialog)1