Search in sources :

Example 1 with RuleFolderFliter

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

the class DQRuleSelectPage method createControl.

public void createControl(Composite parent) {
    Composite container = new Composite(parent, SWT.NONE);
    FillLayout layout = new FillLayout();
    container.setLayout(layout);
    cViewer = new ContainerCheckedTreeViewer(container, SWT.NONE);
    cViewer.setLabelProvider(new DQRuleLabelProvider());
    cViewer.setContentProvider(new WorkbenchContentProvider());
    cViewer.setInput(ResourceManager.getLibrariesFolder());
    // ADD mzhao bug TDQ-4188 hide the .svn folders.
    cViewer.addFilter(new DQFolderFilter(true));
    cViewer.addFilter(new RuleFolderFliter(true));
    cViewer.addFilter(AnalysisUtils.createRuleFilter());
    setControl(container);
}
Also used : RuleFolderFliter(org.talend.dataprofiler.core.ui.filters.RuleFolderFliter) Composite(org.eclipse.swt.widgets.Composite) ContainerCheckedTreeViewer(org.eclipse.ui.dialogs.ContainerCheckedTreeViewer) FillLayout(org.eclipse.swt.layout.FillLayout) WorkbenchContentProvider(org.eclipse.ui.model.WorkbenchContentProvider) DQFolderFilter(org.talend.dataprofiler.core.ui.filters.DQFolderFilter)

Aggregations

FillLayout (org.eclipse.swt.layout.FillLayout)1 Composite (org.eclipse.swt.widgets.Composite)1 ContainerCheckedTreeViewer (org.eclipse.ui.dialogs.ContainerCheckedTreeViewer)1 WorkbenchContentProvider (org.eclipse.ui.model.WorkbenchContentProvider)1 DQFolderFilter (org.talend.dataprofiler.core.ui.filters.DQFolderFilter)1 RuleFolderFliter (org.talend.dataprofiler.core.ui.filters.RuleFolderFliter)1