public abstract class ScmHandler extends Object implements Comparable<ScmHandler>, org.eclipse.core.runtime.IExecutableExtension
Modifier and Type | Field and Description |
---|---|
static String |
ATTR_CLASS |
static String |
ATTR_PRIORITY |
static String |
ATTR_TYPE |
Constructor and Description |
---|
ScmHandler() |
Modifier and Type | Method and Description |
---|---|
abstract void |
checkoutProject(MavenProjectScmInfo info,
File location,
org.eclipse.core.runtime.IProgressMonitor monitor) |
int |
compareTo(ScmHandler o) |
boolean |
equals(Object obj) |
int |
getPriority() |
String |
getType() |
int |
hashCode() |
InputStream |
open(String url,
String revision)
Opens resource from SCM
|
void |
setInitializationData(org.eclipse.core.runtime.IConfigurationElement config,
String propertyName,
Object data) |
public static final String ATTR_CLASS
public static final String ATTR_TYPE
public static final String ATTR_PRIORITY
public String getType()
public int getPriority()
public InputStream open(String url, String revision) throws org.eclipse.core.runtime.CoreException
url
- an url in maven-scm format for the resource to openrevision
- a resource revision to openorg.eclipse.core.runtime.CoreException
- when selected resource can't be openhttp://maven.apache.org/scm/scm-url-format.html
public abstract void checkoutProject(MavenProjectScmInfo info, File location, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException, InterruptedException
info
- location
- monitor
- org.eclipse.core.runtime.CoreException
InterruptedException
public void setInitializationData(org.eclipse.core.runtime.IConfigurationElement config, String propertyName, Object data)
setInitializationData
in interface org.eclipse.core.runtime.IExecutableExtension
public int compareTo(ScmHandler o)
compareTo
in interface Comparable<ScmHandler>
Copyright © 2005–2015 Sonatype, Inc.. All rights reserved.