public class RTEGitCompareCommandImpl extends Object implements RTEGitCompareCommand
HEAD, INDEX, LOCAL| Constructor and Description |
|---|
RTEGitCompareCommandImpl() |
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.core.runtime.IStatus |
call() |
RTEGitCompareCommand |
setCompareType(CompareType type)
Set compare type.
|
RTEGitCompareCommand |
setFilter(String filter)
Set filter for selection.
|
RTEGitCompareCommand |
setLocalRef(String ref)
Set local branch/ref/commit for the compare operation.
|
RTEGitCompareCommand |
setRemoteRef(String ref)
Set branch/ref/commit for the compare operation.
|
RTEGitCompareCommand |
setRepository(File repository)
Set path to existing Git repository
|
RTEGitCompareCommand |
setSelection(File file)
Initialize current selection using
File. |
RTEGitCompareCommand |
setSelection(org.eclipse.core.resources.IResource[] resources)
Initialize current selection using array of
IResource. |
public org.eclipse.core.runtime.IStatus call()
call in interface RTAbstractCommandpublic RTEGitCompareCommand setRepository(File repository)
RTEGitCompareCommandsetRepository in interface RTEGitCompareCommandrepository - - path to Git repository. Path may or may not include '.git' folder. Paths '/dir1/dir2/dir3' and '/dir1/dir2/dir3/.git' are considered the samepublic RTEGitCompareCommand setRemoteRef(String ref)
RTEGitCompareCommandsetRemoteRef in interface RTEGitCompareCommandref - - branch name, reference, commit id or Indexpublic RTEGitCompareCommand setLocalRef(String ref)
RTEGitCompareCommandThe default value is Local.
setLocalRef in interface RTEGitCompareCommandref - - branch name, reference or commit idpublic RTEGitCompareCommand setCompareType(CompareType type)
RTEGitCompareCommandCompareType for details.
Default value is AutosetCompareType in interface RTEGitCompareCommandtype - - CompareTypepublic RTEGitCompareCommand setSelection(org.eclipse.core.resources.IResource[] resources)
RTEGitCompareCommandIResource. Client may use IFile or IProject as selection.
When using projects the command will extract model files from selection. Client may also use setFilter(String) to further refine
current selection.setSelection in interface RTEGitCompareCommandpublic RTEGitCompareCommand setSelection(File file)
RTEGitCompareCommandFile.setSelection in interface RTEGitCompareCommandfile - - file in Git repository with absolute or repository-relative pathpublic RTEGitCompareCommand setFilter(String filter)
RTEGitCompareCommandsetFilter in interface RTEGitCompareCommandfilter - - comma-separated list of workspace or repository-relative paths. Path can contain ? and * symbols.