Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2008 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at Contributors: IBM Corporation - initial API and implementation /
package org.eclipse.jdt.internal.codeassist.impl;
import  org.eclipse.core.runtime.IProgressMonitor;
public class AssistCompilationUnit extends CompilationUnit {
	private Map infoCache;
	private Map bindingCache;
	public AssistCompilationUnit(ICompilationUnit compilationUnitWorkingCopyOwner ownerMap bindingCacheMap infoCache) {
		super((PackageFragment)compilationUnit.getParent(), compilationUnit.getElementName(), owner);
		this. = bindingCache;
		this. = infoCache;
	public Object getElementInfo(IProgressMonitor monitorthrows JavaModelException {
		return this..get(this);
		return new AssistImportContainer(thisthis.);
		return new AssistPackageDeclaration(thispkgthis.);
	public IType getType(String typeName) {
		return new AssistSourceType(thistypeNamethis.this.);
	public boolean hasChildren() throws JavaModelException {
		return info.getChildren().length > 0;
New to GrepCode? Check out our FAQ X