Search in sources :

Example 1 with ReportingFilter

use of org.talend.dataprofiler.core.ui.filters.ReportingFilter in project tdq-studio-se by Talend.

the class DQRespositoryView method addViewerFilter.

public void addViewerFilter(int viewerFilterId) {
    if (filterMap.containsKey(String.valueOf(viewerFilterId))) {
        return;
    }
    AbstractViewerFilter filter = null;
    switch(viewerFilterId) {
        case EMFObjFilter.FILTER_ID:
            filter = new EMFObjFilter();
            filterMap.put(String.valueOf(EMFObjFilter.FILTER_ID), filter);
            break;
        case ReportingFilter.FILTER_ID:
            filter = new ReportingFilter();
            filterMap.put(String.valueOf(ReportingFilter.FILTER_ID), filter);
            break;
        case FolderObjFilter.FILTER_ID:
            filter = new FolderObjFilter();
            filterMap.put(String.valueOf(FolderObjFilter.FILTER_ID), filter);
            break;
        default:
            filter = new ReportingFilter();
            filterMap.put(String.valueOf(ReportingFilter.FILTER_ID), filter);
    }
    getCommonViewer().addFilter(filter);
}
Also used : AbstractViewerFilter(org.talend.dataprofiler.core.ui.filters.AbstractViewerFilter) EMFObjFilter(org.talend.dataprofiler.core.ui.filters.EMFObjFilter) ReportingFilter(org.talend.dataprofiler.core.ui.filters.ReportingFilter) FolderObjFilter(org.talend.dataprofiler.core.ui.filters.FolderObjFilter)

Aggregations

AbstractViewerFilter (org.talend.dataprofiler.core.ui.filters.AbstractViewerFilter)1 EMFObjFilter (org.talend.dataprofiler.core.ui.filters.EMFObjFilter)1 FolderObjFilter (org.talend.dataprofiler.core.ui.filters.FolderObjFilter)1 ReportingFilter (org.talend.dataprofiler.core.ui.filters.ReportingFilter)1