public interface DiffMergeModelContext extends ViewModelContext
DiffMergeModelContext
extends the ViewModelContext
and allows to retrieve two origin objects.ViewModelContext
Modifier and Type | Method and Description |
---|---|
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.
|
addContextUser, dispose, getChildContext, getChildContext, getContextValue, getControlsFor, getControlsFor, getDomainModel, getParentContext, getParentVElement, getService, getViewModel, hasService, putContextValue, registerDisposeListener, registerDomainChangeListener, registerViewChangeListener, removeContextUser, unregisterDomainChangeListener, unregisterViewChangeListener
changeDomainModel, registerEMFFormsContextListener, registerRootDomainModelChangeListener, unregisterEMFFormsContextListener, unregisterRootDomainModelChangeListener
org.eclipse.emf.ecore.EObject getLeftModel()
org.eclipse.emf.ecore.EObject getRightModel()
boolean hasDiff(VControl control)
control
- the VControl
to checkControlPair getPairWithDiff(VControl control)
control
- the control to get the pair forint getTotalNumberOfDiffs()
int getIndexOf(VControl control)
control
- the VControl
to get the index forVControl getControl(int diffIndex) throws IllegalArgumentException
IllegalArgumentException
will be thrown.diffIndex
- the diff index to get the control forVControl
IllegalArgumentException
- thrown if the index is invalidboolean isControlMerged(VControl vControl)
vControl
- the VControl
to checkvoid markControl(VControl vControl, boolean merged)
vControl
- the VControl
to be mergedmerged
- true if control is merged, false otherwiseSet<VDomainModelReference> getMergedDomainObjects()
VDomainModelReferences
Copyright © 2019. All rights reserved.