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);
}
Aggregations