1
0
Fork 0
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:
Chris Wiebe 2004-09-02 21:57:29 +00:00
parent 103f1fa7bb
commit 4fc3c3b548
2 changed files with 15 additions and 0 deletions

View file

@ -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

View file

@ -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.
*/ */