Class EMFCompareTextMergeViewer.EditCommand

java.lang.Object
org.eclipse.emf.common.command.AbstractCommand
org.eclipse.emf.common.command.CompoundCommand
org.eclipse.emf.compare.ide.ui.internal.contentmergeviewer.text.EMFCompareTextMergeViewer.EditCommand
All Implemented Interfaces:
Command, ICompareCopyCommand
Enclosing class:
EMFCompareTextMergeViewer

public static class EMFCompareTextMergeViewer.EditCommand extends CompoundCommand implements ICompareCopyCommand
A compound command that updates the value of a feature associated with a diff and rejects the diff itself.
  • Constructor Details

  • Method Details

    • isLeftToRight

      public boolean isLeftToRight()
      Returns true if the command will be applied from left to right side, false otherwise.
      Specified by:
      isLeftToRight in interface ICompareCopyCommand
      Returns:
      true if the command will be applied from left to right side, false otherwise.
    • getSide

      public IMergeViewer.MergeViewerSide getSide()
      Returns the side on which this command operates.
      Returns:
      the side on which this command operates.
    • getDiff

      public Diff getDiff()
      Returns the diff on which this command operates.
      Returns:
      the diff on which this command operates.
    • getModelUpdateStrategy

      public IModelUpdateStrategy getModelUpdateStrategy()
      Returns the update strategy used to make the change to the feature.
      Returns:
    • getChangedDiffs

      public com.google.common.collect.Multimap<DifferenceState,Diff> getChangedDiffs()
      Returns the state changes to any diffs that this command produced.
      Returns:
      the state changes to any diffs that this command produced.
    • recreate

      Creates a new instance of this same command.
      Returns:
      a new instance of this same command.
    • prepare

      protected boolean prepare()
      Overrides:
      prepare in class CompoundCommand