public class EntityTypeIndexContentProvider extends Object implements org.eclipse.jface.viewers.ITreeContentProvider
TypeIndex
as rootModifier and Type | Field and Description |
---|---|
protected EntityDefinitionService |
entityDefinitionService
The entity definition service instance
|
protected SchemaSpaceID |
schemaSpace
The identifier of the schema space associated to the entities
|
Constructor and Description |
---|
EntityTypeIndexContentProvider(EntityDefinitionService entityDefinitionService,
SchemaSpaceID schemaSpace)
Create a content provider based on a
TypeIndex as input. |
EntityTypeIndexContentProvider(EntityDefinitionService entityDefinitionService,
SchemaSpaceID schemaSpace,
boolean onlyMappingRelevant)
Create a content provider based on a
TypeIndex as input. |
EntityTypeIndexContentProvider(EntityDefinitionService entityDefinitionService,
SchemaSpaceID schemaSpace,
boolean onlyMappingRelevant,
boolean onlyTypes)
Create a content provider based on a
TypeIndex as input. |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
Object[] |
getChildren(Object parentElement) |
Object[] |
getElements(Object inputElement) |
Object |
getParent(Object element) |
boolean |
hasChildren(Object parentElement) |
void |
inputChanged(org.eclipse.jface.viewers.Viewer viewer,
Object oldInput,
Object newInput) |
protected final EntityDefinitionService entityDefinitionService
protected final SchemaSpaceID schemaSpace
public EntityTypeIndexContentProvider(EntityDefinitionService entityDefinitionService, SchemaSpaceID schemaSpace)
TypeIndex
as input. It will
only show mapping relevant types and their properties.entityDefinitionService
- the entity definition serviceschemaSpace
- the associated schema spacepublic EntityTypeIndexContentProvider(EntityDefinitionService entityDefinitionService, SchemaSpaceID schemaSpace, boolean onlyMappingRelevant)
TypeIndex
as input. It will
show the given choice of types and their properties.entityDefinitionService
- the entity definition serviceschemaSpace
- the associated schema spaceonlyMappingRelevant
- whether to only show mapping relevant typespublic EntityTypeIndexContentProvider(EntityDefinitionService entityDefinitionService, SchemaSpaceID schemaSpace, boolean onlyMappingRelevant, boolean onlyTypes)
TypeIndex
as input.entityDefinitionService
- the entity definition serviceschemaSpace
- the associated schema spaceonlyMappingRelevant
- whether to only show mapping relevant typesonlyTypes
- whether to only show types, or also their propertiespublic Object[] getElements(Object inputElement)
getElements
in interface org.eclipse.jface.viewers.IStructuredContentProvider
getElements
in interface org.eclipse.jface.viewers.ITreeContentProvider
ITreeContentProvider.getElements(Object)
public Object[] getChildren(Object parentElement)
getChildren
in interface org.eclipse.jface.viewers.ITreeContentProvider
ITreeContentProvider.getChildren(Object)
public boolean hasChildren(Object parentElement)
hasChildren
in interface org.eclipse.jface.viewers.ITreeContentProvider
ITreeContentProvider.hasChildren(Object)
public void dispose()
dispose
in interface org.eclipse.jface.viewers.IContentProvider
IContentProvider.dispose()
public void inputChanged(org.eclipse.jface.viewers.Viewer viewer, Object oldInput, Object newInput)
inputChanged
in interface org.eclipse.jface.viewers.IContentProvider
IContentProvider.inputChanged(Viewer, Object, Object)
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a