Uses of Class
org.eclipse.jdt.core.WorkingCopyOwner
Packages that use WorkingCopyOwner
Package
Description
The Java model is the set of classes that model the
objects associated with creating, editing, and building a Java program.
The Java DOM/AST is the set of classes that model the source code of a Java program
as a structured document.
Provides support for the evaluation of code snippets
in a scrapbook or inside the debugger.
Application programming interface to access Java refactorings provided by JDT.
Provides support for searching the workspace Java
elements that match a particular description.
-
Uses of WorkingCopyOwner in org.eclipse.jdt.core
Methods in org.eclipse.jdt.core that return WorkingCopyOwnerModifier and TypeMethodDescriptionICompilationUnit.getOwner()
Returnsnull
if thisICompilationUnit
is the primary working copy, or thisICompilationUnit
is not a working copy, otherwise theWorkingCopyOwner
Methods in org.eclipse.jdt.core with parameters of type WorkingCopyOwnerModifier and TypeMethodDescriptionIClassFile.becomeWorkingCopy
(IProblemRequestor problemRequestor, WorkingCopyOwner owner, org.eclipse.core.runtime.IProgressMonitor monitor) Deprecated.void
ICodeAssist.codeComplete
(int offset, CompletionRequestor requestor, WorkingCopyOwner owner) Performs code completion at the given offset position in this compilation unit, reporting results to the given completion requestor.void
ICodeAssist.codeComplete
(int offset, CompletionRequestor requestor, WorkingCopyOwner owner, org.eclipse.core.runtime.IProgressMonitor monitor) Performs code completion at the given offset position in this compilation unit, reporting results to the given completion requestor.void
ICodeAssist.codeComplete
(int offset, ICompletionRequestor requestor, WorkingCopyOwner owner) Deprecated.void
IType.codeComplete
(char[] snippet, int insertion, int position, char[][] localVariableTypeNames, char[][] localVariableNames, int[] localVariableModifiers, boolean isStatic, CompletionRequestor requestor, WorkingCopyOwner owner) Do code completion inside a code snippet in the context of the current type.void
IType.codeComplete
(char[] snippet, int insertion, int position, char[][] localVariableTypeNames, char[][] localVariableNames, int[] localVariableModifiers, boolean isStatic, CompletionRequestor requestor, WorkingCopyOwner owner, org.eclipse.core.runtime.IProgressMonitor monitor) Do code completion inside a code snippet in the context of the current type.void
IType.codeComplete
(char[] snippet, int insertion, int position, char[][] localVariableTypeNames, char[][] localVariableNames, int[] localVariableModifiers, boolean isStatic, ICompletionRequestor requestor, WorkingCopyOwner owner) ICodeAssist.codeSelect
(int offset, int length, WorkingCopyOwner owner) Returns the Java elements corresponding to the given selected text in this compilation unit.static IJavaElement
JavaCore.create
(String handleIdentifier, WorkingCopyOwner owner) Returns the Java model element corresponding to the given handle identifier generated byIJavaElement.getHandleIdentifier()
, ornull
if unable to create the associated element.IJavaProject.findElement
(String bindingKey, WorkingCopyOwner owner) Finds the Java element corresponding to the given binding key if any, else returnsnull
.IJavaProject.findElement
(org.eclipse.core.runtime.IPath path, WorkingCopyOwner owner) Returns theIJavaElement
corresponding to the given classpath-relative path, ornull
if no suchIJavaElement
is found.IJavaProject.findModule
(String moduleName, WorkingCopyOwner owner) Finds the first module with the given name found following this project's module path.IJavaProject.findType
(String packageName, String typeQualifiedName, WorkingCopyOwner owner) Returns the first type (excluding secondary types) found following this project's classpath with the given package name and type qualified name ornull
if none is found.IJavaProject.findType
(String packageName, String typeQualifiedName, WorkingCopyOwner owner, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Same functionality asIJavaProject.findType(String, String, WorkingCopyOwner)
but also looks for secondary types if the given name does not match a compilation unit name.IJavaProject.findType
(String fullyQualifiedName, WorkingCopyOwner owner) Returns the first type (excluding secondary types) found following this project's classpath with the given fully qualified name ornull
if none is found.IJavaProject.findType
(String fullyQualifiedName, WorkingCopyOwner owner, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Same functionality asIJavaProject.findType(String, WorkingCopyOwner)
but also looks for secondary types if the given name does not match a compilation unit name.ICompilationUnit.findWorkingCopy
(WorkingCopyOwner owner) Finds the working copy for this compilation unit, given aWorkingCopyOwner
.IPackageFragment.getCompilationUnits
(WorkingCopyOwner owner) Returns all of the compilation units in this package fragment that are in working copy mode and that have the given owner.static ICompilationUnit[]
JavaCore.getWorkingCopies
(WorkingCopyOwner owner) Returns the working copies that have the given owner.ICompilationUnit.getWorkingCopy
(WorkingCopyOwner owner, IProblemRequestor problemRequestor, org.eclipse.core.runtime.IProgressMonitor monitor) Deprecated.ITypeRoot.getWorkingCopy
(WorkingCopyOwner owner, org.eclipse.core.runtime.IProgressMonitor monitor) Returns a shared working copy on this compilation unit or class file using the given working copy owner to create the buffer.IType.newSupertypeHierarchy
(WorkingCopyOwner owner, org.eclipse.core.runtime.IProgressMonitor monitor) Creates and returns a type hierarchy for this type containing this type and all of its supertypes, considering types in the working copies with the given owner.IJavaProject.newTypeHierarchy
(IRegion region, WorkingCopyOwner owner, org.eclipse.core.runtime.IProgressMonitor monitor) Creates and returns a type hierarchy for all types in the given region, considering subtypes within that region and considering types in the working copies with the given owner.IJavaProject.newTypeHierarchy
(IType type, IRegion region, WorkingCopyOwner owner, org.eclipse.core.runtime.IProgressMonitor monitor) Creates and returns a type hierarchy for the given type considering subtypes in the specified region and considering types in the working copies with the given owner.IType.newTypeHierarchy
(IJavaProject project, WorkingCopyOwner owner, org.eclipse.core.runtime.IProgressMonitor monitor) Creates and returns a type hierarchy for this type containing this type, all of its supertypes, and all its subtypes in the context of the given project, considering types in the working copies with the given owner.IType.newTypeHierarchy
(WorkingCopyOwner owner, org.eclipse.core.runtime.IProgressMonitor monitor) Creates and returns a type hierarchy for this type containing this type, all of its supertypes, and all its subtypes in the workspace, considering types in the working copies with the given owner.static ITypeHierarchy
JavaCore.newTypeHierarchy
(IRegion region, WorkingCopyOwner owner, org.eclipse.core.runtime.IProgressMonitor monitor) Creates and returns a type hierarchy for all types in the given region, considering subtypes within that region and considering types in the working copies with the given owner.ICompilationUnit.reconcile
(int astLevel, boolean forceProblemDetection, boolean enableStatementsRecovery, WorkingCopyOwner owner, org.eclipse.core.runtime.IProgressMonitor monitor) Reconciles the contents of this working copy, sends out a Java delta notification indicating the nature of the change of the working copy since the last time it was either reconciled or made consistent (IOpenable.makeConsistent(IProgressMonitor)
), and returns a compilation unit AST if requested.ICompilationUnit.reconcile
(int astLevel, boolean forceProblemDetection, WorkingCopyOwner owner, org.eclipse.core.runtime.IProgressMonitor monitor) Reconciles the contents of this working copy, sends out a Java delta notification indicating the nature of the change of the working copy since the last time it was either reconciled or made consistent (IOpenable.makeConsistent(IProgressMonitor)
), and returns a compilation unit AST if requested.ICompilationUnit.reconcile
(int astLevel, int reconcileFlags, WorkingCopyOwner owner, org.eclipse.core.runtime.IProgressMonitor monitor) Reconciles the contents of this working copy, sends out a Java delta notification indicating the nature of the change of the working copy since the last time it was either reconciled or made consistent (IOpenable.makeConsistent(IProgressMonitor)
), and returns a compilation unit AST if requested.String[][]
IType.resolveType
(String typeName, WorkingCopyOwner owner) Resolves the given type name within the context of this type (depending on the type hierarchy and its imports) and using the given owner's working copies, considering types in the working copies with the given owner.static void
WorkingCopyOwner.setPrimaryBufferProvider
(WorkingCopyOwner primaryBufferProvider) Sets the buffer provider of the primary working copy owner. -
Uses of WorkingCopyOwner in org.eclipse.jdt.core.dom
Methods in org.eclipse.jdt.core.dom with parameters of type WorkingCopyOwnerModifier and TypeMethodDescriptionvoid
ASTParser.setWorkingCopyOwner
(WorkingCopyOwner owner) Sets the working copy owner used when resolving bindings, wherenull
means the primary owner. -
Uses of WorkingCopyOwner in org.eclipse.jdt.core.eval
Methods in org.eclipse.jdt.core.eval with parameters of type WorkingCopyOwnerModifier and TypeMethodDescriptionvoid
IEvaluationContext.codeComplete
(String codeSnippet, int position, CompletionRequestor requestor, WorkingCopyOwner owner) Performs a code completion at the given position in the given code snippet, reporting results to the given completion requestor.void
IEvaluationContext.codeComplete
(String codeSnippet, int position, CompletionRequestor requestor, WorkingCopyOwner owner, org.eclipse.core.runtime.IProgressMonitor monitor) Performs a code completion at the given position in the given code snippet, reporting results to the given completion requestor.void
IEvaluationContext.codeComplete
(String codeSnippet, int position, ICompletionRequestor requestor, WorkingCopyOwner owner) Deprecated.IEvaluationContext.codeSelect
(String codeSnippet, int offset, int length, WorkingCopyOwner owner) Resolves and returns a collection of Java elements corresponding to the source code at the given positions in the given code snippet. -
Uses of WorkingCopyOwner in org.eclipse.jdt.core.refactoring.descriptors
Methods in org.eclipse.jdt.core.refactoring.descriptors with parameters of type WorkingCopyOwnerModifier and TypeMethodDescriptionprotected static IJavaElement
JavaRefactoringDescriptor.handleToElement
(WorkingCopyOwner owner, String project, String handle, boolean check) Converts an input handle back to the corresponding java element. -
Uses of WorkingCopyOwner in org.eclipse.jdt.core.search
Methods in org.eclipse.jdt.core.search with parameters of type WorkingCopyOwnerModifier and TypeMethodDescriptionstatic IJavaSearchScope
SearchEngine.createHierarchyScope
(IType type, WorkingCopyOwner owner) Returns a Java search scope limited to the hierarchy of the given type.static IJavaSearchScope
SearchEngine.createStrictHierarchyScope
(IJavaProject project, IType type, boolean onlySubtypes, boolean includeFocusType, WorkingCopyOwner owner) Returns a Java search scope limited to the hierarchy of the given type and to a given project.Constructors in org.eclipse.jdt.core.search with parameters of type WorkingCopyOwnerModifierConstructorDescriptionSearchEngine
(WorkingCopyOwner workingCopyOwner) Creates a new search engine with the given working copy owner.
ITypeRoot.getWorkingCopy(WorkingCopyOwner, IProgressMonitor)
instead.