Class MergeDataImpl

java.lang.Object
org.eclipse.emf.common.notify.impl.AdapterImpl
org.eclipse.emf.compare.internal.merge.MergeDataImpl
All Implemented Interfaces:
Adapter, Adapter.Internal, IMergeData

public class MergeDataImpl extends AdapterImpl implements IMergeData
Adapter that help to know the way of merge and the editable sides of a difference.
Since:
3.0
  • Constructor Details

    • MergeDataImpl

      public MergeDataImpl(boolean leftEditable, boolean rightEditable)
      Constructor.
      Parameters:
      leftEditable - Left side editable.
      rightEditable - Right side editable.
    • MergeDataImpl

      public MergeDataImpl(boolean leftEditable, boolean rightEditable, boolean mirrored)
      Constructor.
      Parameters:
      leftEditable - Left side editable.
      rightEditable - Right side editable.
      mirrored - Left and right side are swapped, i.e., mirrored.
  • Method Details

    • isLeftEditable

      public boolean isLeftEditable()
      Returns whether the left side of the comparison is editable.
      Specified by:
      isLeftEditable in interface IMergeData
      Returns:
      true if the left side of the comparison is editable, false otherwise.
      See Also:
    • isRightEditable

      public boolean isRightEditable()
      Returns whether the right side of the comparison is editable.
      Specified by:
      isRightEditable in interface IMergeData
      Returns:
      true if the right side of the comparison is editable, false otherwise.
      See Also:
    • isAdapterForType

      public boolean isAdapterForType(Object type)
      Specified by:
      isAdapterForType in interface Adapter
      Overrides:
      isAdapterForType in class AdapterImpl
    • setLeftEditable

      public void setLeftEditable(boolean leftEditable)
      Set whether the left side of the comparison is editable.
      Specified by:
      setLeftEditable in interface IMergeData
      Parameters:
      leftEditable - whether the left side of the comparison is editable.
      See Also:
    • setRightEditable

      public void setRightEditable(boolean rightEditable)
      Set whether the right side of the comparison is editable.
      Specified by:
      setRightEditable in interface IMergeData
      Parameters:
      rightEditable - whether the right side of the comparison is editable.
      See Also:
    • isMirrored

      public boolean isMirrored()
      Returns whether the left and right sides are swapped, i.e., mirrored.
      Specified by:
      isMirrored in interface IMergeData
      Returns:
      true if the left and right sides are swapped, i.e., mirrored, false otherwise.
      See Also:
    • setMirrored

      public void setMirrored(boolean mirrored)
      Sets whether the left and right sides are swapped, i.e., mirrored.
      Specified by:
      setMirrored in interface IMergeData
      Parameters:
      mirrored - whether the left and right sides are swapped, i.e., mirrored, false otherwise.
      See Also: