org.eclipse.gmf.runtime.lite.validation
Interface IValidationStateUpdater


public interface IValidationStateUpdater

Allows to update the violations for a given validation state (and thus for a given diagram). Violations may be updated using addViolation(ViolationDescriptor) and #removeViolation(ViolationDescriptor) methods.

After the violations are updated, commitChanges() method should be used to commit the updated state and notify the listeners about the update. If changes are invalid for some reason, discardChanges() method may be used to revert all the changes and invalidate the updater.

See Also:
ValidationState#startUpdate(boolean)

Method Summary
 void addViolation(ViolationDescriptor violation)
           
 void commitChanges()
          Completes the update and reports changes.
 void discardChanges()
          Reverts all the changes.
 

Method Detail

addViolation

void addViolation(ViolationDescriptor violation)

commitChanges

void commitChanges()
Completes the update and reports changes. After this method has been called, this instance must not be used.


discardChanges

void discardChanges()
Reverts all the changes. After this method has been called, this instance must not be used.



Copyright © 2012. All Rights Reserved.