Package org.eclipse.team.core

Examples of org.eclipse.team.core.RepositoryProvider


    public Set<String> getPluginsForProjectVersionControlSystem(IJavaProject project) {
        if (project == null) {
            return null;
        }

        RepositoryProvider repositoryProvider = RepositoryProvider.getProvider(project.getProject());
        if (repositoryProvider == null) {
            return null;
        }

        String repositoryProviderId = repositoryProvider.getID();

        Set<String> matches = new HashSet<String>();
        synchronized (plugins) {
            for (Map.Entry<String,ServiceReference<VersionControlIgnoresPlugin>> entry : plugins.entrySet()) {
                ServiceReference<VersionControlIgnoresPlugin> pluginReference = entry.getValue();
View Full Code Here


     * @return a hashtable mapping providers to their resources
     */
    protected Hashtable getProviderMapping(IResource[] resources) {
        Hashtable result = new Hashtable();
        for (int i = 0; i < resources.length; i++) {
            RepositoryProvider provider = RepositoryProvider.getProvider(resources[i].getProject());
            List list = (List) result.get(provider);
            if (list == null) {
                list = new ArrayList();
                result.put(provider, list);
            }
View Full Code Here

    static public String getProjectRepositoryProviderId(IJavaProject project) {
        if (project == null) {
            return null;
        }

        RepositoryProvider repositoryProvider = RepositoryProvider.getProvider(project.getProject());
        if (repositoryProvider != null) {
            return repositoryProvider.getID();
        }

        return null;
    }
View Full Code Here

   */
  public static IFileRevision getTeamRevision(RepositoryPlugin repository, Jar jar) {
    IFolder repoRoot = ReleaseUtils.getLocalRepoLocation(repository);
    IProject repoProject = repoRoot.getProject();

    RepositoryProvider repoProvider = RepositoryProvider.getProvider(repoProject);
    if (repoProvider == null) {
      return null;
    }

    IFile path = getJarFileLocation(repository, jar);
View Full Code Here

     * @param monitor
     * @return the file revisions for the given resource
     */
  public static IFileRevision[] getTeamRevisions(IResource resource, int flags, IProgressMonitor monitor) {

    RepositoryProvider provider = RepositoryProvider.getProvider(resource.getProject());
    if (provider == null) {
      return null;
    }

    IFileHistory history = provider.getFileHistoryProvider().getFileHistoryFor(resource, flags, monitor);
    if (history == null) {
      return new IFileRevision[0];
    }
    return history.getFileRevisions();
  }
View Full Code Here

  public static boolean isTeamProjectUpToDate(IProject project, IProgressMonitor monitor) throws CoreException {
    return getTeamOutOfSyncResources(project, monitor).length == 0;
  }

  public static IResource[] getTeamOutOfSyncResources(IProject project, IProgressMonitor monitor) throws CoreException {
    RepositoryProvider provider = RepositoryProvider.getProvider(project);
    if (provider == null) {
      return new IResource[0];
    }
    Subscriber subscriber = provider.getSubscriber();
    subscriber.refresh(new IResource[] {project}, IResource.DEPTH_INFINITE, monitor);

    SyncInfoSet sis = new SyncInfoSet();
    subscriber.collectOutOfSync(new IResource[] {project}, IResource.DEPTH_INFINITE, sis, monitor);
    List<IResource> res = new ArrayList<IResource>();
View Full Code Here

        VCSAdapter vcs = VCSAdapter.getAdapter(project);
        this.vcs.update(vcs);
        if (vcs == null)
            return;
        if (log.isTraceEnabled()) {
            RepositoryProvider provider = RepositoryProvider
                .getProvider(project);
            Subscriber subscriber = provider.getSubscriber();
            if (subscriber != null)
                subscriber.addListener(subscriberChangeListener);
            else
                log.error("Could not add this SharedProject as an ISubscriberChangeListener."); //$NON-NLS-1$
        }
View Full Code Here

     * @param resource
     * @return The identifier of the resource's Team Provider.
     */
    public String getProviderID(IResource resource) {
        IProject project = resource.getProject();
        RepositoryProvider provider = RepositoryProvider.getProvider(project);
        String vcsIdentifier = provider.getID();

        return vcsIdentifier;
    }
View Full Code Here

        boolean underVCS;
        underVCS = RepositoryProvider.isShared(project);
        if (!underVCS)
            return null;

        RepositoryProvider provider = RepositoryProvider.getProvider(project);
        final VCSAdapter adapter = getAdapter(provider.getID());
        return adapter;
    }
View Full Code Here

        } catch (EvolizerException e) {
            MessageDialog.openError(activeShell, "Missing File Content Importer SetUp Error", "Problems encountered while connecting to the release history DB while setting up the importer wizard.");
            return null;
        }
       
        RepositoryProvider provider = RepositoryProvider.getProvider(project);
        if (provider instanceof CVSTeamProvider) {
            CVSMissingSourceCodeWizard wizard = new CVSMissingSourceCodeWizard();

            WizardDialog dialog = new WizardDialog(activeShell, wizard);
            dialog.open();
View Full Code Here

TOP

Related Classes of org.eclipse.team.core.RepositoryProvider

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.