public class MergeSessionInfo
extends java.lang.Object
Constructor and Description |
---|
MergeSessionInfo(java.lang.String fileType,
IInputOutputDescriptor ancestorInput,
IInputOutputDescriptor olderInput,
IInputOutputDescriptor newerInput,
IInputOutputDescriptor mergedOutput,
MergeModeType mergeMode,
IMergeStatusCallback callback,
boolean isMergeFacadeMode,
boolean isSilent)
Constructs a new MergeSessionInfo.
|
Modifier and Type | Method and Description |
---|---|
IInputOutputDescriptor |
getAncestorInput()
Retrieves the associated input data for ancestor contributor
|
IMergeStatusCallback |
getCallback()
Retrieves the associated call back for this compare/merge session.
|
java.lang.String |
getCharset()
Will detect the character set encoding for the contributors of this merge
session.
|
org.eclipse.compare.CompareConfiguration |
getCompareConfiguration()
Retrieves the associated CompareConfiguration data used to construct the
compare editor UI.
|
ICompareStatistics |
getCompareStatistics() |
IInputOutputDescriptor |
getDescriptor(ContributorType contributor)
Retrieves Input/Output descriptor for a given contributor
|
java.lang.String |
getFileType()
Retrieves the associated file type for this merge session.
|
IInputOutputDescriptor |
getMergedOutput()
Retrieves the merged output data for this compare/merge session.
|
MergeModeType |
getMergeMode()
Retrieves the merge mode of this compare/merge session.
|
IMergePropertiesProvider |
getMergePropertiesProvider() |
IInputOutputDescriptor |
getNewerInput()
Retrieves the associated input data for one of the contributor(
contributor2).
|
IInputOutputDescriptor |
getOlderInput()
Retrieves the associated input data for one of the contributor (
contributor1).
|
boolean |
isContributorModelContainSubUnits() |
boolean |
isFullContextLogicalModelMerge() |
boolean |
isFusing() |
boolean |
isMergeFacadeMode()
Determines whether this merge session has been started from merge facade
|
boolean |
isMergeSession()
Determines whether it is a merge session or a compare session or not.
|
boolean |
isSilent()
Determines whether this is a silent merge session or not.
|
boolean |
isThreeWay()
Determines whether this is a three way compare/merge session or not
|
void |
setCompareStatistics(ICompareStatistics st) |
void |
setContributorModelContainSubUnits(boolean contributorModelContainSubUnits) |
void |
setFullContextLogicalModelMerge(boolean fullContextLogicalModelMerge) |
void |
setMergePropertiesProvider(IMergePropertiesProvider provider) |
public MergeSessionInfo(java.lang.String fileType, IInputOutputDescriptor ancestorInput, IInputOutputDescriptor olderInput, IInputOutputDescriptor newerInput, IInputOutputDescriptor mergedOutput, MergeModeType mergeMode, IMergeStatusCallback callback, boolean isMergeFacadeMode, boolean isSilent)
fileType
- the type of the objects to be merged.ancestorInput
- for the "Ancestor" object. It is the "original version" for
both "Older" and "Newer" versions. It must be null for
two-way compare/merge. Can not be null for Silent Merge
session.olderInput
- for the "Older" versionnewerInput
- for the "Newer" versionmergedOutput
- to save the result of the merge. It must be null for the
Compare session.mergeMode
- callback
- to be notified when the session is finished. Possible
callback's MergeStatusType: COMPLETED, CANCELED, FAILEDisMergeFacadeMode
- to be true when the session is invoked through MergeFacade
interface. Otherwise it must be false.isSilent
- to be true when session is the Silent Merge Session.MergeModeType
public void setMergePropertiesProvider(IMergePropertiesProvider provider)
public IMergePropertiesProvider getMergePropertiesProvider()
public boolean isMergeSession()
public boolean isThreeWay()
public boolean isSilent()
public boolean isFusing()
public boolean isMergeFacadeMode()
public java.lang.String getFileType()
public IInputOutputDescriptor getAncestorInput()
public IInputOutputDescriptor getOlderInput()
public IInputOutputDescriptor getNewerInput()
public IInputOutputDescriptor getMergedOutput()
public IInputOutputDescriptor getDescriptor(ContributorType contributor)
contributor
- to find descriptor forpublic MergeModeType getMergeMode()
public IMergeStatusCallback getCallback()
public org.eclipse.compare.CompareConfiguration getCompareConfiguration()
public java.lang.String getCharset()
public void setContributorModelContainSubUnits(boolean contributorModelContainSubUnits)
public boolean isContributorModelContainSubUnits()
public boolean isFullContextLogicalModelMerge()
public void setFullContextLogicalModelMerge(boolean fullContextLogicalModelMerge)
public void setCompareStatistics(ICompareStatistics st)
public ICompareStatistics getCompareStatistics()