public abstract class SimpleControlRendererTester extends Object implements ECPRendererTester
NOT_APPLICABLE
Constructor and Description |
---|
SimpleControlRendererTester() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkFeatureETypeAnnotations(org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EAnnotation> eAnnotations)
Allows to check the
EAnnotations of the feature's type . |
protected abstract int |
getPriority()
The static priority of the corresponding control.
|
protected abstract Class<?> |
getSupportedClassType()
The class of the type the corresponding control supports.
|
protected Class<? extends org.eclipse.emf.ecore.EObject> |
getSupportedEObject()
The eobejct which is supported by the corresponding control.
|
protected org.eclipse.emf.ecore.EStructuralFeature |
getSupportedFeature()
The feature the corresponding control supports.
|
int |
isApplicable(VElement vElement,
ViewModelContext viewModelContext)
Check whether the provided
VElement and ViewModelContext are fitting for the provided renderer. |
protected abstract boolean |
isSingleValue()
Whether the corresponding control is allowed only for single values.
|
public int isApplicable(VElement vElement, ViewModelContext viewModelContext)
VElement
and ViewModelContext
are fitting for the provided renderer.isApplicable
in interface ECPRendererTester
vElement
- the VElement
to checkviewModelContext
- the ViewModelContext
to checkECPRendererTester.NOT_APPLICABLE
if the corresponding renderer should not be used, a positive integer value
otherwise. The renderer with the highest priority will be taken.ECPRendererTester.isApplicable(org.eclipse.emf.ecp.view.spi.model.VElement,
org.eclipse.emf.ecp.view.spi.context.ViewModelContext)
protected boolean checkFeatureETypeAnnotations(org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EAnnotation> eAnnotations)
EAnnotations
of the feature's type
.eAnnotations
- the annotationstrue
if applicable, false
otherwiseprotected abstract boolean isSingleValue()
protected abstract int getPriority()
protected Class<? extends org.eclipse.emf.ecore.EObject> getSupportedEObject()
EObject
.protected org.eclipse.emf.ecore.EStructuralFeature getSupportedFeature()
protected abstract Class<?> getSupportedClassType()
Copyright © 2018. All rights reserved.