org.eclipse.emf.ecp.ui.validation
Interface ECPValidationResultService

All Known Implementing Classes:
ECPValidationResultServiceImpl

public interface ECPValidationResultService

Service for propagating validation results.

Author:
jfaltermeier

Nested Class Summary
static interface ECPValidationResultService.ECPValidationResultServiceListener
          Listener interface for getting informed on input changes of the validation view.
 
Method Summary
 void deregister(ECPValidationResultService.ECPValidationResultServiceListener listener)
          Deregisters a listener.
 void register(ECPValidationResultService.ECPValidationResultServiceListener listener)
          Registers a listener that gets informed whenever the input changes.
 void register(ECPValidationResultService.ECPValidationResultServiceListener listener, Set<org.eclipse.emf.ecore.EClassifier> classifiersOfInterest)
          Registers a listener that gets informed whenever there is a validation result for an object of a type from the given set of EClassifiers.
 void setResult(org.eclipse.emf.common.util.Diagnostic diagnostic)
          Passes the given diagnostic to all registered ECPValidationResultService.ECPValidationResultServiceListeners.
 void setResult(org.eclipse.emf.common.util.Diagnostic[] diagnostic)
          Passes the given diagnostics to all registered ECPValidationResultService.ECPValidationResultServiceListeners.
 void setResult(List<org.eclipse.emf.common.util.Diagnostic> diagnostic)
          Passes the given diagnostics to all registered ECPValidationResultService.ECPValidationResultServiceListeners.
 

Method Detail

setResult

void setResult(org.eclipse.emf.common.util.Diagnostic diagnostic)
Passes the given diagnostic to all registered ECPValidationResultService.ECPValidationResultServiceListeners.

Parameters:
diagnostic - the diagnostic to display

setResult

void setResult(org.eclipse.emf.common.util.Diagnostic[] diagnostic)
Passes the given diagnostics to all registered ECPValidationResultService.ECPValidationResultServiceListeners.

Parameters:
diagnostic - the diagnostics to display

setResult

void setResult(List<org.eclipse.emf.common.util.Diagnostic> diagnostic)
Passes the given diagnostics to all registered ECPValidationResultService.ECPValidationResultServiceListeners.

Parameters:
diagnostic - the diagnostics to display

register

void register(ECPValidationResultService.ECPValidationResultServiceListener listener)
Registers a listener that gets informed whenever the input changes.

Parameters:
listener - the listener to be registered

register

void register(ECPValidationResultService.ECPValidationResultServiceListener listener,
              Set<org.eclipse.emf.ecore.EClassifier> classifiersOfInterest)
Registers a listener that gets informed whenever there is a validation result for an object of a type from the given set of EClassifiers.

Parameters:
listener - the listener to be registered
classifiersOfInterest - the set of EClassifiers

deregister

void deregister(ECPValidationResultService.ECPValidationResultServiceListener listener)
Deregisters a listener.

Parameters:
listener - the listener to be deregistered


Copyright © 2014. All Rights Reserved.