Class ECPValidationResultServiceImpl
- java.lang.Object
-
- org.eclipse.emf.ecp.internal.ui.validation.ECPValidationResultServiceImpl
-
- All Implemented Interfaces:
ECPValidationResultService
public class ECPValidationResultServiceImpl extends java.lang.Object implements ECPValidationResultService
Default implementation of theECPValidationResultService
.- Author:
- jfaltermeier
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.emf.ecp.ui.validation.ECPValidationResultService
ECPValidationResultService.ECPValidationResultServiceListener
-
-
Constructor Summary
Constructors Constructor Description ECPValidationResultServiceImpl()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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, java.util.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 ofEClassifier
s.void
setResult(java.util.List<org.eclipse.emf.common.util.Diagnostic> diagnostic)
Passes the given diagnostics to all registeredECPValidationResultService.ECPValidationResultServiceListener
s.void
setResult(org.eclipse.emf.common.util.Diagnostic diagnostic)
Passes the given diagnostic to all registeredECPValidationResultService.ECPValidationResultServiceListener
s.void
setResult(org.eclipse.emf.common.util.Diagnostic[] diagnostic)
Passes the given diagnostics to all registeredECPValidationResultService.ECPValidationResultServiceListener
s.
-
-
-
Method Detail
-
setResult
public void setResult(org.eclipse.emf.common.util.Diagnostic[] diagnostic)
Passes the given diagnostics to all registeredECPValidationResultService.ECPValidationResultServiceListener
s.- Specified by:
setResult
in interfaceECPValidationResultService
- Parameters:
diagnostic
- the diagnostics to display- See Also:
ECPValidationResultService.setResult(org.eclipse.emf.common.util.Diagnostic[])
-
setResult
public void setResult(org.eclipse.emf.common.util.Diagnostic diagnostic)
Passes the given diagnostic to all registeredECPValidationResultService.ECPValidationResultServiceListener
s.- Specified by:
setResult
in interfaceECPValidationResultService
- Parameters:
diagnostic
- the diagnostic to display- See Also:
ECPValidationResultService.setResult(org.eclipse.emf.common.util.Diagnostic)
-
setResult
public void setResult(java.util.List<org.eclipse.emf.common.util.Diagnostic> diagnostic)
Passes the given diagnostics to all registeredECPValidationResultService.ECPValidationResultServiceListener
s.- Specified by:
setResult
in interfaceECPValidationResultService
- Parameters:
diagnostic
- the diagnostics to display- See Also:
ECPValidationResultService.setResult(java.util.List)
-
register
public void register(ECPValidationResultService.ECPValidationResultServiceListener listener)
Registers a listener that gets informed whenever the input changes.- Specified by:
register
in interfaceECPValidationResultService
- Parameters:
listener
- the listener to be registered- See Also:
ECPValidationResultService.register(org.eclipse.emf.ecp.ui.validation.ECPValidationResultService.ECPValidationResultServiceListener)
-
register
public void register(ECPValidationResultService.ECPValidationResultServiceListener listener, java.util.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 ofEClassifier
s.- Specified by:
register
in interfaceECPValidationResultService
- Parameters:
listener
- the listener to be registeredclassifiersOfInterest
- the set ofEClassifier
s- See Also:
ECPValidationResultService.register(org.eclipse.emf.ecp.ui.validation.ECPValidationResultService.ECPValidationResultServiceListener, java.util.Set)
-
deregister
public void deregister(ECPValidationResultService.ECPValidationResultServiceListener listener)
Deregisters a listener.- Specified by:
deregister
in interfaceECPValidationResultService
- Parameters:
listener
- the listener to be deregistered- See Also:
ECPValidationResultService.deregister(org.eclipse.emf.ecp.ui.validation.ECPValidationResultService.ECPValidationResultServiceListener)
-
-