1 package org
.spearce
.egit
.core
.op
;
3 import org
.eclipse
.core
.resources
.IProject
;
4 import org
.eclipse
.core
.runtime
.IProgressMonitor
;
5 import org
.eclipse
.core
.runtime
.IStatus
;
6 import org
.eclipse
.core
.runtime
.Status
;
7 import org
.eclipse
.core
.runtime
.jobs
.Job
;
8 import org
.eclipse
.team
.core
.RepositoryProvider
;
9 import org
.eclipse
.team
.core
.TeamException
;
10 import org
.spearce
.egit
.core
.CoreText
;
11 import org
.spearce
.egit
.core
.GitProvider
;
13 public class RegisterProviderJob
extends Job
{
14 private final IProject project
;
16 public RegisterProviderJob(final IProject proj
) {
17 super(CoreText
.RegisterProviderJob_name
);
21 protected IStatus
run(IProgressMonitor monitor
) {
23 RepositoryProvider
.map(project
, GitProvider
.class.getName());
24 return Status
.OK_STATUS
;
25 } catch (TeamException e
) {