Search in sources :

Example 6 with OrderingColumn

use of org.netxms.client.log.OrderingColumn in project netxms by netxms.

the class FilterBuilder method createFilter.

/**
 * @return
 */
public LogFilter createFilter() {
    LogFilter filter = new LogFilter();
    for (Entry<String, ColumnFilterEditor> e : columns.entrySet()) {
        ColumnFilter cf = e.getValue().buildFilterTree();
        if (cf != null) {
            filter.setColumnFilter(e.getKey(), cf);
        }
    }
    filter.setOrderingColumns(new ArrayList<OrderingColumn>(orderingColumns));
    return filter;
}
Also used : ColumnFilter(org.netxms.client.log.ColumnFilter) OrderingColumn(org.netxms.client.log.OrderingColumn) LogFilter(org.netxms.client.log.LogFilter)

Aggregations

OrderingColumn (org.netxms.client.log.OrderingColumn)6 LogFilter (org.netxms.client.log.LogFilter)5 ArrayList (java.util.ArrayList)4 ColumnFilter (org.netxms.client.log.ColumnFilter)4 ISelection (org.eclipse.jface.viewers.ISelection)3 IStructuredSelection (org.eclipse.jface.viewers.IStructuredSelection)3 IWorkbenchWindow (org.eclipse.ui.IWorkbenchWindow)3 PartInitException (org.eclipse.ui.PartInitException)3 AbstractNode (org.netxms.client.objects.AbstractNode)3 AbstractObject (org.netxms.client.objects.AbstractObject)3 LogViewer (org.netxms.ui.eclipse.logviewer.views.LogViewer)3 Log (org.netxms.client.log.Log)1