public interface IModelUpdateStrategy
Modifier and Type | Method and Description |
---|---|
boolean |
canUpdate(Diff diff,
IMergeViewer.MergeViewerSide side)
Specifies whether the value in the model can to be updated on the given
side . |
Command |
getModelUpdateCommand(Diff diff,
Object newValue,
IMergeViewer.MergeViewerSide side)
Returns a command for updating the underlying model with the given
newValue on the given
side . |
boolean canUpdate(Diff diff, IMergeViewer.MergeViewerSide side)
side
.diff
- The diff acting as context of the potential model update.side
- The side to check.true
if the value can be updated, false
otherwise.Command getModelUpdateCommand(Diff diff, Object newValue, IMergeViewer.MergeViewerSide side)
newValue
on the given
side
.diff
- The diff acting as context of the model update.newValue
- The new value to be set.side
- The side on which the update is to be performed.
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.