public static class EMFCompareTextMergeViewer.EditCommand extends CompoundCommand implements ICompareCopyCommand
AbstractCommand.NonDirtying
commandList, LAST_COMMAND_ALL, MERGE_COMMAND_ALL, resultIndex
description, isExecutable, isPrepared, label
Constructor and Description |
---|
EditCommand(Diff diff,
IModelUpdateStrategy modelUpdateStrategy,
IMergeViewer.MergeViewerSide side,
String newValue)
Creates a new compound command for the given
side . |
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.Multimap<DifferenceState,Diff> |
getChangedDiffs()
Returns the state changes to any diffs that this command produced.
|
Diff |
getDiff()
Returns the diff on which this command operates.
|
IModelUpdateStrategy |
getModelUpdateStrategy()
Returns the update strategy used to make the change to the feature.
|
IMergeViewer.MergeViewerSide |
getSide()
Returns the side on which this command operates.
|
boolean |
isLeftToRight()
Returns true if the command will be applied from left to right side, false otherwise.
|
protected boolean |
prepare() |
EMFCompareTextMergeViewer.EditCommand |
recreate()
Creates a new instance of this same command.
|
append, appendAndExecute, appendIfCanExecute, canUndo, dispose, execute, getAffectedObjects, getCommandList, getDescription, getLabel, getMergedAffectedObjectsCollection, getMergedResultCollection, getResult, getResultIndex, isEmpty, redo, toString, undo, unwrap
canExecute, chain, setDescription, setLabel
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canExecute, canUndo, chain, dispose, execute, getAffectedObjects, getDescription, getLabel, getResult, redo, undo
public EditCommand(Diff diff, IModelUpdateStrategy modelUpdateStrategy, IMergeViewer.MergeViewerSide side, String newValue)
side
.side
- The side on which this command executes.public boolean isLeftToRight()
isLeftToRight
in interface ICompareCopyCommand
public IMergeViewer.MergeViewerSide getSide()
public Diff getDiff()
public IModelUpdateStrategy getModelUpdateStrategy()
public com.google.common.collect.Multimap<DifferenceState,Diff> getChangedDiffs()
public EMFCompareTextMergeViewer.EditCommand recreate()
protected boolean prepare()
prepare
in class CompoundCommand
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.