|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IViewProvider
This interface defines a generic way to provide a VView
. First the can render method is called. The provider
with the highest priority is then asked to generate(EObject, Map)
a VView
.
Field Summary | |
---|---|
static int |
NOT_APPLICABLE
Constant indicating, that the provider cannot provide a VView for a specific EObject . |
Method Summary | |
---|---|
int |
canRender(org.eclipse.emf.ecore.EObject eObject,
Map<String,Object> context)
Called to check whether the provider can provide a VView for an EObject . |
VView |
generate(org.eclipse.emf.ecore.EObject eObject,
Map<String,Object> context)
This method is only called if canRender(EObject, Map) returned the highest positive number
of all IViewProviders . |
Field Detail |
---|
static final int NOT_APPLICABLE
VView
for a specific EObject
.
Method Detail |
---|
int canRender(org.eclipse.emf.ecore.EObject eObject, Map<String,Object> context)
VView
for an EObject
.
eObject
- the EObject
to create acontext
- a key-value-map from String to Object
VView
for the provided
EObject
or NOT_APPLICABLE
if it doesn't fitVView generate(org.eclipse.emf.ecore.EObject eObject, Map<String,Object> context)
canRender(EObject, Map)
returned the highest positive number
of all IViewProviders
.
It must then return a VView
to the EObject
.
eObject
- the EObject
to generate the VView
forcontext
- a key-value-map from String to Object
VView
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |