Modifier and Type | Method and Description |
---|---|
WorkingCopyOwner |
IJavaScriptUnit.getOwner()
Returns the working copy owner of this working copy.
|
Modifier and Type | Method and Description |
---|---|
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 |
ICodeAssist.codeComplete(int offset,
CompletionRequestor requestor,
WorkingCopyOwner owner)
Performs code completion at the given offset position in this javaScript unit,
reporting results to the given completion requestor.
|
IJavaScriptElement[] |
ICodeAssist.codeSelect(int offset,
int length,
WorkingCopyOwner owner)
Returns the JavaScript elements corresponding to the given selected text in this javaScript unit.
|
static IJavaScriptElement |
JavaScriptCore.create(java.lang.String handleIdentifier,
WorkingCopyOwner owner)
Returns the JavaScript model element corresponding to the given handle identifier
generated by
IJavaScriptElement.getHandleIdentifier() , or
null if unable to create the associated element. |
IJavaScriptElement |
IJavaScriptProject.findElement(IPath path,
WorkingCopyOwner owner)
Returns the
IJavaScriptElement corresponding to the given
includepath-relative path, or null if no such
IJavaScriptElement is found. |
IType |
IJavaScriptProject.findType(java.lang.String packageName,
java.lang.String typeQualifiedName,
WorkingCopyOwner owner,
IProgressMonitor progressMonitor)
Same functionality as
#findType(String, String, WorkingCopyOwner)
but also look for secondary types if given name does not match a javaScript unit name. |
IType |
IJavaScriptProject.findType(java.lang.String fullyQualifiedName,
WorkingCopyOwner owner,
IProgressMonitor progressMonitor)
Same functionality as
#findType(String, WorkingCopyOwner)
but also look for secondary types if given name does not match
a javaScript unit name. |
IType[] |
IJavaScriptProject.findTypes(java.lang.String fullyQualifiedName,
WorkingCopyOwner owner)
Returns all the types found following this project's include path with
the given fully qualified name.
|
IJavaScriptUnit |
IJavaScriptUnit.findWorkingCopy(WorkingCopyOwner owner)
Finds the working copy for this javaScript file, given a
WorkingCopyOwner . |
IJavaScriptUnit[] |
IPackageFragment.getJavaScriptUnits(WorkingCopyOwner owner)
Returns all of the javaScript units in this source folder that are
in working copy mode and that have the given owner.
|
static IJavaScriptUnit[] |
JavaScriptCore.getWorkingCopies(WorkingCopyOwner owner)
Returns the working copies that have the given owner.
|
IJavaScriptUnit |
IJavaScriptUnit.getWorkingCopy(WorkingCopyOwner owner,
IProblemRequestor problemRequestor,
IProgressMonitor monitor)
Deprecated.
Use
ITypeRoot.getWorkingCopy(WorkingCopyOwner, IProgressMonitor) instead.
Note that if this deprecated method is used, problems will be reported on the passed problem requester
as well as on the problem requestor returned by the working copy owner (if not null). |
IJavaScriptUnit |
ITypeRoot.getWorkingCopy(WorkingCopyOwner owner,
IProgressMonitor monitor)
Returns a shared working copy on this javaScirpt file using the given working copy owner to create
the buffer.
|
org.eclipse.wst.jsdt.internal.core.NameLookup |
ILookupScope.newNameLookup(WorkingCopyOwner owner) |
org.eclipse.wst.jsdt.internal.core.SearchableEnvironment |
ILookupScope.newSearchableNameEnvironment(WorkingCopyOwner owner) |
ITypeHierarchy |
IType.newSupertypeHierarchy(WorkingCopyOwner owner,
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.
|
ITypeHierarchy |
IType.newTypeHierarchy(IJavaScriptProject project,
WorkingCopyOwner owner,
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.
|
static ITypeHierarchy |
JavaScriptCore.newTypeHierarchy(IRegion region,
WorkingCopyOwner owner,
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.
|
ITypeHierarchy |
IJavaScriptProject.newTypeHierarchy(IRegion region,
WorkingCopyOwner owner,
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.
|
ITypeHierarchy |
IJavaScriptProject.newTypeHierarchy(IType type,
IRegion region,
WorkingCopyOwner owner,
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.
|
ITypeHierarchy |
IType.newTypeHierarchy(WorkingCopyOwner owner,
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.
|
JavaScriptUnit |
IJavaScriptUnit.reconcile(int astLevel,
boolean forceProblemDetection,
boolean enableStatementsRecovery,
WorkingCopyOwner owner,
IProgressMonitor monitor)
Reconciles the contents of this working copy, sends out a JavaScript 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
javaScript file AST if requested. |
JavaScriptUnit |
IJavaScriptUnit.reconcile(int astLevel,
boolean forceProblemDetection,
WorkingCopyOwner owner,
IProgressMonitor monitor)
Reconciles the contents of this working copy, sends out a JavaScript 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
javaScript file AST if requested. |
JavaScriptUnit |
IJavaScriptUnit.reconcile(int astLevel,
int reconcileFlags,
WorkingCopyOwner owner,
IProgressMonitor monitor)
Reconciles the contents of this working copy, sends out a JavaScript 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
javaScript file AST if requested. |
java.lang.String[][] |
IType.resolveType(java.lang.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.
|
Modifier and Type | Method and Description |
---|---|
void |
ASTParser.setWorkingCopyOwner(WorkingCopyOwner owner)
Sets the working copy owner using when resolving bindings, where
null means the primary owner. |
Modifier and Type | Method and Description |
---|---|
void |
IEvaluationContext.codeComplete(java.lang.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.
|
IJavaScriptElement[] |
IEvaluationContext.codeSelect(java.lang.String codeSnippet,
int offset,
int length,
WorkingCopyOwner owner)
Resolves and returns a collection of JavaScript elements corresponding to the source
code at the given positions in the given code snippet.
|
Modifier and Type | Method and Description |
---|---|
protected static IJavaScriptElement |
JavaScriptRefactoringDescriptor.handleToElement(WorkingCopyOwner owner,
java.lang.String project,
java.lang.String handle,
boolean check)
Converts an input handle back to the corresponding java element.
|
Modifier and Type | Method and Description |
---|---|
static IJavaScriptSearchScope |
SearchEngine.createHierarchyScope(IType type,
WorkingCopyOwner owner)
Returns a JavaScript search scope limited to the hierarchy of the given type.
|
Constructor and Description |
---|
SearchEngine(WorkingCopyOwner workingCopyOwner)
Creates a new search engine with the given working copy owner.
|
Copyright (c) IBM Corp. and others 2000, 2016. All Rights Reserved.