public class MergeDataImpl extends AdapterImpl implements IMergeData
Adapter.Internal
target
Constructor and Description |
---|
MergeDataImpl(boolean leftEditable,
boolean rightEditable)
Constructor.
|
MergeDataImpl(boolean leftEditable,
boolean rightEditable,
boolean mirrored)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isAdapterForType(Object type) |
boolean |
isLeftEditable()
Returns whether the left side of the comparison is editable.
|
boolean |
isMirrored()
Returns whether the left and right sides are swapped, i.e., mirrored.
|
boolean |
isRightEditable()
Returns whether the right side of the comparison is editable.
|
void |
setLeftEditable(boolean leftEditable)
Set whether the left side of the comparison is editable.
|
void |
setMirrored(boolean mirrored)
Sets whether the left and right sides are swapped, i.e., mirrored.
|
void |
setRightEditable(boolean rightEditable)
Set whether the right side of the comparison is editable.
|
getTarget, notifyChanged, setTarget, unsetTarget
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTarget, notifyChanged, setTarget
public MergeDataImpl(boolean leftEditable, boolean rightEditable)
leftEditable
- Left side editable.rightEditable
- Right side editable.public MergeDataImpl(boolean leftEditable, boolean rightEditable, boolean mirrored)
leftEditable
- Left side editable.rightEditable
- Right side editable.mirrored
- Left and right side are swapped, i.e., mirrored.public boolean isLeftEditable()
isLeftEditable
in interface IMergeData
IMergeData.isLeftEditable()
public boolean isRightEditable()
isRightEditable
in interface IMergeData
IMergeData.isRightEditable()
public boolean isAdapterForType(Object type)
isAdapterForType
in interface Adapter
isAdapterForType
in class AdapterImpl
public void setLeftEditable(boolean leftEditable)
setLeftEditable
in interface IMergeData
leftEditable
- whether the left side of the comparison is editable.IMergeData.setLeftEditable(boolean)
public void setRightEditable(boolean rightEditable)
setRightEditable
in interface IMergeData
rightEditable
- whether the right side of the comparison is editable.IMergeData.setRightEditable(boolean)
public boolean isMirrored()
isMirrored
in interface IMergeData
IMergeData.isMirrored()
public void setMirrored(boolean mirrored)
setMirrored
in interface IMergeData
mirrored
- whether the left and right sides are swapped, i.e., mirrored, false otherwise.IMergeData.setMirrored(boolean)
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.