org.eclipse.gmf.runtime.lite.validation
Class ValidationDecorationProvider
java.lang.Object
org.eclipse.gmf.runtime.lite.validation.ValidationDecorationProvider
- All Implemented Interfaces:
- EventListener, IValidationStateListener
public abstract class ValidationDecorationProvider
- extends Object
- implements IValidationStateListener
- Author:
- bblajer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VALIDATION_KEY
public static final String VALIDATION_KEY
- See Also:
- Constant Field Values
ValidationDecorationProvider
public ValidationDecorationProvider()
dispose
public void dispose()
validationStateChanged
public void validationStateChanged(ValidationStateEvent event)
- Description copied from interface:
IValidationStateListener
- Notifies the listener about the change in the validation state.
The event object is only valid for the duration of the invocation of this method.
- Specified by:
validationStateChanged
in interface IValidationStateListener
updateDecorations
protected void updateDecorations(IDecorationManager decorationManager,
Collection<ViolationDescriptor> oldViolations,
Collection<ViolationDescriptor> newViolations)
- Parameters:
decorationManager
- newViolations
-
formatLabel
protected String formatLabel(List<String> messages)
getResourceSet
protected abstract org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()
getGraphicalViewer
protected abstract org.eclipse.gef.GraphicalViewer getGraphicalViewer()
Copyright © 2012. All Rights Reserved.