public class AllTypesCache extends Object
ICElement
the methods of this class returns a
list of the lightweight objects ITypeInfo
.
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 getTypes
is 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.
Constructor and Description |
---|
AllTypesCache() |
Modifier and Type | Method and 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 ITypeInfo |
getType(ICProject project,
int type,
IQualifiedTypeName qualifiedName)
Deprecated.
never worked.
|
static ITypeInfo[] |
getTypes(ICProject project,
IQualifiedTypeName qualifiedName,
boolean matchEnclosed,
boolean ignoreCase)
Deprecated.
never worked.
|
static ITypeInfo[] |
getTypes(ITypeSearchScope scope,
int[] kinds)
Returns all types in the given scope.
|
public static ITypeInfo[] getAllTypes()
public static ITypeInfo[] getAllTypes(org.eclipse.core.runtime.IProgressMonitor monitor)
public static ITypeInfo[] getTypes(ITypeSearchScope scope, int[] kinds)
scope
- The search scopekinds
- Array containing CElement types: C_NAMESPACE, C_CLASS,
C_UNION, C_ENUMERATION, C_TYPEDEFpublic static ITypeInfo[] getNamespaces(ITypeSearchScope scope, boolean includeGlobalNamespace)
scope
- The search scopeincludeGlobalNamespace
- true
if the global (default) namespace should be returned@Deprecated public static ITypeInfo getType(ICProject project, int type, IQualifiedTypeName qualifiedName)
@Deprecated public static ITypeInfo[] getTypes(ICProject project, IQualifiedTypeName qualifiedName, boolean matchEnclosed, boolean ignoreCase)
Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.