use of org.talend.dataprofiler.core.ui.filters.EMFObjFilter 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);
}
use of org.talend.dataprofiler.core.ui.filters.EMFObjFilter in project tdq-studio-se by Talend.
the class AnalysisDPSelectionPage method createControl.
public void createControl(Composite parent) {
Composite container = new Composite(parent, SWT.NONE);
GridLayout layout = new GridLayout();
container.setLayout(layout);
Label nameLabel = new Label(container, SWT.NONE);
nameLabel.setText(nameLabTxt);
createMetaDataTree(container);
setControl(container);
addFilters(new EMFObjFilter(), new DQFolderFilter(true), new TDQEEConnectionFolderFilter(), new RecycleBinFilter(), new HadoopCLusterFolderNodeFilter());
addListeners();
}
use of org.talend.dataprofiler.core.ui.filters.EMFObjFilter in project tdq-studio-se by Talend.
the class ColumnsSelectionDialog method initDialog.
/**
* init this Dialog.
*
* @param title
* @param checkedRepoNodes
*/
private void initDialog(String title, List<? extends IRepositoryNode> checkedRepoNodes) {
modelElementCheckedMap = new MultiValueMap();
initCheckedElements(checkedRepoNodes);
addFilter(new EMFObjFilter());
addFilter(new DQFolderFilter(true));
addFilter(new TDQEEConnectionFolderFilter());
// ADD msjian TDQ-10441: hide the hadoop cluster folder node
addFilter(new HadoopCLusterFolderNodeFilter());
// TDQ-10441~
// ADD msjian TDQ-11253: hide the column folder nodes and column nodes
addFilter(new ColumnAndFolderNodeFilter());
// TDQ-11253~
setTitle(title);
}
Aggregations