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) |
protected boolean |
isInitializing()
Queries whether the cache is in the process of initializing itself.
|
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.
|
protected void |
updateParentNode(Object parent,
Object object,
org.eclipse.emf.common.util.Diagnostic value)
Updates the passed parent nodes cached value.
|
clear, getCachedValue, getNodes, getRootValue, remove, update, updateNodeObject
public DiagnosticCache(org.eclipse.emf.common.notify.Notifier input)
input
- the inputprotected final boolean isInitializing()
public 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 nodeprotected void updateParentNode(Object parent, Object object, org.eclipse.emf.common.util.Diagnostic value)
AbstractCachedTree
updateParentNode
in class AbstractCachedTree<org.eclipse.emf.common.util.Diagnostic>
parent
- the parent object to be updatedobject
- the object for which the cached value should be changed.value
- the the cached value for the objectpublic 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 © 2019. All rights reserved.