Search in sources :

Example 1 with EMFObjFilter

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

Example 2 with EMFObjFilter

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();
}
Also used : TDQEEConnectionFolderFilter(org.talend.dataprofiler.core.ui.filters.TDQEEConnectionFolderFilter) GridLayout(org.eclipse.swt.layout.GridLayout) EMFObjFilter(org.talend.dataprofiler.core.ui.filters.EMFObjFilter) Composite(org.eclipse.swt.widgets.Composite) HadoopCLusterFolderNodeFilter(org.talend.dataprofiler.core.ui.filters.HadoopCLusterFolderNodeFilter) Label(org.eclipse.swt.widgets.Label) RecycleBinFilter(org.talend.dataprofiler.core.ui.filters.RecycleBinFilter) DQFolderFilter(org.talend.dataprofiler.core.ui.filters.DQFolderFilter)

Example 3 with EMFObjFilter

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);
}
Also used : TDQEEConnectionFolderFilter(org.talend.dataprofiler.core.ui.filters.TDQEEConnectionFolderFilter) EMFObjFilter(org.talend.dataprofiler.core.ui.filters.EMFObjFilter) ColumnAndFolderNodeFilter(org.talend.dataprofiler.core.ui.filters.ColumnAndFolderNodeFilter) HadoopCLusterFolderNodeFilter(org.talend.dataprofiler.core.ui.filters.HadoopCLusterFolderNodeFilter) MultiValueMap(org.apache.commons.collections.map.MultiValueMap) DQFolderFilter(org.talend.dataprofiler.core.ui.filters.DQFolderFilter)

Aggregations

EMFObjFilter (org.talend.dataprofiler.core.ui.filters.EMFObjFilter)3 DQFolderFilter (org.talend.dataprofiler.core.ui.filters.DQFolderFilter)2 HadoopCLusterFolderNodeFilter (org.talend.dataprofiler.core.ui.filters.HadoopCLusterFolderNodeFilter)2 TDQEEConnectionFolderFilter (org.talend.dataprofiler.core.ui.filters.TDQEEConnectionFolderFilter)2 MultiValueMap (org.apache.commons.collections.map.MultiValueMap)1 GridLayout (org.eclipse.swt.layout.GridLayout)1 Composite (org.eclipse.swt.widgets.Composite)1 Label (org.eclipse.swt.widgets.Label)1 AbstractViewerFilter (org.talend.dataprofiler.core.ui.filters.AbstractViewerFilter)1 ColumnAndFolderNodeFilter (org.talend.dataprofiler.core.ui.filters.ColumnAndFolderNodeFilter)1 FolderObjFilter (org.talend.dataprofiler.core.ui.filters.FolderObjFilter)1 RecycleBinFilter (org.talend.dataprofiler.core.ui.filters.RecycleBinFilter)1 ReportingFilter (org.talend.dataprofiler.core.ui.filters.ReportingFilter)1