public static class EMFCompareTextMergeViewer.EditCommand extends CompoundCommand implements ICompareCopyCommand
AbstractCommand.NonDirtyingcommandList, LAST_COMMAND_ALL, MERGE_COMMAND_ALL, resultIndexdescription, 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, unwrapcanExecute, chain, setDescription, setLabelclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcanExecute, canUndo, chain, dispose, execute, getAffectedObjects, getDescription, getLabel, getResult, redo, undopublic 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 ICompareCopyCommandpublic 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.