use of org.netxms.ui.eclipse.datacollection.dialogs.DataSourceEditDlg in project netxms by netxms.
the class TemplateDataSources method addItem.
/**
* Add new item
*/
private void addItem() {
ChartDciConfig dci = new ChartDciConfig();
DataSourceEditDlg dlg = new DataSourceEditDlg(getShell(), dci, true);
if (dlg.open() == Window.OK) {
List<ChartDciConfig> select = new ArrayList<ChartDciConfig>();
select.add(dci);
select.add(dci);
dciList.add(dci);
viewer.setInput(dciList.toArray());
viewer.setSelection(new StructuredSelection(select));
}
}
use of org.netxms.ui.eclipse.datacollection.dialogs.DataSourceEditDlg in project netxms by netxms.
the class TemplateDataSources method editItem.
/**
* Edit selected item
*/
private void editItem() {
IStructuredSelection selection = (IStructuredSelection) viewer.getSelection();
ChartDciConfig dci = (ChartDciConfig) selection.getFirstElement();
if (dci == null)
return;
DataSourceEditDlg dlg = new DataSourceEditDlg(getShell(), dci, true);
if (dlg.open() == Window.OK) {
viewer.update(dci, null);
}
}
use of org.netxms.ui.eclipse.datacollection.dialogs.DataSourceEditDlg in project netxms by netxms.
the class DataSources method editItem.
/**
* Edit selected item
*/
private void editItem() {
IStructuredSelection selection = (IStructuredSelection) viewer.getSelection();
ChartDciConfig dci = (ChartDciConfig) selection.getFirstElement();
if (dci == null)
return;
DataSourceEditDlg dlg = new DataSourceEditDlg(getShell(), dci, false);
if (dlg.open() == Window.OK) {
viewer.update(dci, null);
}
}
use of org.netxms.ui.eclipse.datacollection.dialogs.DataSourceEditDlg in project netxms by netxms.
the class DataSources method editItem.
/**
* Edit selected item
*/
private void editItem() {
IStructuredSelection selection = (IStructuredSelection) viewer.getSelection();
ChartDciConfig dci = (ChartDciConfig) selection.getFirstElement();
if (dci == null)
return;
DataSourceEditDlg dlg = new DataSourceEditDlg(getShell(), dci, graphIsTemplate);
if (dlg.open() == Window.OK) {
viewer.update(dci, null);
}
}
Aggregations