Class SingleValuedAttributeModelUpdateStrategy

java.lang.Object
org.eclipse.emf.compare.rcp.ui.internal.contentmergeviewer.SingleValuedAttributeModelUpdateStrategy
All Implemented Interfaces:
IModelUpdateStrategy

public class SingleValuedAttributeModelUpdateStrategy extends Object implements IModelUpdateStrategy
A IModelUpdateStrategy for single-valued EAttributes.

This strategy is tolerant in the sense that it will not throw exceptions if the input is not a supported AttributeChange. In this case, this strategy will return false on canUpdate(Diff, MergeViewerSide) and return a command on getModelUpdateCommand(Diff, Object, MergeViewerSide) that specifies false on Command.canExecute(). Therefore, it can be used as default strategy.