org.eclipse.gmf.runtime.lite.validation
Class ValidationDecorationProvider

java.lang.Object
  extended by org.eclipse.gmf.runtime.lite.validation.ValidationDecorationProvider
All Implemented Interfaces:
EventListener, IValidationStateListener

public abstract class ValidationDecorationProvider
extends Object
implements IValidationStateListener

Author:
bblajer

Field Summary
static String VALIDATION_KEY
           
 
Constructor Summary
ValidationDecorationProvider()
           
 
Method Summary
 void dispose()
           
protected  String formatLabel(List<String> messages)
           
protected abstract  org.eclipse.gef.GraphicalViewer getGraphicalViewer()
           
protected abstract  org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()
           
protected  void updateDecorations(IDecorationManager decorationManager, Collection<ViolationDescriptor> oldViolations, Collection<ViolationDescriptor> newViolations)
           
 void validationStateChanged(ValidationStateEvent event)
          Notifies the listener about the change in the validation state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VALIDATION_KEY

public static final String VALIDATION_KEY
See Also:
Constant Field Values
Constructor Detail

ValidationDecorationProvider

public ValidationDecorationProvider()
Method Detail

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.