Interface ITypeInfoCategory
-
public interface ITypeInfoCategory
Interface of type info category
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addProvider(ICategoryTypeInfoProvider typeInfoProvider)
Adds newICategoryTypeInfoProvider
for filling categoryString
getCategoryName()
Gets category nameList<ICategoryTypeInfoProvider>
getProviders()
Gets allICategoryTypeInfoProvider
for the categoryList<TypeInfo>
getTypesInfo(org.eclipse.xtext.scoping.IScope allTypesScope, com.google.common.base.Predicate<TypeInfo> filter, List<TypeInfo> additionalTypeInfos)
Gets allTypeInfo
for this categoryList<TypeInfo>
getTypesInfo(org.eclipse.xtext.scoping.IScope allTypesScope, com.google.common.base.Predicate<TypeInfo> filter, List<TypeInfo> additionalTypeInfos, org.eclipse.core.resources.IProject project)
Gets allTypeInfo
for this categoryboolean
hasTypeItemInCategory(TypeItem type)
Check the TypeItem is contains in categoryboolean
hasTypeItemInCategory(TypeItem type, Version version)
Check the TypeItem is contains in category for specified platform version if provided
-
-
-
Method Detail
-
getCategoryName
String getCategoryName()
Gets category name- Returns:
- name of the category. Can't be
null
-
addProvider
void addProvider(ICategoryTypeInfoProvider typeInfoProvider)
Adds newICategoryTypeInfoProvider
for filling category- Parameters:
typeInfoProvider
- type info provider for the category. Can't benull
-
getProviders
List<ICategoryTypeInfoProvider> getProviders()
Gets allICategoryTypeInfoProvider
for the category- Returns:
- list of
ICategoryTypeInfoProvider
or empty list, if category doesn't contain providers
-
getTypesInfo
List<TypeInfo> getTypesInfo(org.eclipse.xtext.scoping.IScope allTypesScope, com.google.common.base.Predicate<TypeInfo> filter, List<TypeInfo> additionalTypeInfos)
Gets allTypeInfo
for this category- Parameters:
allTypesScope
-IScope
of all available typesfilter
- filter for returningTypeInfo
. Can benull
additionalTypeInfos
- additional types which will be add to the returning list. Can benull
- Returns:
- list of
TypeInfo
for this category or empty list, if there is noTypeInfo
in this category (or no fillers).
Can't be null
-
getTypesInfo
List<TypeInfo> getTypesInfo(org.eclipse.xtext.scoping.IScope allTypesScope, com.google.common.base.Predicate<TypeInfo> filter, List<TypeInfo> additionalTypeInfos, org.eclipse.core.resources.IProject project)
Gets allTypeInfo
for this category- Parameters:
allTypesScope
-IScope
of all available typesfilter
- filter for returningTypeInfo
. Can benull
additionalTypeInfos
- additional types which will be add to the returning list. Can benull
project
- actual project for gettingTypeInfo
s, can benull
if there is noIProject
- Returns:
- list of
TypeInfo
for this category or empty list, if there is noTypeInfo
in this category (or no fillers).
Can't be null
-
hasTypeItemInCategory
boolean hasTypeItemInCategory(TypeItem type)
Check the TypeItem is contains in category- Parameters:
type
- theTypeItem
to check- Returns:
true
if this category contain the type orfalse
if not
-
-