Package org.eclipse.jface.viewers

Examples of org.eclipse.jface.viewers.DelegatingStyledCellLabelProvider


        return elem1.getLineNum() - elem2.getLineNum();
      }
    });
   
    //allow for formated labels
    viewer.setLabelProvider(new DelegatingStyledCellLabelProvider(new BasicSearchLabelProvider(this)));
    this.fContentProvider = new OccurrencesContentProvider();
    viewer.setContentProvider(this.fContentProvider);
  }
View Full Code Here


    super.createControl(parent);

    TreeViewer viewer= getTreeViewer();
    viewer.setContentProvider(fContentProvider);
    DelegatingStyledCellLabelProvider delegatingStyledCellLabelProvider = new DelegatingStyledCellLabelProvider(new JsonLabelProvider());
    viewer.setLabelProvider(delegatingStyledCellLabelProvider);
    getSite().getPage().addPostSelectionListener(this);

    if (fInput != null) {
      viewer.setInput(fInput);
View Full Code Here

    contentProvider = new ResultsContentProvider();
    labelProvider = new ResultsLabelProvider(getControl().getFont()
        .getFontData()[0]);

    setContentProvider(contentProvider);
    setLabelProvider(new DelegatingStyledCellLabelProvider(labelProvider));

    if (filterProvider != null) {
      addFilter(new ViewerFilter() {
        @Override
        public boolean select(Viewer viewer, Object parentElement,
View Full Code Here

      public Object[] getChildren(Object arg0) {
        // TODO: handle children? Granularity, Bindings?
        return null;
      }
    });
    treeViewer.setLabelProvider(new DelegatingStyledCellLabelProvider(
        new OutlineLabelProvider()));
    treeViewer.addSelectionChangedListener(this);
    treeViewer.setInput(forms);
    treeSelectionChangedListener = new TreeSelectionChangedListener();
    treeViewer.addSelectionChangedListener(treeSelectionChangedListener);
View Full Code Here

          return ((Path) element).getStyledText(element);

        return super.getStyledText(element);
      }
    };
    viewer.setLabelProvider(new DelegatingStyledCellLabelProvider(
        styleProvider));
    viewer.setSorter(new ViewerSorter());

    Map<MergeFailureReason, RevertFailure> failures = new HashMap<MergeFailureReason, RevertFailure>();
    for (Entry<String, MergeFailureReason> reason : reasons.entrySet()) {
View Full Code Here

      public Image getImage(Object element) {
        return wrapped.getImage(element);
      }
    };
    viewer.setLabelProvider(new DelegatingStyledCellLabelProvider(
        styleProvider));
    applyDialogFont(composite);
    GridDataFactory.fillDefaults().grab(true, true)
        .align(SWT.FILL, SWT.FILL).span(2, 1)
        .applyTo(viewer.getControl());
View Full Code Here

          .create());
      area.setLayout(new FillLayout());

      TreeViewer treeViewer = new TreeViewer(area);
      treeViewer.setContentProvider(new ContentProvider());
      treeViewer.setLabelProvider(new DelegatingStyledCellLabelProvider(
          new WorkbenchLabelProvider()));
      treeViewer.setInput(commits);

      return area;
    }
View Full Code Here

    this.repositoryViewer = CheckboxTableViewer.newCheckList(
        repositoryGroup, SWT.SINGLE | SWT.V_SCROLL | SWT.H_SCROLL
            | SWT.BORDER);
    this.repositoryViewer
        .setLabelProvider(new DelegatingStyledCellLabelProvider(
            new RepositoriesViewLabelProvider()));
    this.repositoryViewer
        .setContentProvider(new RepositoriesViewContentProvider());
    this.repositoryViewer
        .setInput(ResourcesPlugin.getWorkspace().getRoot());
View Full Code Here

          return ((RepositoryCommit) element).getStyledText(element);

        return super.getStyledText(element);
      }
    };
    treeViewer.setLabelProvider(new DelegatingStyledCellLabelProvider(
        styleProvider) {

      @Override
      public String getToolTipText(final Object element) {
        if (element instanceof FetchResultAdapter) {
View Full Code Here

        }
        return super.getElements(element);
      }

    });
    viewer.setLabelProvider(new DelegatingStyledCellLabelProvider(
        new CommitResultLabelProvider(getLayout())));
  }
View Full Code Here

TOP

Related Classes of org.eclipse.jface.viewers.DelegatingStyledCellLabelProvider

Copyright © 2018 www.massapicom. 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.