Package org.eclipse.egit.ui.internal.repository

Examples of org.eclipse.egit.ui.internal.repository.RepositoriesViewLabelProvider


  public static RepositoriesViewLabelProvider createLabelProvider() {
    final AtomicReference<RepositoriesViewLabelProvider> providerRef = new AtomicReference<RepositoriesViewLabelProvider>();
    Display.getDefault().syncExec(new Runnable() {

      public void run() {
        providerRef.set(new RepositoriesViewLabelProvider());
      }

    });
    return providerRef.get();
  }
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());
    this.repositoryViewer.addCheckStateListener(new ICheckStateListener() {
View Full Code Here

        | SWT.BORDER);
    RepositoriesViewContentProvider cp = new RepositoriesViewContentProvider();
    tv.setContentProvider(cp);
    GridDataFactory.fillDefaults().grab(true, true).hint(SWT.DEFAULT, 200)
        .applyTo(tv.getTree());
    tv.setLabelProvider(new RepositoriesViewLabelProvider());

    tv.addSelectionChangedListener(new ISelectionChangedListener() {

      public void selectionChanged(SelectionChangedEvent event) {
        checkPage();
View Full Code Here

      @Override
      public boolean hasChildren(Object element) {
        return false;
      }
    });
    tv.setLabelProvider(new RepositoriesViewLabelProvider());

    Composite tb = new Composite(main, SWT.NONE);
    GridLayoutFactory.fillDefaults().numColumns(1).applyTo(tb);
    GridDataFactory.fillDefaults().grab(false, true).applyTo(tb);
View Full Code Here

    commitOfTag = tag.getObjectId();
    TagOperation top = new TagOperation(repo, tag, false);
    top.execute(null);
    touchAndSubmit(null);

    RepositoriesViewLabelProvider provider = GitRepositoriesViewTestUtils
        .createLabelProvider();
    // LOCAL_BRANCHES = provider.getText(new LocalNode(new RepositoryNode(
    // null, repo), repo));
    TAGS = provider.getText(new TagsNode(new RepositoryNode(null, repo),
        repo));
  }
View Full Code Here

  @Before
  public void setup() throws Exception {
    repositoryFile = createProjectAndCommitToRepository();
    childRepositoryFile = createChildRepository(repositoryFile);
    RepositoriesViewLabelProvider provider = GitRepositoriesViewTestUtils
        .createLabelProvider();
    Repository repo = lookupRepository(childRepositoryFile);
    REMOTE_BRANCHES = provider.getText(new RemoteTrackingNode(
        new RepositoryNode(null, repo), repo));
    LOCAL_BRANCHES = provider.getText(new LocalNode(new RepositoryNode(
        null, repo), repo));
    ObjectId id = repo.resolve(repo.getFullBranch());
    initialCommitId = id.name();
  }
View Full Code Here

  private static IWorkbenchAdapter getRepsitoryNodeWorkbenchAdapter(final RepositoryNode node) {
    return new WorkbenchAdapter() {
      @Override
      public String getLabel(Object object) {
        ILabelProvider labelProvider= new RepositoriesViewLabelProvider();
        return labelProvider.getText(node);
      }
    };
  }
View Full Code Here

        Constants.OBJ_COMMIT);
    TagOperation top = new TagOperation(repo, tag, false);
    top.execute(null);
    touchAndSubmit(null);

    RepositoriesViewLabelProvider provider = GitRepositoriesViewTestUtils
        .createLabelProvider();
    LOCAL_BRANCHES = provider.getText(new LocalNode(new RepositoryNode(
        null, repo), repo));
    TAGS = provider.getText(new TagsNode(new RepositoryNode(null, repo),
        repo));
  }
View Full Code Here

TOP

Related Classes of org.eclipse.egit.ui.internal.repository.RepositoriesViewLabelProvider

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.