/** * Returns the info for this element without * disturbing the cache ordering. */ protected Object peekAtInfo(IJavaElement element) { switch (element.getElementType()) { case IJavaElement.JAVA_MODEL: return this.modelInfo; case IJavaElement.JAVA_PROJECT: return this.projectCache.get(element); case IJavaElement.PACKAGE_FRAGMENT_ROOT: return this.rootCache.peek(element); case IJavaElement.PACKAGE_FRAGMENT: return this.pkgCache.peek(element); case IJavaElement.COMPILATION_UNIT: case IJavaElement.CLASS_FILE: return this.openableCache.peek(element); case IJavaElement.TYPE: Object result = this.jarTypeCache.peek(element); if (result != null) return result; else return this.childrenCache.get(element); default: return this.childrenCache.get(element); } }
/** * Returns the info for this element without * disturbing the cache ordering. */ protected Object peekAtInfo(IJavaElement element) { switch (element.getElementType()) { case IJavaElement.JAVA_MODEL: return this.modelInfo; case IJavaElement.JAVA_PROJECT: return this.projectCache.get(element); case IJavaElement.PACKAGE_FRAGMENT_ROOT: return this.rootCache.peek((IPackageFragmentRoot) element); case IJavaElement.PACKAGE_FRAGMENT: return this.pkgCache.peek((IPackageFragment) element); case IJavaElement.COMPILATION_UNIT: case IJavaElement.CLASS_FILE: return this.openableCache.peek((ITypeRoot) element); case IJavaElement.TYPE: Object result = this.jarTypeCache.peek(element); if (result != null) return result; else return this.childrenCache.get(element); default: return this.childrenCache.get(element); } }
/** * Returns the info for this element without * disturbing the cache ordering. */ protected Object peekAtInfo(IJavaElement element) { switch (element.getElementType()) { case IJavaElement.JAVA_MODEL: return this.modelInfo; case IJavaElement.JAVA_PROJECT: return this.projectCache.get(element); case IJavaElement.PACKAGE_FRAGMENT_ROOT: return this.rootCache.peek(element); case IJavaElement.PACKAGE_FRAGMENT: return this.pkgCache.peek(element); case IJavaElement.COMPILATION_UNIT: case IJavaElement.CLASS_FILE: return this.openableCache.peek(element); case IJavaElement.TYPE: Object result = this.jarTypeCache.peek(element); if (result != null) return result; else return this.childrenCache.get(element); default: return this.childrenCache.get(element); } }
/** * Returns the info for this element without * disturbing the cache ordering. */ protected Object peekAtInfo(IJavaElement element) { switch (element.getElementType()) { case IJavaElement.JAVA_MODEL: return this.modelInfo; case IJavaElement.JAVA_PROJECT: return this.projectCache.get(element); case IJavaElement.PACKAGE_FRAGMENT_ROOT: return this.rootCache.peek(element); case IJavaElement.PACKAGE_FRAGMENT: return this.pkgCache.peek(element); case IJavaElement.COMPILATION_UNIT: case IJavaElement.CLASS_FILE: return this.openableCache.peek(element); case IJavaElement.TYPE: Object result = this.jarTypeCache.peek(element); if (result != null) return result; else return this.childrenCache.get(element); default: return this.childrenCache.get(element); } }
/** * Returns the info for this element without * disturbing the cache ordering. */ protected Object peekAtInfo(IJavaElement element) { switch (element.getElementType()) { case IJavaElement.JAVA_MODEL: return this.modelInfo; case IJavaElement.JAVA_PROJECT: return this.projectCache.get(element); case IJavaElement.PACKAGE_FRAGMENT_ROOT: return this.rootCache.peek(element); case IJavaElement.PACKAGE_FRAGMENT: return this.pkgCache.peek(element); case IJavaElement.COMPILATION_UNIT: case IJavaElement.CLASS_FILE: return this.openableCache.peek(element); case IJavaElement.TYPE: Object result = this.jarTypeCache.peek(element); if (result != null) return result; else return this.childrenCache.get(element); default: return this.childrenCache.get(element); } }
/** * Returns the info for this element without * disturbing the cache ordering. */ protected Object peekAtInfo(IJavaElement element) { switch (element.getElementType()) { case IJavaElement.JAVA_MODEL: return this.modelInfo; case IJavaElement.JAVA_PROJECT: return this.projectCache.get(element); case IJavaElement.PACKAGE_FRAGMENT_ROOT: return this.rootCache.peek(element); case IJavaElement.PACKAGE_FRAGMENT: return this.pkgCache.peek(element); case IJavaElement.COMPILATION_UNIT: case IJavaElement.CLASS_FILE: return this.openableCache.peek(element); case IJavaElement.TYPE: Object result = this.jarTypeCache.peek(element); if (result != null) return result; else return this.childrenCache.get(element); default: return this.childrenCache.get(element); } }