Search in sources :

Example 1 with AnalysisTypeContentProvider

use of org.talend.dataprofiler.core.ui.wizard.analysis.provider.AnalysisTypeContentProvider in project tdq-studio-se by Talend.

the class NewWizardSelectionPage method createControl.

/*
     * (non-Javadoc)
     * 
     * @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite)
     */
public void createControl(Composite parent) {
    Composite container = new Composite(parent, SWT.NONE);
    GridLayout gdLayout = new GridLayout(1, true);
    container.setLayout(gdLayout);
    PatternFilter filter = new PatternFilter();
    FilteredTree tree = new FilteredTree(container, SWT.BORDER, filter, true);
    typeTreeViewer = tree.getViewer();
    typeTreeViewer.setContentProvider(new AnalysisTypeContentProvider());
    typeTreeViewer.setLabelProvider(new AnalysisTypeLabelProvider());
    typeTreeViewer.setInput(ViewerDataFactory.createTreeData());
    addListeners();
    setControl(container);
}
Also used : GridLayout(org.eclipse.swt.layout.GridLayout) PatternFilter(org.eclipse.ui.dialogs.PatternFilter) AnalysisTypeContentProvider(org.talend.dataprofiler.core.ui.wizard.analysis.provider.AnalysisTypeContentProvider) Composite(org.eclipse.swt.widgets.Composite) AnalysisTypeLabelProvider(org.talend.dataprofiler.core.ui.wizard.analysis.provider.AnalysisTypeLabelProvider) FilteredTree(org.eclipse.ui.dialogs.FilteredTree)

Aggregations

GridLayout (org.eclipse.swt.layout.GridLayout)1 Composite (org.eclipse.swt.widgets.Composite)1 FilteredTree (org.eclipse.ui.dialogs.FilteredTree)1 PatternFilter (org.eclipse.ui.dialogs.PatternFilter)1 AnalysisTypeContentProvider (org.talend.dataprofiler.core.ui.wizard.analysis.provider.AnalysisTypeContentProvider)1 AnalysisTypeLabelProvider (org.talend.dataprofiler.core.ui.wizard.analysis.provider.AnalysisTypeLabelProvider)1