Eclipse JDT
2.1

Uses of Interface
org.eclipse.jdt.core.ICompilationUnit

Packages that use ICompilationUnit
org.eclipse.jdt.core The Java model is the set of classes that model the objects associated with creating, editing, and building a Java program. 
org.eclipse.jdt.core.dom The Java DOM is the set of classes that model the source code of a Java program as a structured document. 
org.eclipse.jdt.core.util Provides a set of tools and utilities for manipulating .class files and Java model elements. 
org.eclipse.jdt.ui Application programming interfaces for interaction with the Eclipse Java User Interface. 
org.eclipse.jdt.ui.actions Application programming interfaces for Eclipse Java User Interface specific actions. 
org.eclipse.jdt.ui.refactoring Application programming interfaces for rename refactorings. 
org.eclipse.jdt.ui.wizards Application programming interfaces for interaction with the Eclipse Java User Interface wizards. 
 

Uses of ICompilationUnit in org.eclipse.jdt.core
 

Fields in org.eclipse.jdt.core declared as ICompilationUnit
protected  ICompilationUnit CorrectionEngine.unit
          This field is not intended to be used by client.
 

Methods in org.eclipse.jdt.core that return ICompilationUnit
 ICompilationUnit IMember.getCompilationUnit()
          Returns the compilation unit in which this member is declared, or null if this member is not declared in a compilation unit (for example, a binary type).
static ICompilationUnit JavaCore.createCompilationUnitFrom(IFile file)
          Creates and returns a compilation unit element for the given .java file.
 ICompilationUnit IPackageFragment.createCompilationUnit(String name, String contents, boolean force, IProgressMonitor monitor)
          Creates and returns a compilation unit in this package fragment with the specified name and contents.
 ICompilationUnit IPackageFragment.getCompilationUnit(String name)
          Returns the compilation unit with the specified name in this package (for example, "Object.java").
 ICompilationUnit[] IPackageFragment.getCompilationUnits()
          Returns all of the compilation units in this package fragment.
 

Methods in org.eclipse.jdt.core with parameters of type ICompilationUnit
 void CorrectionEngine.computeCorrections(IMarker marker, ICompilationUnit targetUnit, int positionOffset, ICorrectionRequestor requestor)
          Performs code correction for the given marker, reporting results to the given correction requestor.
 void CorrectionEngine.computeCorrections(IProblem problem, ICompilationUnit targetUnit, ICorrectionRequestor requestor)
          Performs code correction for the given IProblem, reporting results to the given correction requestor.
 

Uses of ICompilationUnit in org.eclipse.jdt.core.dom
 

Methods in org.eclipse.jdt.core.dom with parameters of type ICompilationUnit
static CompilationUnit AST.parseCompilationUnit(ICompilationUnit unit, boolean resolveBindings)
          Parses the source string of the given Java model compilation unit element and creates and returns a corresponding abstract syntax tree.
 

Uses of ICompilationUnit in org.eclipse.jdt.core.util
 

Methods in org.eclipse.jdt.core.util with parameters of type ICompilationUnit
static void CompilationUnitSorter.sort(ICompilationUnit compilationUnit, int[] positions, Comparator comparator, int options, IProgressMonitor monitor)
          Reorders the declarations in the given compilation unit.
 

Uses of ICompilationUnit in org.eclipse.jdt.ui
 

Methods in org.eclipse.jdt.ui that return ICompilationUnit
 ICompilationUnit IWorkingCopyManager.getWorkingCopy(IEditorInput input)
          Returns the working copy remembered for the compilation unit encoded in the given editor input.
 

Methods in org.eclipse.jdt.ui with parameters of type ICompilationUnit
 void IWorkingCopyManagerExtension.setWorkingCopy(IEditorInput input, ICompilationUnit workingCopy)
          Sets the given working copy for the given editor input.
static String CodeGeneration.getCompilationUnitContent(ICompilationUnit cu, String typeComment, String typeContent, String lineDelimiter)
          Returns the content for a new compilation unit using the 'new Java file' code template.
static String CodeGeneration.getTypeComment(ICompilationUnit cu, String typeQualifiedName, String lineDelimiter)
          Returns the content for a new type comment using the 'typecomment' code template.
static String CodeGeneration.getMethodComment(ICompilationUnit cu, String declaringTypeName, MethodDeclaration decl, IMethodBinding overridden, String lineDelimiter)
          Returns the comment for a method or constructor using the comment code templates (constructor / method / overriding method).
static String CodeGeneration.getMethodComment(ICompilationUnit cu, String declaringTypeName, String methodName, String[] paramNames, String[] excTypeSig, String retTypeSig, IMethod overridden, String lineDelimiter)
          Returns the comment for a method or constructor using the comment code templates (constructor / method / overriding method).
static String CodeGeneration.getMethodBodyContent(ICompilationUnit cu, String declaringTypeName, String methodName, boolean isConstructor, String bodyStatement, String lineDelimiter)
          Returns the content of body for a method or constructor using the method body templates.
 

Uses of ICompilationUnit in org.eclipse.jdt.ui.actions
 

Methods in org.eclipse.jdt.ui.actions with parameters of type ICompilationUnit
 void OrganizeImportsAction.run(ICompilationUnit cu)
          Note: This method is for internal use only.
protected  org.eclipse.jdt.internal.corext.refactoring.base.Refactoring InlineTempAction.createRefactoring(ICompilationUnit cunit, ITextSelection selection)
          Note: this method is for internal use only.
 

Uses of ICompilationUnit in org.eclipse.jdt.ui.refactoring
 

Methods in org.eclipse.jdt.ui.refactoring with parameters of type ICompilationUnit
static RenameSupport RenameSupport.create(ICompilationUnit unit, String newName, int flags)
          Creates a new rename support for the given ICompilationUnit.
 

Uses of ICompilationUnit in org.eclipse.jdt.ui.wizards
 

Methods in org.eclipse.jdt.ui.wizards with parameters of type ICompilationUnit
protected  String NewTypeWizardPage.constructCUContent(ICompilationUnit cu, String typeContent, String lineDelimiter)
          Uses the New Java file template from the code template page to generate a compilation unit with the given type content.
protected  String NewTypeWizardPage.getFileComment(ICompilationUnit parentCU)
          Deprecated. Instead of file templates, the new type code template specifies the stub for a compilation unit.
protected  String NewTypeWizardPage.getTypeComment(ICompilationUnit parentCU)
          Hook method that gets called from createType to retrieve a type comment.
protected  String NewTypeWizardPage.getTemplate(String name, ICompilationUnit parentCU)
          Deprecated. Use getTemplate(String,ICompilationUnit,int)
protected  String NewTypeWizardPage.getTemplate(String name, ICompilationUnit parentCU, int pos)
          Returns the string resulting from evaluation the given template in the context of the given compilation unit.
 


Eclipse JDT
2.1

Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.