public class DiagnosticCache extends AbstractCachedTree<org.eclipse.emf.common.util.Diagnostic>
Modifier and Type | Class and Description |
---|---|
static interface |
DiagnosticCache.ValidationListener
Notified when the validation changes.
|
Constructor and Description |
---|
DiagnosticCache(org.eclipse.emf.common.notify.Notifier input)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected CachedTreeNode<org.eclipse.emf.common.util.Diagnostic> |
createdCachedTreeNode(org.eclipse.emf.common.util.Diagnostic value)
Creates a cached tree node.
|
void |
deregisterValidationListener(DiagnosticCache.ValidationListener listener) |
void |
dispose()
Disposes this cache.
|
org.eclipse.emf.common.util.Diagnostic |
getDefaultValue()
Returns the default value for a cached node.
The root value will be initialized with this value, too |
Set<Object> |
getObjects() |
org.eclipse.emf.common.util.Diagnostic |
getOwnValue(Object o) |
void |
registerValidationListener(DiagnosticCache.ValidationListener listener) |
void |
reinit(org.eclipse.emf.common.notify.Notifier notifier)
Does a reinit of this cache if the given notifier is different than the current one.
|
protected void |
updateCache(org.eclipse.emf.ecore.EObject element,
DiagnosticCache cache)
UPdates the cache and notifies listeners that this was a potential structure change.
|
protected void |
updateCacheWithoutRefresh(org.eclipse.emf.ecore.EObject element,
DiagnosticCache cache)
Updates the cache and notifes listeners that this change was not a structure change.
|
clear, getCachedValue, getNodes, getRootValue, remove, update, updateNodeObject, updateParentNode
public DiagnosticCache(org.eclipse.emf.common.notify.Notifier input)
input
- the inputpublic org.eclipse.emf.common.util.Diagnostic getDefaultValue()
AbstractCachedTree
getDefaultValue
in class AbstractCachedTree<org.eclipse.emf.common.util.Diagnostic>
protected CachedTreeNode<org.eclipse.emf.common.util.Diagnostic> createdCachedTreeNode(org.eclipse.emf.common.util.Diagnostic value)
AbstractCachedTree
createdCachedTreeNode
in class AbstractCachedTree<org.eclipse.emf.common.util.Diagnostic>
value
- the value stored by the cached tree nodepublic org.eclipse.emf.common.util.Diagnostic getOwnValue(Object o)
o
- the objectpublic void dispose()
public void reinit(org.eclipse.emf.common.notify.Notifier notifier)
notifier
- the notifierpublic void registerValidationListener(DiagnosticCache.ValidationListener listener)
listener
- the DiagnosticCache.ValidationListener
to registerpublic void deregisterValidationListener(DiagnosticCache.ValidationListener listener)
listener
- the DiagnosticCache.ValidationListener
to deregisterprotected void updateCache(org.eclipse.emf.ecore.EObject element, DiagnosticCache cache)
element
- the changed elementcache
- the cacheprotected void updateCacheWithoutRefresh(org.eclipse.emf.ecore.EObject element, DiagnosticCache cache)
element
- the elementcache
- the cacheCopyright © 2016. All rights reserved.