Package org.eclipse.cdt.core.browser
Class AllTypesCache
- java.lang.Object
-
- org.eclipse.cdt.core.browser.AllTypesCache
-
public class AllTypesCache extends java.lang.ObjectManages a search cache for types in the workspace. Instead of returning objects of typeICElementthe methods of this class returns a list of the lightweight objectsITypeInfo.AllTypesCache runs asynchronously using a background job to rebuild the cache as needed. If the cache becomes dirty again while the background job is running, the job is restarted.
If
getTypesis called in response to a user action, a progress dialog is shown. If called before the background job has finished, getTypes waits for the completion of the background job.- Restriction:
- This class is not intended to be subclassed by clients.
- Restriction:
- This class is not intended to be instantiated by clients.
-
-
Constructor Summary
Constructors Constructor Description AllTypesCache()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ITypeInfo[]getAllTypes()Returns all types in the workspace.static ITypeInfo[]getAllTypes(org.eclipse.core.runtime.IProgressMonitor monitor)Returns all types in the workspace.static ITypeInfo[]getNamespaces(ITypeSearchScope scope, boolean includeGlobalNamespace)Returns all namespaces in the given scope.static ITypeInfogetType(ICProject project, int type, IQualifiedTypeName qualifiedName)Deprecated.never worked.static ITypeInfo[]getTypes(ITypeSearchScope scope, int[] kinds)Returns all types in the given scope.static ITypeInfo[]getTypes(ICProject project, IQualifiedTypeName qualifiedName, boolean matchEnclosed, boolean ignoreCase)Deprecated.never worked.
-
-
-
Method Detail
-
getAllTypes
public static ITypeInfo[] getAllTypes()
Returns all types in the workspace.
-
getAllTypes
public static ITypeInfo[] getAllTypes(org.eclipse.core.runtime.IProgressMonitor monitor)
Returns all types in the workspace.
-
getTypes
public static ITypeInfo[] getTypes(ITypeSearchScope scope, int[] kinds)
Returns all types in the given scope.- Parameters:
scope- The search scopekinds- Array containing CElement types: C_NAMESPACE, C_CLASS, C_UNION, C_ENUMERATION, C_TYPEDEF
-
getNamespaces
public static ITypeInfo[] getNamespaces(ITypeSearchScope scope, boolean includeGlobalNamespace)
Returns all namespaces in the given scope.- Parameters:
scope- The search scopeincludeGlobalNamespace-trueif the global (default) namespace should be returned
-
getType
@Deprecated public static ITypeInfo getType(ICProject project, int type, IQualifiedTypeName qualifiedName)
Deprecated.never worked.- Restriction:
- This method is not intended to be referenced by clients.
-
getTypes
@Deprecated public static ITypeInfo[] getTypes(ICProject project, IQualifiedTypeName qualifiedName, boolean matchEnclosed, boolean ignoreCase)
Deprecated.never worked.- Restriction:
- This method is not intended to be referenced by clients.
-
-