Package bndtools.team

Source Code of bndtools.team.TeamUtils

package bndtools.team;

import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.team.core.RepositoryProvider;

public class TeamUtils {
    /**
     * Get the id of the repository provider that is managing the project
     *
     * @param project
     *            the project
     * @return null when project is null or when the project is not managed by a version control plugin
     */
    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;
    }
}
TOP

Related Classes of bndtools.team.TeamUtils

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.