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;
}
}
Aggregations