|
Lines 14-23
Link Here
|
| 14 |
import org.eclipse.core.resources.IProject; |
14 |
import org.eclipse.core.resources.IProject; |
| 15 |
import org.eclipse.core.resources.IResource; |
15 |
import org.eclipse.core.resources.IResource; |
| 16 |
import org.eclipse.core.runtime.Assert; |
16 |
import org.eclipse.core.runtime.Assert; |
| 17 |
import org.eclipse.core.runtime.CoreException; |
|
|
| 18 |
import org.eclipse.core.runtime.IProgressMonitor; |
| 19 |
import org.eclipse.core.runtime.IStatus; |
| 20 |
import org.eclipse.core.runtime.Status; |
| 21 |
import org.eclipse.egit.core.GitProvider; |
17 |
import org.eclipse.egit.core.GitProvider; |
| 22 |
import org.eclipse.jface.window.Window; |
18 |
import org.eclipse.jface.window.Window; |
| 23 |
import org.eclipse.mylyn.internal.git.ui.GetChangeSetDialog; |
19 |
import org.eclipse.mylyn.internal.git.ui.GetChangeSetDialog; |
|
Lines 37-44
Link Here
|
| 37 |
public static final String ID_PLUGIN = "org.eclipse.mylyn.git.ui"; //$NON-NLS-1$ |
33 |
public static final String ID_PLUGIN = "org.eclipse.mylyn.git.ui"; //$NON-NLS-1$ |
| 38 |
|
34 |
|
| 39 |
@Override |
35 |
@Override |
| 40 |
public ChangeSet getChangeSet(ScmRepository repo, IResource resource, IProgressMonitor monitor) |
36 |
public ChangeSet getChangeSet(ScmRepository repository, IResource resource) { |
| 41 |
throws CoreException { |
|
|
| 42 |
Assert.isNotNull(resource); |
37 |
Assert.isNotNull(resource); |
| 43 |
|
38 |
|
| 44 |
final IProject project = resource.getProject(); |
39 |
final IProject project = resource.getProject(); |
|
Lines 50-58
Link Here
|
| 50 |
|
45 |
|
| 51 |
// Check if the provider is for Git |
46 |
// Check if the provider is for Git |
| 52 |
if (!GitProvider.class.getName().equals(scmConnector.getProviderId())) { |
47 |
if (!GitProvider.class.getName().equals(scmConnector.getProviderId())) { |
| 53 |
throw new CoreException(new Status(IStatus.ERROR, ID_PLUGIN, "No Git connector: " |
48 |
throw new RuntimeException("No Git connector: " + scmConnector.getProviderId()); |
| 54 |
+ scmConnector.getProviderId()) { |
|
|
| 55 |
}); |
| 56 |
} |
49 |
} |
| 57 |
|
50 |
|
| 58 |
final GetChangeSetDialog dialog = new GetChangeSetDialog(null, project); |
51 |
final GetChangeSetDialog dialog = new GetChangeSetDialog(null, project); |