Search in sources :

Example 1 with DataSourceEditDlg

use of org.netxms.ui.eclipse.networkmaps.dialogs.DataSourceEditDlg in project netxms by netxms.

the class DCIContainerDataSources method editItem.

/**
 * Edit selected item
 */
private void editItem() {
    IStructuredSelection selection = (IStructuredSelection) viewer.getSelection();
    SingleDciConfig dci = (SingleDciConfig) selection.getFirstElement();
    if (dci == null)
        return;
    DataSourceEditDlg dlg = new DataSourceEditDlg(getShell(), dci);
    if (dlg.open() == Window.OK) {
        viewer.update(dci, null);
    }
}
Also used : DataSourceEditDlg(org.netxms.ui.eclipse.networkmaps.dialogs.DataSourceEditDlg) IStructuredSelection(org.eclipse.jface.viewers.IStructuredSelection) SingleDciConfig(org.netxms.client.maps.configs.SingleDciConfig)

Example 2 with DataSourceEditDlg

use of org.netxms.ui.eclipse.networkmaps.dialogs.DataSourceEditDlg in project netxms by netxms.

the class LinkDataSources method editItem.

/**
 * Edit selected item
 */
private void editItem() {
    IStructuredSelection selection = (IStructuredSelection) viewer.getSelection();
    SingleDciConfig dci = (SingleDciConfig) selection.getFirstElement();
    if (dci == null)
        return;
    DataSourceEditDlg dlg = new DataSourceEditDlg(getShell(), dci);
    if (dlg.open() == Window.OK) {
        viewer.update(dci, null);
    }
}
Also used : DataSourceEditDlg(org.netxms.ui.eclipse.networkmaps.dialogs.DataSourceEditDlg) IStructuredSelection(org.eclipse.jface.viewers.IStructuredSelection) SingleDciConfig(org.netxms.client.maps.configs.SingleDciConfig)

Aggregations

IStructuredSelection (org.eclipse.jface.viewers.IStructuredSelection)2 SingleDciConfig (org.netxms.client.maps.configs.SingleDciConfig)2 DataSourceEditDlg (org.netxms.ui.eclipse.networkmaps.dialogs.DataSourceEditDlg)2