Interface ITypeInfoCategory


  • public interface ITypeInfoCategory
    Interface of type info category
    • Method Detail

      • getCategoryName

        String getCategoryName()
        Gets category name
        Returns:
        name of the category. Can't be null
      • getTypesInfo

        List<TypeInfo> getTypesInfo​(org.eclipse.xtext.scoping.IScope allTypesScope,
                                    com.google.common.base.Predicate<TypeInfo> filter,
                                    List<TypeInfo> additionalTypeInfos)
        Gets all TypeInfo for this category
        Parameters:
        allTypesScope - IScope of all available types
        filter - filter for returning TypeInfo. Can be null
        additionalTypeInfos - additional types which will be add to the returning list. Can be null
        Returns:
        list of TypeInfo for this category or empty list, if there is no TypeInfo 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 all TypeInfo for this category
        Parameters:
        allTypesScope - IScope of all available types
        filter - filter for returning TypeInfo. Can be null
        additionalTypeInfos - additional types which will be add to the returning list. Can be null
        project - actual project for getting TypeInfos, can be null if there is no IProject
        Returns:
        list of TypeInfo for this category or empty list, if there is no TypeInfo in this category (or no fillers).
        Can't be null
      • hasTypeItemInCategory

        boolean hasTypeItemInCategory​(TypeItem type)
        Check the TypeItem is contains in category
        Parameters:
        type - the TypeItem to check
        Returns:
        true if this category contain the type or false if not