Package org.eclipse.emf.compare.domain
Interface ICompareEditingDomain
-
- All Known Implementing Classes:
EMFCompareEditingDomain
public interface ICompareEditingDomainSomething like EMF'sEditingDomainbut dedicated to the handling of comparison merging and undoing / redoing those merge.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description CommandcreateCopyCommand(List<? extends Diff> differences, boolean leftToRight, IMerger.Registry mergerRegistry)Deprecated.ICompareCopyCommandcreateCopyCommand(List<? extends Diff> differences, boolean leftToRight, IMerger.Registry mergerRegistry, IMergeRunnable runnable)Creates a new command that will execute the givenIMergeRunnablethat is expected to merge the given differences in from right to left or left to right by using the mergers defined in the given merger registry.ChangeRecordergetChangeRecorder()Deprecated.ICompareCommandStackgetCommandStack()Returns the associatedICompareCommandStack.
-
-
-
Method Detail
-
getCommandStack
ICompareCommandStack getCommandStack()
Returns the associatedICompareCommandStack.- Returns:
- the associated
ICompareCommandStack.
-
getChangeRecorder
@Deprecated ChangeRecorder getChangeRecorder()
Deprecated.Returns the associatedChangeRecorder.- Returns:
- the associated
ChangeRecorder. - Since:
- 3.0
-
createCopyCommand
@Deprecated Command createCopyCommand(List<? extends Diff> differences, boolean leftToRight, IMerger.Registry mergerRegistry)
Deprecated.Creates a new command that will merge the given differences in from right to left or left to right by using the mergers defined in the given merger registry.- Parameters:
differences- the differences to merge.leftToRight- whether the merge has to be merge from left to right or right to left.mergerRegistry- the merger registry to query to get the appropriate mergers for each difference to be merged.- Returns:
- the created command.
- Since:
- 3.0
-
createCopyCommand
ICompareCopyCommand createCopyCommand(List<? extends Diff> differences, boolean leftToRight, IMerger.Registry mergerRegistry, IMergeRunnable runnable)
Creates a new command that will execute the givenIMergeRunnablethat is expected to merge the given differences in from right to left or left to right by using the mergers defined in the given merger registry.- Parameters:
differences- the differences to merge.leftToRight- whether the merge has to be merge from left to right or right to left.mergerRegistry- the merger registry to query to get the appropriate mergers for each difference to be merged.runnable- the runnable that will implement the merge- Returns:
- the created command.
- Since:
- 4.0
-
-