|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Uses of JavaScriptModelException in org.eclipse.wst.jsdt.core |
---|
Methods in org.eclipse.wst.jsdt.core that throw JavaScriptModelException | |
---|---|
void |
IPackageFragmentRoot.attachSource(IPath sourcePath,
IPath rootPath,
IProgressMonitor monitor)
|
void |
IJavaScriptUnit.becomeWorkingCopy(IProblemRequestor problemRequestor,
IProgressMonitor monitor)
Deprecated. Use IJavaScriptUnit.becomeWorkingCopy(IProgressMonitor) instead.
Note that if this deprecated method is used, problems will be reported to the given problem requestor
as well as the problem requestor returned by the working copy owner (if not null). |
IJavaScriptUnit |
IClassFile.becomeWorkingCopy(IProblemRequestor problemRequestor,
WorkingCopyOwner owner,
IProgressMonitor monitor)
Deprecated. Use ITypeRoot.getWorkingCopy(WorkingCopyOwner, IProgressMonitor) instead.
Note that if this deprecated method is used, problems will be reported to the given problem requestor
as well as the problem requestor returned by the working copy owner (if not null). |
void |
IJavaScriptUnit.becomeWorkingCopy(IProgressMonitor monitor)
Changes this javaScript file handle into a working copy. |
void |
IOpenable.close()
Closes this element and its buffer (if any). |
void |
IType.codeComplete(char[] snippet,
int insertion,
int position,
char[][] localVariableTypeNames,
char[][] localVariableNames,
int[] localVariableModifiers,
boolean isStatic,
CompletionRequestor requestor)
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)
Do code completion inside a code snippet in the context of the current type. |
void |
ICodeAssist.codeComplete(int offset,
CompletionRequestor requestor)
Performs code completion at the given offset position in this javaScript unit, reporting results to the given completion requestor. |
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)
Returns the JavaScript elements corresponding to the given selected text in this javaScript unit. |
IJavaScriptElement[] |
ICodeAssist.codeSelect(int offset,
int length,
WorkingCopyOwner owner)
Returns the JavaScript elements corresponding to the given selected text in this javaScript unit. |
void |
IWorkingCopy.commit(boolean force,
IProgressMonitor monitor)
Deprecated. Use IJavaScriptUnit.commitWorkingCopy(boolean, IProgressMonitor) instead. |
void |
IJavaScriptUnit.commitWorkingCopy(boolean force,
IProgressMonitor monitor)
Commits the contents of this working copy to its underlying resource. |
void |
CorrectionEngine.computeCorrections(IMarker marker,
IJavaScriptUnit targetUnit,
int positionOffset,
ICorrectionRequestor requestor)
Performs code correction for the given marker, reporting results to the given correction requestor. |
void |
CorrectionEngine.computeCorrections(IProblem problem,
IJavaScriptUnit targetUnit,
ICorrectionRequestor requestor)
Performs code correction for the given IProblem, reporting results to the given correction requestor. |
boolean |
IPackageFragment.containsJavaResources()
Returns whether this fragment contains at least one JavaScript resource. |
void |
IJavaScriptModel.copy(IJavaScriptElement[] elements,
IJavaScriptElement[] containers,
IJavaScriptElement[] siblings,
java.lang.String[] renamings,
boolean replace,
IProgressMonitor monitor)
Copies the given elements to the specified container(s). |
void |
ISourceManipulation.copy(IJavaScriptElement container,
IJavaScriptElement sibling,
java.lang.String rename,
boolean replace,
IProgressMonitor monitor)
Copies this element to the given container. |
void |
IPackageFragmentRoot.copy(IPath destination,
int updateResourceFlags,
int updateModelFlags,
IIncludePathEntry sibling,
IProgressMonitor monitor)
Copies the resource of this package fragment root to the destination path as specified by IResource.copy(IPath, int, IProgressMonitor)
but excluding nested source folders. |
IJavaScriptUnit |
IPackageFragment.createCompilationUnit(java.lang.String name,
java.lang.String contents,
boolean force,
IProgressMonitor monitor)
Creates and returns a javaScript unit in this package fragment with the specified name and contents. |
IField |
IType.createField(java.lang.String contents,
IJavaScriptElement sibling,
boolean force,
IProgressMonitor monitor)
Creates and returns a field in this type with the given contents. |
IField |
IJavaScriptUnit.createField(java.lang.String contents,
IJavaScriptElement sibling,
boolean force,
IProgressMonitor monitor)
Creates and returns a var in this javaScript file with the given contents. |
IImportDeclaration |
IJavaScriptUnit.createImport(java.lang.String name,
IJavaScriptElement sibling,
int flags,
IProgressMonitor monitor)
Creates and returns an import declaration in this javaScript file with the given name. |
IImportDeclaration |
IJavaScriptUnit.createImport(java.lang.String name,
IJavaScriptElement sibling,
IProgressMonitor monitor)
Creates and returns an non-static import declaration in this javaScript file with the given name. |
IFunction |
IType.createMethod(java.lang.String contents,
IJavaScriptElement sibling,
boolean force,
IProgressMonitor monitor)
Creates and returns a method or constructor in this type with the given contents. |
IFunction |
IJavaScriptUnit.createMethod(java.lang.String contents,
IJavaScriptElement sibling,
boolean force,
IProgressMonitor monitor)
Creates and returns a function in this javaScript file with the given contents. |
IPackageDeclaration |
IJavaScriptUnit.createPackageDeclaration(java.lang.String name,
IProgressMonitor monitor)
Creates and returns a package declaration in this javaScript file with the given package name. |
IPackageFragment |
IPackageFragmentRoot.createPackageFragment(java.lang.String name,
boolean force,
IProgressMonitor monitor)
Creates and returns a package fragment in this root with the given dot-separated package name. |
IType |
IType.createType(java.lang.String contents,
IJavaScriptElement sibling,
boolean force,
IProgressMonitor monitor)
Creates and returns a type in this type with the given contents. |
IType |
IJavaScriptUnit.createType(java.lang.String contents,
IJavaScriptElement sibling,
boolean force,
IProgressMonitor monitor)
Creates and returns a type in this javaScript file with the given contents. |
void |
ISourceManipulation.delete(boolean force,
IProgressMonitor monitor)
Deletes this element, forcing if specified and necessary. |
void |
IJavaScriptModel.delete(IJavaScriptElement[] elements,
boolean force,
IProgressMonitor monitor)
Deletes the given elements, forcing the operation if necessary and specified. |
void |
IPackageFragmentRoot.delete(int updateResourceFlags,
int updateModelFlags,
IProgressMonitor monitor)
Deletes the resource of this package fragment root as specified by IResource.delete(int, IProgressMonitor) but excluding nested
source folders. |
void |
IJavaScriptUnit.discardWorkingCopy()
Changes this javaScript file in working copy mode back to its original mode. |
IJavaScriptElement |
IJavaScriptProject.findElement(IPath path)
Returns the IJavaScriptElement corresponding to the given
includepath-relative path, or null if no such
IJavaScriptElement is found. |
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. |
IPackageFragment |
IJavaScriptProject.findPackageFragment(IPath path)
Returns the first existing package fragment on this project's includepath whose path matches the given (absolute) path, or null if none
exist. |
IPackageFragmentRoot |
IJavaScriptProject.findPackageFragmentRoot(IPath path)
Returns the existing package fragment root on this project's includepath whose path matches the given (absolute) path, or null if
one does not exist. |
java.lang.String |
IOpenable.findRecommendedLineSeparator()
Finds and returns the recommended line separator for this element. |
IType |
IJavaScriptProject.findType(java.lang.String fullyQualifiedName)
Returns the first type found following this project's includepath with the given fully qualified name or null if none is found. |
IType |
IJavaScriptProject.findType(java.lang.String fullyQualifiedName,
IProgressMonitor progressMonitor)
Same functionality as IJavaScriptProject.findType(String) but also look for secondary
types if given name does not match a javaScript unit name. |
IType |
IJavaScriptProject.findType(java.lang.String packageName,
java.lang.String typeQualifiedName,
IProgressMonitor progressMonitor)
Same functionality as #findType(String, String) but also look for
secondary types if given name does not match a javaScript unit name. |
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. |
ITypeRoot |
IJavaScriptProject.findTypeRoot(java.lang.String fullyQualifiedName)
|
IPackageFragmentRoot[] |
IJavaScriptProject.getAllPackageFragmentRoots()
Returns all of the existing package fragment roots that exist on the includepath, in the order they are defined by the includepath. |
IType[] |
IJavaScriptUnit.getAllTypes()
Returns all types declared in this javaScript file in the order in which they appear in the source. |
java.lang.String |
IJavaScriptElement.getAttachedJavadoc(IProgressMonitor monitor)
Returns the Jsdoc as an html source if this element has an attached jsdoc, null otherwise. |
java.lang.String[] |
ITypeParameter.getBounds()
Returns the names of the class and interface bounds of this type parameter. |
IBuffer |
IOpenable.getBuffer()
Returns the buffer opened for this element, or null
if this element does not have a buffer. |
byte[] |
IClassFile.getBytes()
Returns the bytes contained in this file. |
java.lang.String[] |
IMember.getCategories()
Returns the categories defined by this member's JSDoc. |
IJavaScriptElement[] |
IParent.getChildren()
Returns the immediate children of this element. |
IJavaScriptElement[] |
IType.getChildrenForCategory(java.lang.String category)
Returns the children of this type that have the given category as a @category tag. |
IClassFile[] |
IPackageFragment.getClassFiles()
Returns all of the non-editable files in this source folder. |
java.lang.Object |
IField.getConstant()
Returns the constant value associated with this field or null if this field has none. |
IResource |
IJavaScriptElement.getCorrespondingResource()
Returns the resource that corresponds directly to this element, or null if there is no resource that corresponds to
this element. |
IJavaScriptElement |
ITypeRoot.getElementAt(int position)
Returns the smallest element within this JavaScript type root that includes the given source position (that is, a method, field, etc.), or null if there is no element other than the JavaScript type root
itself at the given position, or if the given position is not
within the source range of the source of this JavaScript type root. |
java.lang.String[] |
IFunction.getExceptionTypes()
Returns the type signatures of the exceptions this method throws, in the order declared in the source. |
IField[] |
IType.getFields()
Returns the fields declared by this type. |
IField[] |
IFunctionContainer.getFields()
Returns the fields declared by this type or javascript file. |
int |
IMember.getFlags()
Returns the modifier flags for this member. |
int |
IImportDeclaration.getFlags()
Returns the modifier flags for this import. |
java.lang.String |
IType.getFullyQualifiedParameterizedName()
Returns this type's fully qualified name |
IFunction[] |
IType.getFunctions()
Returns the methods and constructors declared by this type. |
IFunction[] |
IFunctionContainer.getFunctions()
Returns the methods and constructors declared by this type or file. |
IImportDeclaration[] |
IJavaScriptUnit.getImports()
Returns the import declarations in this javaScript file in the order in which they appear in the source. |
IInitializer[] |
IType.getInitializers()
Returns the initializers declared by this type. |
IJavaScriptProject[] |
IJavaScriptModel.getJavaScriptProjects()
Returns the JavaScript projects in this JavaScript model, or an empty array if there are none. |
IJavaScriptUnit[] |
IPackageFragment.getJavaScriptUnits()
Returns all of the javaScript units in this source folder. |
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. |
ISourceRange |
IMember.getJSdocRange()
Returns the JSDoc range if this element is from source or if this element is a binary element with an attached source, null otherwise. |
static IJsGlobalScopeContainer |
JavaScriptCore.getJsGlobalScopeContainer(IPath containerPath,
IJavaScriptProject project)
Answers the project specific value for a given includepath container. |
int |
IPackageFragmentRoot.getKind()
Returns this package fragment root's kind encoded as an integer. |
int |
IPackageFragment.getKind()
Returns this package fragment's root kind encoded as an integer. |
IFunction[] |
IType.getMethods()
Deprecated. Use IType.getFunctions() instead |
IFunction[] |
IFunctionContainer.getMethods()
Deprecated. Use IFunctionContainer.getFunctions() instead |
ISourceRange |
ITypeParameter.getNameRange()
Returns the source range of this type parameter's name, or null if this type parameter does not have
associated source code (for example, in a binary type). |
ISourceRange |
IMember.getNameRange()
Returns the source range of this member's simple name, or null if this member does not have a name
(for example, an initializer), or if this member does not have
associated source code (for example, a binary type). |
java.lang.Object[] |
IPackageFragmentRoot.getNonJavaScriptResources()
Returns an array of non-JavaScript resources contained in this package fragment root. |
java.lang.Object[] |
IPackageFragment.getNonJavaScriptResources()
Returns an array of non-JavaScript resources contained in this source folder. |
java.lang.Object[] |
IJavaScriptProject.getNonJavaScriptResources()
Returns an array of non-JavaScript resources directly contained in this project. |
java.lang.Object[] |
IJavaScriptModel.getNonJavaScriptResources()
Returns an array of non-JavaScript resources (that is, non-JavaScript projects) in the workspace. |
IPath |
IJavaScriptProject.getOutputLocation()
Returns the default output location for this project as a workspace- relative absolute path. |
IPackageDeclaration[] |
IJavaScriptUnit.getPackageDeclarations()
Returns the package declarations in this javaScript file in the order in which they appear in the source. |
IPackageFragmentRoot[] |
IJavaScriptProject.getPackageFragmentRoots()
Returns all of the package fragment roots contained in this project, identified on this project's resolved includepath. |
IPackageFragment[] |
IJavaScriptProject.getPackageFragments()
Returns all package fragments in all package fragment roots contained in this project. |
java.lang.String[] |
IFunction.getParameterNames()
Returns the names of parameters in this method. |
IIncludePathEntry[] |
IJavaScriptProject.getRawIncludepath()
Returns the raw includepath for the project, as a list of includepath entries. |
IIncludePathEntry |
IPackageFragmentRoot.getRawIncludepathEntry()
Returns the first raw includepath entry that corresponds to this package fragment root. |
java.lang.String[] |
IFunction.getRawParameterNames()
Returns the names of parameters in this method. |
java.lang.String[] |
IJavaScriptProject.getRequiredProjectNames()
Returns the names of the projects that are directly required by this project. |
IIncludePathEntry[] |
IJavaScriptProject.getResolvedIncludepath(boolean ignoreUnresolvedEntry)
This is a helper method returning the resolved includepath for the project as a list of simple (non-variable, non-container) includepath entries. |
IIncludePathEntry |
IPackageFragmentRoot.getResolvedIncludepathEntry()
|
java.lang.String |
IFunction.getReturnType()
Returns the type signature of the return value of this method. |
IJavaScriptElement |
IWorkingCopy.getSharedWorkingCopy(IProgressMonitor monitor,
IBufferFactory factory,
IProblemRequestor problemRequestor)
Deprecated. Use IJavaScriptUnit.getWorkingCopy(WorkingCopyOwner, IProblemRequestor, IProgressMonitor) instead. |
java.lang.String |
IFunction.getSignature()
Returns the signature of this method. |
java.lang.String |
ISourceReference.getSource()
Returns the source code associated with this element. |
IPath |
IPackageFragmentRoot.getSourceAttachmentPath()
Returns the absolute path to the source archive attached to this package fragment root's binary archive. |
IPath |
IPackageFragmentRoot.getSourceAttachmentRootPath()
Returns the path within this package fragment root's source archive. |
ISourceRange |
ISourceReference.getSourceRange()
Returns the source range associated with this element. |
java.lang.String |
IType.getSuperclassName()
Returns the name of this type's superclass, or null
for source types that do not specify a superclass. |
java.lang.String |
IType.getSuperclassTypeSignature()
Returns the type signature of this type's superclass, or null if none. |
java.lang.String[] |
IType.getSuperInterfaceNames()
Returns the names of interfaces that this type implements or extends, in the order in which they are listed in the source. |
java.lang.String[] |
IType.getSuperInterfaceTypeSignatures()
Returns the type signatures of the interfaces that this type implements or extends, in the order in which they are listed in the source. |
ITypeParameter[] |
IType.getTypeParameters()
Returns the formal type parameters for this type. |
ITypeParameter[] |
IFunction.getTypeParameters()
Returns the formal type parameters for this method. |
java.lang.String[] |
IType.getTypeParameterSignatures()
Returns the formal type parameter signatures for this type. |
IType[] |
IType.getTypes()
Returns the immediate member types declared by this type. |
IType[] |
IJavaScriptUnit.getTypes()
Returns the top-level types declared in this javaScript file in the order in which they appear in the source. |
IType[] |
IClassFile.getTypes()
|
java.lang.String |
IField.getTypeSignature()
Returns the type signature of this field. |
IResource |
IJavaScriptElement.getUnderlyingResource()
Returns the smallest underlying resource that contains this element, or null if this element is not contained
in a resource. |
IJavaScriptElement |
IWorkingCopy.getWorkingCopy()
Deprecated. Use IJavaScriptUnit.getWorkingCopy(IProgressMonitor) instead. |
IJavaScriptUnit |
IJavaScriptUnit.getWorkingCopy(IProgressMonitor monitor)
Returns a new working copy of this javaScript file if it is a primary javaScript file, or this javaScript file if it is already a non-primary working copy. |
IJavaScriptElement |
IWorkingCopy.getWorkingCopy(IProgressMonitor monitor,
IBufferFactory factory,
IProblemRequestor problemRequestor)
Deprecated. Use IJavaScriptUnit.getWorkingCopy(WorkingCopyOwner, IProblemRequestor, IProgressMonitor) instead. |
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. |
boolean |
IParent.hasChildren()
Returns whether this element has one or more immediate children. |
boolean |
IPackageFragment.hasSubpackages()
Returns whether this package fragment's name is a prefix of other package fragments in this package fragment's root. |
boolean |
IOpenable.hasUnsavedChanges()
Returns true if this element is open and:
its buffer has unsaved changes, or
one of its descendants has unsaved changes, or
a working copy has been created on one of this
element's children and has not yet destroyed
|
boolean |
IType.isAnnotation()
|
boolean |
IType.isAnonymous()
Returns whether this type represents an anonymous type. |
boolean |
IType.isClass()
Returns whether this type is read-only. |
boolean |
IClassFile.isClass()
|
boolean |
IOpenable.isConsistent()
Returns whether the element is consistent with its underlying resource or buffer. |
boolean |
IFunction.isConstructor()
Returns whether this method is a constructor. |
boolean |
IType.isEnum()
|
boolean |
IField.isEnumConstant()
|
boolean |
IType.isInterface()
Returns whether this type represents an interface. |
boolean |
IClassFile.isInterface()
Returns whether this type represents an interface. |
boolean |
IType.isLocal()
Returns whether this type represents a local type. |
boolean |
IFunction.isMainMethod()
|
boolean |
IType.isMember()
Returns whether this type represents a member type. |
boolean |
IJavaScriptElement.isStructureKnown()
Returns whether the structure of this element is known. |
ITypeHierarchy |
IType.loadTypeHierachy(java.io.InputStream input,
IProgressMonitor monitor)
Loads a previously saved ITypeHierarchy from an input stream. |
void |
IOpenable.makeConsistent(IProgressMonitor progress)
Makes this element consistent with its underlying resource or buffer by updating the element's structure and properties as necessary. |
void |
IJavaScriptModel.move(IJavaScriptElement[] elements,
IJavaScriptElement[] containers,
IJavaScriptElement[] siblings,
java.lang.String[] renamings,
boolean replace,
IProgressMonitor monitor)
Moves the given elements to the specified container(s). |
void |
ISourceManipulation.move(IJavaScriptElement container,
IJavaScriptElement sibling,
java.lang.String rename,
boolean replace,
IProgressMonitor monitor)
Moves this element to the given container. |
void |
IPackageFragmentRoot.move(IPath destination,
int updateResourceFlags,
int updateModelFlags,
IIncludePathEntry sibling,
IProgressMonitor monitor)
Moves the resource of this package fragment root to the destination path as specified by IResource.move(IPath,int,IProgressMonitor)
but excluding nested source folders. |
org.eclipse.wst.jsdt.internal.core.NameLookup |
ILookupScope.newNameLookup(IJavaScriptUnit[] workingCopies)
|
org.eclipse.wst.jsdt.internal.core.NameLookup |
ILookupScope.newNameLookup(WorkingCopyOwner owner)
|
org.eclipse.wst.jsdt.internal.core.SearchableEnvironment |
ILookupScope.newSearchableNameEnvironment(IJavaScriptUnit[] workingCopies)
|
org.eclipse.wst.jsdt.internal.core.SearchableEnvironment |
ILookupScope.newSearchableNameEnvironment(WorkingCopyOwner owner)
|
ITypeHierarchy |
IType.newSupertypeHierarchy(IJavaScriptUnit[] workingCopies,
IProgressMonitor monitor)
Creates and returns a type hierarchy for this type containing this type and all of its supertypes, considering types in the given working copies. |
ITypeHierarchy |
IType.newSupertypeHierarchy(IProgressMonitor monitor)
Creates and returns a type hierarchy for this type containing this type and all of its supertypes. |
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,
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. |
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. |
ITypeHierarchy |
IType.newTypeHierarchy(IJavaScriptUnit[] workingCopies,
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 given working copies. |
ITypeHierarchy |
IType.newTypeHierarchy(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. |
ITypeHierarchy |
IJavaScriptProject.newTypeHierarchy(IRegion region,
IProgressMonitor monitor)
Creates and returns a type hierarchy for all types in the given region, considering subtypes within that region. |
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,
IProgressMonitor monitor)
Creates and returns a type hierarchy for the given type considering subtypes in the specified region. |
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(IWorkingCopy[] workingCopies,
IProgressMonitor monitor)
Deprecated. Use IType.newTypeHierarchy(IJavaScriptUnit[], IProgressMonitor) instead |
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. |
IJavaScriptUnit |
WorkingCopyOwner.newWorkingCopy(java.lang.String name,
IIncludePathEntry[] classpath,
IProblemRequestor problemRequestor,
IProgressMonitor monitor)
Deprecated. Use WorkingCopyOwner.newWorkingCopy(String, IIncludePathEntry[], IProgressMonitor) instead.
Note that if this deprecated method is used, problems may be reported twice
if the given requestor is not the same as the current working copy owner one. |
IJavaScriptUnit |
WorkingCopyOwner.newWorkingCopy(java.lang.String name,
IIncludePathEntry[] classpath,
IProgressMonitor monitor)
Returns a new working copy with the given name using this working copy owner to create its buffer. |
void |
IOpenable.open(IProgressMonitor progress)
Opens this element and all parent elements that are not already open. |
IMarker[] |
IWorkingCopy.reconcile()
Deprecated. Use IJavaScriptUnit.reconcile(int, boolean, WorkingCopyOwner, IProgressMonitor) instead. |
void |
IWorkingCopy.reconcile(boolean forceProblemDetection,
IProgressMonitor monitor)
Deprecated. Use IJavaScriptUnit.reconcile(int, boolean, WorkingCopyOwner, IProgressMonitor) instead. |
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. |
void |
ITypeHierarchy.refresh(IProgressMonitor monitor)
Re-computes the type hierarchy reporting progress. |
void |
IJavaScriptModel.refreshExternalArchives(IJavaScriptElement[] elementsScope,
IProgressMonitor monitor)
Triggers an update of the JavaScriptModel with respect to the referenced external archives. |
void |
IJavaScriptModel.rename(IJavaScriptElement[] elements,
IJavaScriptElement[] destinations,
java.lang.String[] names,
boolean replace,
IProgressMonitor monitor)
Renames the given elements as specified. |
void |
ISourceManipulation.rename(java.lang.String name,
boolean replace,
IProgressMonitor monitor)
Renames this element to the given name. |
java.lang.String[][] |
IType.resolveType(java.lang.String typeName)
Resolves the given type name within the context of this type (depending on the type hierarchy and its imports). |
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. |
void |
IWorkingCopy.restore()
Deprecated. Use IJavaScriptUnit.restore() instead. |
void |
IJavaScriptUnit.restore()
Restores the contents of this working copy to the current contents of this working copy's original element. |
void |
IOpenable.save(IProgressMonitor progress,
boolean force)
Saves any changes in this element's buffer to its underlying resource via a workspace resource operation. |
void |
IBuffer.save(IProgressMonitor progress,
boolean force)
Saves the contents of this buffer to its underlying resource. |
static void |
JavaScriptCore.setIncludepathVariable(java.lang.String variableName,
IPath path)
Deprecated. Use JavaScriptCore.setIncludepathVariable(String, IPath, IProgressMonitor) instead |
static void |
JavaScriptCore.setIncludepathVariable(java.lang.String variableName,
IPath path,
IProgressMonitor monitor)
Sets the value of the given includepath variable. |
static void |
JavaScriptCore.setIncludepathVariables(java.lang.String[] variableNames,
IPath[] paths,
IProgressMonitor monitor)
Sets the values of all the given includepath variables at once. |
static void |
JavaScriptCore.setJsGlobalScopeContainer(IPath containerPath,
IJavaScriptProject[] affectedProjects,
IJsGlobalScopeContainer[] respectiveContainers,
IProgressMonitor monitor)
Bind a container reference path to some actual containers ( IJsGlobalScopeContainer ). |
void |
IJavaScriptProject.setOutputLocation(IPath path,
IProgressMonitor monitor)
Sets the default output location of this project to the location described by the given workspace-relative absolute path. |
void |
IJavaScriptProject.setRawIncludepath(IIncludePathEntry[] entries,
boolean canModifyResources,
IProgressMonitor monitor)
Sets the includepath of this project using a list of includepath entries. |
void |
IJavaScriptProject.setRawIncludepath(IIncludePathEntry[] entries,
IPath outputLocation,
boolean canModifyResources,
IProgressMonitor monitor)
Sets both the includepath of this project and its default output location at once. |
void |
IJavaScriptProject.setRawIncludepath(IIncludePathEntry[] entries,
IProgressMonitor monitor)
Sets the includepath of this project using a list of includepath entries. |
void |
ITypeHierarchy.store(java.io.OutputStream outputStream,
IProgressMonitor monitor)
Stores the type hierarchy in an output stream. |
Uses of JavaScriptModelException in org.eclipse.wst.jsdt.core.compiler |
---|
Methods in org.eclipse.wst.jsdt.core.compiler that throw JavaScriptModelException | |
---|---|
JavaScriptUnit |
ReconcileContext.getAST3()
Returns a resolved AST with JLS3 level. |
Uses of JavaScriptModelException in org.eclipse.wst.jsdt.core.dom.rewrite |
---|
Methods in org.eclipse.wst.jsdt.core.dom.rewrite that throw JavaScriptModelException | |
---|---|
static ImportRewrite |
ImportRewrite.create(IJavaScriptUnit cu,
boolean restoreExistingImports)
Creates a ImportRewrite from a IJavaScriptUnit . |
TextEdit |
ASTRewrite.rewriteAST()
Converts all modifications recorded by this rewriter into an object representing the the corresponding text edits to the source of a ITypeRoot from which the AST was created from. |
Uses of JavaScriptModelException in org.eclipse.wst.jsdt.core.eval |
---|
Methods in org.eclipse.wst.jsdt.core.eval that throw JavaScriptModelException | |
---|---|
void |
IEvaluationContext.codeComplete(java.lang.String codeSnippet,
int position,
CompletionRequestor requestor)
Performs a code completion at the given position in the given code snippet, reporting results to the given completion requestor. |
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. |
void |
IEvaluationContext.codeComplete(java.lang.String codeSnippet,
int position,
ICompletionRequestor requestor)
Deprecated. Use IEvaluationContext.codeComplete(String,int,CompletionRequestor) instead. |
void |
IEvaluationContext.codeComplete(java.lang.String codeSnippet,
int position,
ICompletionRequestor requestor,
WorkingCopyOwner owner)
Deprecated. Use IEvaluationContext.codeComplete(String,int,CompletionRequestor,WorkingCopyOwner) instead. |
IJavaScriptElement[] |
IEvaluationContext.codeSelect(java.lang.String codeSnippet,
int offset,
int length)
Resolves and returns a collection of JavaScript elements corresponding to the source code at the given positions in the given code snippet. |
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. |
void |
IEvaluationContext.evaluateCodeSnippet(java.lang.String codeSnippet,
ICodeSnippetRequestor requestor,
IProgressMonitor progressMonitor)
Evaluates the given code snippet. |
void |
IEvaluationContext.evaluateCodeSnippet(java.lang.String codeSnippet,
java.lang.String[] localVariableTypeNames,
java.lang.String[] localVariableNames,
int[] localVariableModifiers,
IType declaringType,
boolean isStatic,
boolean isConstructorCall,
ICodeSnippetRequestor requestor,
IProgressMonitor progressMonitor)
Evaluates the given code snippet in the context of a suspended thread. |
void |
IEvaluationContext.evaluateVariable(IGlobalVariable variable,
ICodeSnippetRequestor requestor,
IProgressMonitor progressMonitor)
Evaluates the given global variable. |
void |
IEvaluationContext.validateImports(ICodeSnippetRequestor requestor)
Validates this evaluation context's import declarations. |
Uses of JavaScriptModelException in org.eclipse.wst.jsdt.core.search |
---|
Methods in org.eclipse.wst.jsdt.core.search that throw JavaScriptModelException | |
---|---|
static IJavaScriptSearchScope |
SearchEngine.createHierarchyScope(IType type)
Returns a JavaScript search scope limited to the hierarchy of the given type. |
static IJavaScriptSearchScope |
SearchEngine.createHierarchyScope(IType type,
WorkingCopyOwner owner)
Returns a JavaScript search scope limited to the hierarchy of the given type. |
void |
SearchEngine.searchAllTypeNames(char[][] qualifications,
char[][] typeNames,
IJavaScriptSearchScope scope,
TypeNameMatchRequestor nameMatchRequestor,
int waitingPolicy,
IProgressMonitor progressMonitor)
Searches for all top-level types and member types in the given scope matching any of the given qualifications and type names in a case sensitive way. |
void |
SearchEngine.searchAllTypeNames(char[][] qualifications,
char[][] typeNames,
IJavaScriptSearchScope scope,
TypeNameRequestor nameRequestor,
int waitingPolicy,
IProgressMonitor progressMonitor)
Searches for all top-level types and member types in the given scope matching any of the given qualifications and type names in a case sensitive way. |
void |
SearchEngine.searchAllTypeNames(char[] packageName,
int packageMatchRule,
char[] typeName,
int typeMatchRule,
int searchFor,
IJavaScriptSearchScope scope,
TypeNameMatchRequestor nameMatchRequestor,
int waitingPolicy,
IProgressMonitor progressMonitor)
Searches for all top-level types and member types in the given scope. |
void |
SearchEngine.searchAllTypeNames(char[] packageName,
int packageMatchRule,
char[] typeName,
int typeMatchRule,
int searchFor,
IJavaScriptSearchScope scope,
TypeNameRequestor nameRequestor,
int waitingPolicy,
IProgressMonitor progressMonitor)
Searches for all top-level types and member types in the given scope. |
void |
SearchEngine.searchDeclarationsOfAccessedFields(IJavaScriptElement enclosingElement,
SearchRequestor requestor,
IProgressMonitor monitor)
Searches for all declarations of the fields accessed in the given element. |
void |
SearchEngine.searchDeclarationsOfReferencedTypes(IJavaScriptElement enclosingElement,
SearchRequestor requestor,
IProgressMonitor monitor)
Searches for all declarations of the types referenced in the given element. |
void |
SearchEngine.searchDeclarationsOfSentMessages(IJavaScriptElement enclosingElement,
SearchRequestor requestor,
IProgressMonitor monitor)
Searches for all declarations of the methods invoked in the given element. |
Uses of JavaScriptModelException in org.eclipse.wst.jsdt.core.util |
---|
Methods in org.eclipse.wst.jsdt.core.util that throw JavaScriptModelException | |
---|---|
static void |
JavaScriptUnitSorter.sort(int level,
IJavaScriptUnit compilationUnit,
int[] positions,
java.util.Comparator comparator,
int options,
IProgressMonitor monitor)
Reorders the declarations in the given javascript unit according to the specified AST level. |
static TextEdit |
JavaScriptUnitSorter.sort(JavaScriptUnit unit,
java.util.Comparator comparator,
int options,
TextEditGroup group,
IProgressMonitor monitor)
Reorders the declarations in the given javascript unit according to the specified comparator. |
Uses of JavaScriptModelException in org.eclipse.wst.jsdt.ui |
---|
Methods in org.eclipse.wst.jsdt.ui that throw JavaScriptModelException | |
---|---|
static ImportRewrite |
CodeStyleConfiguration.createImportRewrite(IJavaScriptUnit cu,
boolean restoreExistingImports)
Returns a ImportRewrite using ImportRewrite.create(IJavaScriptUnit, boolean) and
configures the rewriter with the settings as specified in the JDT UI preferences. |
static SelectionDialog |
JavaScriptUI.createPackageDialog(Shell parent,
IJavaScriptProject project,
int style)
Creates a selection dialog that lists all packages of the given JavaScript project. |
static SelectionDialog |
JavaScriptUI.createPackageDialog(Shell parent,
IJavaScriptProject project,
int style,
java.lang.String filter)
Creates a selection dialog that lists all packages of the given JavaScript project. |
static SelectionDialog |
JavaScriptUI.createPackageDialog(Shell parent,
IPackageFragmentRoot root)
Creates a selection dialog that lists all packages under the given package fragment root. |
static SelectionDialog |
JavaScriptUI.createPackageDialog(Shell parent,
IPackageFragmentRoot root,
java.lang.String filter)
Creates a selection dialog that lists all packages under the given package fragment root. |
static SelectionDialog |
JavaScriptUI.createTypeDialog(Shell parent,
IRunnableContext context,
IJavaScriptSearchScope scope,
int style,
boolean multipleSelection,
java.lang.String filter)
Creates a selection dialog that lists all types in the given scope. |
static SelectionDialog |
JavaScriptUI.createTypeDialog(Shell parent,
IRunnableContext context,
IJavaScriptSearchScope scope,
int style,
boolean multipleSelection,
java.lang.String filter,
org.eclipse.wst.jsdt.ui.dialogs.TypeSelectionExtension extension)
Creates a selection dialog that lists all types in the given scope. |
static SelectionDialog |
JavaScriptUI.createTypeDialog(Shell parent,
IRunnableContext context,
IProject project,
int style,
boolean multipleSelection)
Creates a selection dialog that lists all types in the given project. |
static java.lang.String |
JavaScriptElementLabels.getContainerEntryLabel(IPath containerPath,
IJavaScriptProject project)
Returns the label of a classpath container |
static java.io.Reader |
JSdocContentAccess.getContentReader(IMember member,
boolean allowInherited)
Gets a reader for an IMember's Javadoc comment content from the source attachment. |
java.io.Reader |
IDocumentationReader.getContentReader(IMember member,
boolean allowInherited)
|
static java.io.Reader |
JSdocContentAccess.getHTMLContentReader(IMember member,
boolean allowInherited,
boolean useAttachedJavadoc)
Gets a reader for an IMember's Javadoc comment content from the source attachment. |
static java.net.URL |
JavaScriptUI.getJSdocBaseLocation(IJavaScriptElement element)
Returns the Javadoc base URL for an element. |
static java.net.URL |
JavaScriptUI.getJSdocLocation(IJavaScriptElement element,
boolean includeAnchor)
Returns the Javadoc URL for an element. |
static IEditorPart |
JavaScriptUI.openInEditor(IJavaScriptElement element)
Opens an editor on the given JavaScript element in the active page. |
static IEditorPart |
JavaScriptUI.openInEditor(IJavaScriptElement element,
boolean activate,
boolean reveal)
Opens an editor on the given JavaScript element in the active page. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |