|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DiffMergeModelContext
The DiffMergeModelContext
extends the ViewModelContext
and allows to retrieve two origin objects.
ViewModelContext
Method Summary | |
---|---|
VControl |
getControl(int diffIndex)
Returns the control based on the diff index. |
int |
getIndexOf(VControl control)
Returns the diff index of a control. |
org.eclipse.emf.ecore.EObject |
getLeftModel()
Gets the left model. |
Set<VDomainModelReference> |
getMergedDomainObjects()
Returns the set of domainModelReferences which are merged. |
ControlPair |
getPairWithDiff(VControl control)
Returns a pair containing the left and right control for the diff. |
org.eclipse.emf.ecore.EObject |
getRightModel()
Gets the right model. |
int |
getTotalNumberOfDiffs()
Returns the total number of differences. |
boolean |
hasDiff(VControl control)
Checks whether a control has a diff. |
boolean |
isControlMerged(VControl vControl)
Returns true if the control already was merged or doesn't have a difference at all. |
void |
markControl(VControl vControl,
boolean merged)
Mark a control as merged. |
Methods inherited from interface org.eclipse.emf.ecp.view.spi.context.ViewModelContext |
---|
dispose, getControlsFor, getControlsFor, getDomainModel, getService, getViewModel, hasService, registerDomainChangeListener, registerViewChangeListener, unregisterDomainChangeListener, unregisterViewChangeListener |
Method Detail |
---|
org.eclipse.emf.ecore.EObject getLeftModel()
org.eclipse.emf.ecore.EObject getRightModel()
boolean hasDiff(VControl control)
control
- the VControl
to check
ControlPair getPairWithDiff(VControl control)
control
- the control to get the pair for
int getTotalNumberOfDiffs()
int getIndexOf(VControl control)
control
- the VControl
to get the index for
VControl getControl(int diffIndex) throws IllegalArgumentException
IllegalArgumentException
will be thrown.
diffIndex
- the diff index to get the control for
VControl
IllegalArgumentException
- thrown if the index is invalidboolean isControlMerged(VControl vControl)
vControl
- the VControl
to check
void markControl(VControl vControl, boolean merged)
vControl
- the VControl
to be mergedmerged
- true if control is merged, false otherwiseSet<VDomainModelReference> getMergedDomainObjects()
VDomainModelReferences
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |