Package org.eclipse.egit.ui.internal

Examples of org.eclipse.egit.ui.internal.GitLabelProvider


    area.setLayoutData(new GridData(GridData.FILL_BOTH));
    area.setLayout(new FillLayout());

    TableViewer branchesList = new TableViewer(area);
    branchesList.setContentProvider(ArrayContentProvider.getInstance());
    branchesList.setLabelProvider(new GitLabelProvider());
    branchesList.setInput(nodes);
    return area;
  }
View Full Code Here


    super(shell, multi);
    setTitle(UIText.CommitSelectionDialog_Title);
    setMessage(UIText.CommitSelectionDialog_Message);
    labelProvider = new CommitLabelProvider();
    setListLabelProvider(labelProvider);
    setDetailsLabelProvider(new GitLabelProvider() {
      @Override
      public Image getImage(Object element) {
        if (element instanceof RepositoryCommit) {
          RepositoryCommit commit = (RepositoryCommit) element;
          return super.getImage(commit.getRepository());
View Full Code Here

        public void checkStateChanged(CheckStateChangedEvent event) {
          checkPage();
        }
      });

      viewer.setLabelProvider(new GitLabelProvider());
      viewer.setComparator(new ViewerComparator(
          CommonUtils.STRING_ASCENDING_COMPARATOR));
      viewer.setInput(nodes);
    } else {
      branchesList = new TableViewer(area, this.style | SWT.H_SCROLL
          | SWT.V_SCROLL | SWT.BORDER);
      GridDataFactory.fillDefaults().grab(true, true)
          .applyTo(branchesList.getControl());
      branchesList.setContentProvider(ArrayContentProvider.getInstance());
      branchesList.setLabelProvider(new GitLabelProvider());
      branchesList.setComparator(new ViewerComparator(
          CommonUtils.STRING_ASCENDING_COMPARATOR));
      branchesList.setInput(nodes);
      branchesList
          .addSelectionChangedListener(new ISelectionChangedListener() {
View Full Code Here

      ITreeContentProvider {

    public ChangeSetPreview(Composite composite) {
      super(composite);
      fViewer.setContentProvider(this);
      fViewer.setLabelProvider(new GitLabelProvider() {

        @Override
        public Image getImage(Object element) {
          if (element instanceof GitModelCommitMockup)
            return getChangesetIcon();
View Full Code Here

  private GitLabelProvider delegateLabelProvider;

  @Override
  protected GitLabelProvider getDelegateLabelProvider() {
    if (delegateLabelProvider == null)
      delegateLabelProvider = new GitLabelProvider();

    return delegateLabelProvider;
  }
View Full Code Here

    branchViewer = new TableViewer(toolkit.createTable(branchesArea,
        SWT.V_SCROLL | SWT.H_SCROLL));
    GridDataFactory.fillDefaults().grab(true, true).hint(SWT.DEFAULT, 50)
        .applyTo(branchViewer.getControl());
    branchViewer.setSorter(new ViewerSorter());
    branchViewer.setLabelProvider(new GitLabelProvider() {

      public String getText(Object element) {
        return Repository.shortenRefName(super.getText(element));
      }
View Full Code Here

TOP

Related Classes of org.eclipse.egit.ui.internal.GitLabelProvider

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.