Examples of FilteredTree


Examples of org.eclipse.ui.dialogs.FilteredTree

   
   
  //Logic
    PatternFilter patternFilter = new PatternFilter();
    patternFilter.setIncludeLeadingWildcard(true);
    filteredTree = new FilteredTree(arl, SWT.FULL_SELECTION, patternFilter);
    mappings = filteredTree.getViewer();
    mappings.setUseHashlookup(true);
    final Tree tree = mappings.getTree();
   
    //Master/Detail relation
View Full Code Here

Examples of org.eclipse.ui.dialogs.FilteredTree

    {

        parent.setLayout(new GridLayout(1, true));
        PatternFilter filter = new PatternFilter();
        filter.setIncludeLeadingWildcard(true);
        FilteredTree tree = new FilteredTree(parent, SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL, filter, true);

        viewer = tree.getViewer();

        viewer.setContentProvider(new ServiceContentProviderFlatView());
        viewer.setLabelProvider(new ServiceLabelProvider());
        viewer.setSorter(sorter);
       
View Full Code Here

Examples of org.eclipse.ui.dialogs.FilteredTree

     *
     * @param parent
     */
    private void createFilteredTree(Composite parent) {
      // Create a FilteredTree for the categories and wizards
      FilteredTree filteredTree = new FilteredTree(parent, SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER, new WizardPatternFilter());
      viewer = filteredTree.getViewer();
      filteredTree.setFont(parent.getFont());

      viewer.setContentProvider(new WizardContentProvider());
      viewer.setLabelProvider(new WorkbenchLabelProvider());
      viewer.setComparator(new ViewerComparator() {
        public int category(Object element) {
View Full Code Here

Examples of org.eclipse.ui.dialogs.FilteredTree

    }
  }

  @Override
  protected ColumnViewer createViewer(Composite client) {
    FilteredTree filter = new FilteredTree(client, SWT.MULTI | SWT.BORDER, new PatternFilter(), true);
    treeViewer = filter.getViewer();
    return treeViewer;
  }
View Full Code Here

Examples of org.eclipse.ui.dialogs.FilteredTree

     * @param parent the parent composite
     * @return the tree viewer
     */
    protected TreeViewer createTreeViewer(Composite parent) {
        int style = SWT.BORDER | (fAllowMultiple ? SWT.MULTI : SWT.SINGLE);
    FilteredTree filteredTree = new FilteredTree(parent, style,
        new PatternFilter());
//    filteredTree.setBackground(parent.getDisplay().getSystemColor(
//        SWT.COLOR_LIST_BACKGROUND));

//    GridData gd = new GridData(SWT.FILL, SWT.FILL, true, true);
//    gd.horizontalIndent = IDialogConstants.HORIZONTAL_MARGIN;
//    gd.verticalIndent = IDialogConstants.HORIZONTAL_MARGIN;
//    filteredTree.getFilterControl().setLayoutData(gd);

    fViewer = filteredTree.getViewer();
    fViewer.setUseHashlookup(true);
        fViewer.setContentProvider(fContentProvider);
        fViewer.setLabelProvider(fLabelProvider);
        fViewer.addSelectionChangedListener(new ISelectionChangedListener() {
            public void selectionChanged(SelectionChangedEvent event) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.