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
Adapter that help to know the way of merge and the editable sides of a difference.
- Since:
- 3.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter
Adapter.Internal -
Field Summary
Fields inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl
target -
Constructor Summary
ConstructorsConstructorDescriptionMergeDataImpl(boolean leftEditable, boolean rightEditable) Constructor.MergeDataImpl(boolean leftEditable, boolean rightEditable, boolean mirrored) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisAdapterForType(Object type) booleanReturns whether the left side of the comparison is editable.booleanReturns whether the left and right sides are swapped, i.e., mirrored.booleanReturns whether the right side of the comparison is editable.voidsetLeftEditable(boolean leftEditable) Set whether the left side of the comparison is editable.voidsetMirrored(boolean mirrored) Sets whether the left and right sides are swapped, i.e., mirrored.voidsetRightEditable(boolean rightEditable) Set whether the right side of the comparison is editable.Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl
getTarget, notifyChanged, setTarget, unsetTargetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.emf.common.notify.Adapter
getTarget, notifyChanged, setTarget
-
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:
isLeftEditablein interfaceIMergeData- 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:
isRightEditablein interfaceIMergeData- Returns:
- true if the right side of the comparison is editable, false otherwise.
- See Also:
-
isAdapterForType
- Specified by:
isAdapterForTypein interfaceAdapter- Overrides:
isAdapterForTypein classAdapterImpl
-
setLeftEditable
public void setLeftEditable(boolean leftEditable) Set whether the left side of the comparison is editable.- Specified by:
setLeftEditablein interfaceIMergeData- 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:
setRightEditablein interfaceIMergeData- 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:
isMirroredin interfaceIMergeData- 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:
setMirroredin interfaceIMergeData- Parameters:
mirrored- whether the left and right sides are swapped, i.e., mirrored, false otherwise.- See Also:
-