mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
2004-09-02 Chris Wiebe
add method to get global namespace * browser/org/eclipse/cdt/internal/core/browser/AllTypesCache.java
This commit is contained in:
parent
103f1fa7bb
commit
4fc3c3b548
2 changed files with 15 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2004-09-02 Chris Wiebe
|
||||||
|
|
||||||
|
add method to get global namespace
|
||||||
|
* browser/org/eclipse/cdt/internal/core/browser/AllTypesCache.java
|
||||||
|
|
||||||
2004-09-01 Chris Wiebe
|
2004-09-01 Chris Wiebe
|
||||||
|
|
||||||
avoid unnecessary deltas
|
avoid unnecessary deltas
|
||||||
|
|
|
@ -242,6 +242,16 @@ public class AllTypesCache {
|
||||||
return (ITypeInfo[]) fTypesFound.toArray(new ITypeInfo[fTypesFound.size()]);
|
return (ITypeInfo[]) fTypesFound.toArray(new ITypeInfo[fTypesFound.size()]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the global (default) namespace for the given project.
|
||||||
|
*
|
||||||
|
* @param project the project
|
||||||
|
*/
|
||||||
|
public static ITypeInfo getGlobalNamespace(IProject project) {
|
||||||
|
ITypeCache cache = TypeCacheManager.getInstance().getCache(project);
|
||||||
|
return cache.getGlobalNamespace();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns true if the type cache is up to date.
|
* Returns true if the type cache is up to date.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue