public abstract class ScmHandlerUi
extends java.lang.Object
implements org.eclipse.core.runtime.IExecutableExtension
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ATTR_CLASS |
static java.lang.String |
ATTR_TYPE |
private java.lang.String |
type |
| Constructor and Description |
|---|
ScmHandlerUi() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canSelectRevision() |
boolean |
canSelectUrl() |
java.lang.String |
getType() |
boolean |
isValidRevision(ScmUrl scmUrl,
java.lang.String scmRevision) |
boolean |
isValidUrl(java.lang.String scmUrl) |
java.lang.String |
selectRevision(org.eclipse.swt.widgets.Shell shell,
ScmUrl scmUrl,
java.lang.String scmRevision)
Show revision/tag browser dialog and allow user to select revision/tag
|
ScmUrl |
selectUrl(org.eclipse.swt.widgets.Shell shell,
ScmUrl scmUrl)
Show repository browser dialog and allow user to select location
|
void |
setInitializationData(org.eclipse.core.runtime.IConfigurationElement config,
java.lang.String propertyName,
java.lang.Object data) |
public static final java.lang.String ATTR_TYPE
public static final java.lang.String ATTR_CLASS
private java.lang.String type
public java.lang.String getType()
public java.lang.String selectRevision(org.eclipse.swt.widgets.Shell shell,
ScmUrl scmUrl,
java.lang.String scmRevision)
shell - the shell for revison/tag browser dialogscmUrl - the current ScmUrl, or null if nonescmRevision - the current revision, or null if nonepublic ScmUrl selectUrl(org.eclipse.swt.widgets.Shell shell, ScmUrl scmUrl)
shell - the shell for repository browser dialogscmUrl - the current ScmUrl, or null if nonepublic boolean isValidUrl(java.lang.String scmUrl)
public boolean isValidRevision(ScmUrl scmUrl, java.lang.String scmRevision)
public boolean canSelectUrl()
public boolean canSelectRevision()
public void setInitializationData(org.eclipse.core.runtime.IConfigurationElement config,
java.lang.String propertyName,
java.lang.Object data)
setInitializationData in interface org.eclipse.core.runtime.IExecutableExtension