Search in sources :

Example 11 with DciSummaryTableColumn

use of org.netxms.client.datacollection.DciSummaryTableColumn in project netxms by netxms.

the class SummaryTableColumns method editColumn.

/**
 * Edit selected column
 */
private void editColumn() {
    final IStructuredSelection selection = (IStructuredSelection) viewer.getSelection();
    if (selection.size() == 1) {
        final DciSummaryTableColumn column = (DciSummaryTableColumn) selection.getFirstElement();
        EditDciSummaryTableColumnDlg dlg = new EditDciSummaryTableColumnDlg(getShell(), column);
        if (dlg.open() == Window.OK) {
            viewer.update(column, null);
        }
    }
}
Also used : EditDciSummaryTableColumnDlg(org.netxms.ui.eclipse.datacollection.dialogs.EditDciSummaryTableColumnDlg) DciSummaryTableColumn(org.netxms.client.datacollection.DciSummaryTableColumn) IStructuredSelection(org.eclipse.jface.viewers.IStructuredSelection)

Aggregations

DciSummaryTableColumn (org.netxms.client.datacollection.DciSummaryTableColumn)11 IStructuredSelection (org.eclipse.jface.viewers.IStructuredSelection)6 ArrayList (java.util.ArrayList)4 StructuredSelection (org.eclipse.jface.viewers.StructuredSelection)4 DciSummaryTable (org.netxms.client.datacollection.DciSummaryTable)3 Date (java.util.Date)2 EditDciSummaryTableColumnDlg (org.netxms.ui.eclipse.datacollection.dialogs.EditDciSummaryTableColumnDlg)2 DoubleClickEvent (org.eclipse.jface.viewers.DoubleClickEvent)1 IDoubleClickListener (org.eclipse.jface.viewers.IDoubleClickListener)1 ISelectionChangedListener (org.eclipse.jface.viewers.ISelectionChangedListener)1 SelectionChangedEvent (org.eclipse.jface.viewers.SelectionChangedEvent)1 TableViewer (org.eclipse.jface.viewers.TableViewer)1 SelectionEvent (org.eclipse.swt.events.SelectionEvent)1 SelectionListener (org.eclipse.swt.events.SelectionListener)1 GridData (org.eclipse.swt.layout.GridData)1 GridLayout (org.eclipse.swt.layout.GridLayout)1 RowData (org.eclipse.swt.layout.RowData)1 RowLayout (org.eclipse.swt.layout.RowLayout)1 Button (org.eclipse.swt.widgets.Button)1 Composite (org.eclipse.swt.widgets.Composite)1