org.eclipse.emf.ecp.internal.validation
Class ValidationService.CachedSeverityTreeNode
java.lang.Object
org.eclipse.emf.ecp.common.cachetree.CachedTreeNode<org.eclipse.emf.common.util.Diagnostic>
org.eclipse.emf.ecp.internal.validation.ValidationService.CachedSeverityTreeNode
- Enclosing class:
- ValidationService
public class ValidationService.CachedSeverityTreeNode
- extends CachedTreeNode<org.eclipse.emf.common.util.Diagnostic>
Tree node that caches the severity of its children.
Method Summary |
org.eclipse.emf.common.util.Diagnostic |
getDisplayValue()
Returns the value that this node should represent. |
void |
update()
Recomputes the cached value of this node. |
ValidationService.CachedSeverityTreeNode
public ValidationService.CachedSeverityTreeNode(org.eclipse.emf.common.util.Diagnostic diagnostic)
- Constructor.
- Parameters:
diagnostic
- the initial diagnostic containing the severity and validation message
update
public void update()
- Recomputes the cached value of this node.
getDisplayValue
public org.eclipse.emf.common.util.Diagnostic getDisplayValue()
- Description copied from class:
CachedTreeNode
- Returns the value that this node should represent.
This value is also passed to parents in case of changes to the tree.
- Specified by:
getDisplayValue
in class CachedTreeNode<org.eclipse.emf.common.util.Diagnostic>
- Returns:
- the display value
Copyright © 2014. All Rights Reserved.