Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Eclipse JDT Release 3.0
PREV NEXT | FRAMES NO FRAMES

## Uses of Class
org.eclipse.jdt.core.JavaModelException

Packages that use JavaModelException
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.eval | Provides support for the evaluation of code snippets in a scrapbook or inside the debugger.
org.eclipse.jdt.core.search | Provides support for searching the workspace Java elements that match a particular description.
org.eclipse.jdt.core.util | Provides a set of tools and utilities for manipulating .class files and Java model elements.
org.eclipse.jdt.debug.ui | Provides an implementation of a source locator for the Java debug model.
org.eclipse.jdt.launching.sourcelookup | Application programming interfaces and classes for source lookup.
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.

Uses of JavaModelException in org.eclipse.jdt.core

Methods in org.eclipse.jdt.core that throw JavaModelException
`static IClasspathContainer` | `JavaCore.getClasspathContainer(IPath containerPath, IJavaProject project)` Answers the project specific value for a given classpath container.
`static void` | `JavaCore.setClasspathContainer(IPath containerPath, IJavaProject[] affectedProjects, IClasspathContainer[] respectiveContainers, IProgressMonitor monitor)` Bind a container reference path to some actual containers (`IClasspathContainer`).
`static void` | `JavaCore.setClasspathVariable(String variableName, IPath path)` Deprecated. - use API with IProgressMonitor
`static void` | `JavaCore.setClasspathVariable(String variableName, IPath path, IProgressMonitor monitor)` Sets the value of the given classpath variable.
`static void` | `JavaCore.setClasspathVariables(String[] variableNames, IPath[] paths, IProgressMonitor monitor)` Sets the values of all the given classpath variables at once.
`void` | `IWorkingCopy.commit(boolean force, IProgressMonitor monitor)` Deprecated. Commits the contents of this working copy to its original element and underlying resource, bringing the Java model up-to-date with the current contents of the working copy.
`IJavaElement` | `IWorkingCopy.getSharedWorkingCopy(IProgressMonitor monitor, IBufferFactory factory, IProblemRequestor problemRequestor)` Deprecated. Returns a shared working copy on this element using the given factory to create the buffer, or this element if this element is already a working copy.
`IJavaElement` | `IWorkingCopy.getWorkingCopy()` Deprecated. Returns a new working copy of this element if this element is not a working copy, or this element if this element is already a working copy.
`IJavaElement` | `IWorkingCopy.getWorkingCopy(IProgressMonitor monitor, IBufferFactory factory, IProblemRequestor problemRequestor)` Deprecated. Returns a new working copy of this element using the given factory to create the buffer, or this element if this element is already a working copy.
`IMarker[]` | `IWorkingCopy.reconcile()` Deprecated. Reconciles the contents of this working copy.
`void` | `IWorkingCopy.reconcile(boolean forceProblemDetection, IProgressMonitor monitor)` Deprecated. Reconciles the contents of this working copy.
`void` | `IWorkingCopy.restore()` Deprecated. Restores the contents of this working copy to the current contents of this working copy's original element.
`void` | `ITypeHierarchy.refresh(IProgressMonitor monitor)` Re-computes the type hierarchy reporting progress.
`void` | `ITypeHierarchy.store(OutputStream outputStream, IProgressMonitor monitor)` Stores the type hierarchy in an output stream.
`void` | `IType.codeComplete(char[] snippet, int insertion, int position, char[][] localVariableTypeNames, char[][] localVariableNames, int[] localVariableModifiers, boolean isStatic, ICompletionRequestor 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, ICompletionRequestor requestor, WorkingCopyOwner owner)` Do code completion inside a code snippet in the context of the current type.
`IField` | `IType.createField(String contents, IJavaElement sibling, boolean force, IProgressMonitor monitor)` Creates and returns a field in this type with the given contents.
`IInitializer` | `IType.createInitializer(String contents, IJavaElement sibling, IProgressMonitor monitor)` Creates and returns a static initializer in this type with the given contents.
`IMethod` | `IType.createMethod(String contents, IJavaElement sibling, boolean force, IProgressMonitor monitor)` Creates and returns a method or constructor in this type with the given contents.
`IType` | `IType.createType(String contents, IJavaElement sibling, boolean force, IProgressMonitor monitor)` Creates and returns a type in this type with the given contents.
`IField[]` | `IType.getFields()` Returns the fields declared by this type.
`IInitializer[]` | `IType.getInitializers()` Returns the initializers declared by this type.
`IMethod[]` | `IType.getMethods()` Returns the methods and constructors declared by this type.
`String` | `IType.getSuperclassName()` Returns the name of this type's superclass, or `null` for source types that do not specify a superclass.
`String` | `IType.getSuperclassTypeSignature()` Returns the type signature of this type's superclass, or `null` if none.
`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.
`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.
`String[]` | `IType.getTypeParameterSignatures()` Returns the formal type parameter signatures for this type.
`IType[]` | `IType.getTypes()` Returns the immediate member types declared by this type.
`boolean` | `IType.isAnonymous()` Returns whether this type represents an anonymous type.
`boolean` | `IType.isClass()` Returns whether this type represents a class.
`boolean` | `IType.isEnum()` Returns whether this type represents an enumeration class.
`boolean` | `IType.isInterface()` Returns whether this type represents an interface.
`boolean` | `IType.isAnnotation()` Returns whether this type represents an annotation type.
`boolean` | `IType.isLocal()` Returns whether this type represents a local type.
`boolean` | `IType.isMember()` Returns whether this type represents a member type.
`ITypeHierarchy` | `IType.loadTypeHierachy(InputStream input, IProgressMonitor monitor)` Loads a previously saved ITypeHierarchy from an input stream.
`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(ICompilationUnit[] 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(IWorkingCopy[] workingCopies, IProgressMonitor monitor)` Deprecated. use #newSupertypeHierarchy(ICompilationUnit[], IProgressMonitor) instead
`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(IJavaProject 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(IJavaProject 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(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` | `IType.newTypeHierarchy(ICompilationUnit[] 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(IWorkingCopy[] workingCopies, IProgressMonitor monitor)` Deprecated. use #newTypeHierarchy(ICompilationUnit[], 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.
`String[][]` | `IType.resolveType(String typeName)` Resolves the given type name within the context of this type (depending on the type hierarchy and its imports).
`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.
`String` | `ISourceReference.getSource()` Returns the source code associated with this element.
`ISourceRange` | `ISourceReference.getSourceRange()` Returns the source range associated with this element.
`void` | `ISourceManipulation.copy(IJavaElement container, IJavaElement sibling, String rename, boolean replace, IProgressMonitor monitor)` Copies this element to the given container.
`void` | `ISourceManipulation.delete(boolean force, IProgressMonitor monitor)` Deletes this element, forcing if specified and necessary.
`void` | `ISourceManipulation.move(IJavaElement container, IJavaElement sibling, String rename, boolean replace, IProgressMonitor monitor)` Moves this element to the given container.
`void` | `ISourceManipulation.rename(String name, boolean replace, IProgressMonitor monitor)` Renames this element to the given name.
`IJavaElement[]` | `IParent.getChildren()` Returns the immediate children of this element.
`boolean` | `IParent.hasChildren()` Returns whether this element has one or more immediate children.
`void` | `IPackageFragmentRoot.attachSource(IPath sourcePath, IPath rootPath, IProgressMonitor monitor)` Attaches the source archive identified by the given absolute path to this binary package fragment root.
`void` | `IPackageFragmentRoot.copy(IPath destination, int updateResourceFlags, int updateModelFlags, IClasspathEntry 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.
`IPackageFragment` | `IPackageFragmentRoot.createPackageFragment(String name, boolean force, IProgressMonitor monitor)` Creates and returns a package fragment in this root with the given dot-separated package name.
`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.
`int` | `IPackageFragmentRoot.getKind()` Returns this package fragment root's kind encoded as an integer.
`Object[]` | `IPackageFragmentRoot.getNonJavaResources()` Returns an array of non-Java resources contained in this package fragment root.
`IClasspathEntry` | `IPackageFragmentRoot.getRawClasspathEntry()` Returns the first raw classpath entry that corresponds to this package fragment root.
`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.
`void` | `IPackageFragmentRoot.move(IPath destination, int updateResourceFlags, int updateModelFlags, IClasspathEntry 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.
`boolean` | `IPackageFragment.containsJavaResources()` Returns whether this fragment contains at least one Java resource.
`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.
`IClassFile[]` | `IPackageFragment.getClassFiles()` Returns all of the class files in this package fragment.
`ICompilationUnit[]` | `IPackageFragment.getCompilationUnits()` Returns all of the compilation units in this package fragment.
`ICompilationUnit[]` | `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.
`int` | `IPackageFragment.getKind()` Returns this package fragment's root kind encoded as an integer.
`Object[]` | `IPackageFragment.getNonJavaResources()` Returns an array of non-Java resources contained in this package fragment.
`boolean` | `IPackageFragment.hasSubpackages()` Returns whether this package fragment's name is a prefix of other package fragments in this package fragment's root.
`void` | `IOpenable.close()` Closes this element and its buffer (if any).
`IBuffer` | `IOpenable.getBuffer()` Returns the buffer opened for this element, or `null` if this element does not have a buffer.
`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` | `IOpenable.isConsistent()` Returns whether the element is consistent with its underlying resource or buffer.
`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` | `IOpenable.open(IProgressMonitor progress)` Opens this element and all parent elements that are not already open.
`void` | `IOpenable.save(IProgressMonitor progress, boolean force)` Saves any changes in this element's buffer to its underlying resource via a workspace resource operation.
`String[]` | `IMethod.getExceptionTypes()` Returns the type signatures of the exceptions this method throws, in the order declared in the source.
`String[]` | `IMethod.getTypeParameterSignatures()` Returns the formal type parameter signatures for this method.
`String[]` | `IMethod.getParameterNames()` Returns the names of parameters in this method.
`String` | `IMethod.getReturnType()` Returns the type signature of the return value of this method.
`String` | `IMethod.getSignature()` Returns the signature of this method.
`boolean` | `IMethod.isConstructor()` Returns whether this method is a constructor.
`boolean` | `IMethod.isMainMethod()` Returns whether this method is a main method.
`int` | `IMember.getFlags()` Returns the modifier flags for this member.
`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).
`IJavaElement` | `IJavaProject.findElement(IPath path)` Returns the `IJavaElement` corresponding to the given classpath-relative path, or `null` if no such `IJavaElement` is found.
`IJavaElement` | `IJavaProject.findElement(IPath path, WorkingCopyOwner owner)` Returns the `IJavaElement` corresponding to the given classpath-relative path, or `null` if no such `IJavaElement` is found.
`IPackageFragment` | `IJavaProject.findPackageFragment(IPath path)` Returns the first existing package fragment on this project's classpath whose path matches the given (absolute) path, or `null` if none exist.
`IPackageFragmentRoot` | `IJavaProject.findPackageFragmentRoot(IPath path)` Returns the existing package fragment root on this project's classpath whose path matches the given (absolute) path, or `null` if one does not exist.
`IType` | `IJavaProject.findType(String fullyQualifiedName)` Returns the first type found following this project's classpath with the given fully qualified name or `null` if none is found.
`IType` | `IJavaProject.findType(String fullyQualifiedName, WorkingCopyOwner owner)` Returns the first type found following this project's classpath with the given fully qualified name or `null` if none is found.
`IType` | `IJavaProject.findType(String packageName, String typeQualifiedName)` Returns the first type found following this project's classpath with the given package name and type qualified name or `null` if none is found.
`IType` | `IJavaProject.findType(String packageName, String typeQualifiedName, WorkingCopyOwner owner)` Returns the first type found following this project's classpath with the given package name and type qualified name or `null` if none is found.
`IPackageFragmentRoot[]` | `IJavaProject.getAllPackageFragmentRoots()` Returns all of the existing package fragment roots that exist on the classpath, in the order they are defined by the classpath.
`Object[]` | `IJavaProject.getNonJavaResources()` Returns an array of non-Java resources directly contained in this project.
`IPath` | `IJavaProject.getOutputLocation()` Returns the default output location for this project as a workspace- relative absolute path.
`IPackageFragmentRoot[]` | `IJavaProject.getPackageFragmentRoots()` Returns all of the package fragment roots contained in this project, identified on this project's resolved classpath.
`IPackageFragment[]` | `IJavaProject.getPackageFragments()` Returns all package fragments in all package fragment roots contained in this project.
`IClasspathEntry[]` | `IJavaProject.getRawClasspath()` Returns the raw classpath for the project, as a list of classpath entries.
`String[]` | `IJavaProject.getRequiredProjectNames()` Returns the names of the projects that are directly required by this project.
`IClasspathEntry[]` | `IJavaProject.getResolvedClasspath(boolean ignoreUnresolvedEntry)` This is a helper method returning the resolved classpath for the project as a list of simple (non-variable, non-container) classpath entries.
`ITypeHierarchy` | `IJavaProject.newTypeHierarchy(IRegion region, IProgressMonitor monitor)` Creates and returns a type hierarchy for all types in the given region, considering subtypes within that region.
`ITypeHierarchy` | `IJavaProject.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` | `IJavaProject.newTypeHierarchy(IType type, IRegion region, IProgressMonitor monitor)` Creates and returns a type hierarchy for the given type considering subtypes in the specified region.
`ITypeHierarchy` | `IJavaProject.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.
`void` | `IJavaProject.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` | `IJavaProject.setRawClasspath(IClasspathEntry[] entries, IProgressMonitor monitor)` Sets the classpath of this project using a list of classpath entries.
`void` | `IJavaProject.setRawClasspath(IClasspathEntry[] entries, IPath outputLocation, IProgressMonitor monitor)` Sets the both the classpath of this project and its default output location at once.
`void` | `IJavaModel.copy(IJavaElement[] elements, IJavaElement[] containers, IJavaElement[] siblings, String[] renamings, boolean replace, IProgressMonitor monitor)` Copies the given elements to the specified container(s).
`void` | `IJavaModel.delete(IJavaElement[] elements, boolean force, IProgressMonitor monitor)` Deletes the given elements, forcing the operation if necessary and specified.
`IJavaProject[]` | `IJavaModel.getJavaProjects()` Returns the Java projects in this Java model, or an empty array if there are none.
`Object[]` | `IJavaModel.getNonJavaResources()` Returns an array of non-Java resources (that is, non-Java projects) in the workspace.
`void` | `IJavaModel.move(IJavaElement[] elements, IJavaElement[] containers, IJavaElement[] siblings, String[] renamings, boolean replace, IProgressMonitor monitor)` Moves the given elements to the specified container(s).
`void` | `IJavaModel.refreshExternalArchives(IJavaElement[] elementsScope, IProgressMonitor monitor)` Triggers an update of the JavaModel with respect to the referenced external archives.
`void` | `IJavaModel.rename(IJavaElement[] elements, IJavaElement[] destinations, String[] names, boolean replace, IProgressMonitor monitor)` Renames the given elements as specified.
`IResource` | `IJavaElement.getCorrespondingResource()` Returns the resource that corresponds directly to this element, or `null` if there is no resource that corresponds to this element.
`IResource` | `IJavaElement.getUnderlyingResource()` Returns the smallest underlying resource that contains this element, or `null` if this element is not contained in a resource.
`boolean` | `IJavaElement.isStructureKnown()` Returns whether the structure of this element is known.
`int` | `IImportDeclaration.getFlags()` Returns the modifier flags for this import.
`Object` | `IField.getConstant()` Returns the constant value associated with this field or `null` if this field has none.
`String` | `IField.getTypeSignature()` Returns the type signature of this field.
`void` | `ICompilationUnit.becomeWorkingCopy(IProblemRequestor problemRequestor, IProgressMonitor monitor)` Changes this compilation unit handle into a working copy.
`void` | `ICompilationUnit.commitWorkingCopy(boolean force, IProgressMonitor monitor)` Commits the contents of this working copy to its underlying resource.
`IImportDeclaration` | `ICompilationUnit.createImport(String name, IJavaElement sibling, IProgressMonitor monitor)` Creates and returns an non-static import declaration in this compilation unit with the given name.
`IImportDeclaration` | `ICompilationUnit.createImport(String name, IJavaElement sibling, int flags, IProgressMonitor monitor)` Creates and returns an import declaration in this compilation unit with the given name.
`IPackageDeclaration` | `ICompilationUnit.createPackageDeclaration(String name, IProgressMonitor monitor)` Creates and returns a package declaration in this compilation unit with the given package name.
`IType` | `ICompilationUnit.createType(String contents, IJavaElement sibling, boolean force, IProgressMonitor monitor)` Creates and returns a type in this compilation unit with the given contents.
`void` | `ICompilationUnit.discardWorkingCopy()` Changes this compilation unit in working copy mode back to its original mode.
`IType[]` | `ICompilationUnit.getAllTypes()` Returns all types declared in this compilation unit in the order in which they appear in the source.
`IJavaElement` | `ICompilationUnit.getElementAt(int position)` Returns the smallest element within this compilation unit that includes the given source position (that is, a method, field, etc.), or `null` if there is no element other than the compilation unit itself at the given position, or if the given position is not within the source range of this compilation unit.
`IImportDeclaration[]` | `ICompilationUnit.getImports()` Returns the import declarations in this compilation unit in the order in which they appear in the source.
`IPackageDeclaration[]` | `ICompilationUnit.getPackageDeclarations()` Returns the package declarations in this compilation unit in the order in which they appear in the source.
`IType[]` | `ICompilationUnit.getTypes()` Returns the top-level types declared in this compilation unit in the order in which they appear in the source.
`ICompilationUnit` | `ICompilationUnit.getWorkingCopy(IProgressMonitor monitor)` Returns a new working copy of this compilation unit if it is a primary compilation unit, or this compilation unit if it is already a non-primary working copy.
`ICompilationUnit` | `ICompilationUnit.getWorkingCopy(WorkingCopyOwner owner, IProblemRequestor problemRequestor, IProgressMonitor monitor)` Returns a shared working copy on this compilation unit using the given working copy owner to create the buffer, or this compilation unit if it is already a non-primary working copy.
`CompilationUnit` | `ICompilationUnit.reconcile(int astLevel, boolean forceProblemDetection, WorkingCopyOwner owner, 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 (see `IOpenable#makeConsistent()`), and returns a compilation unit AST if requested.
`void` | `ICompilationUnit.restore()` Restores the contents of this working copy to the current contents of this working copy's original element.
`void` | `ICodeAssist.codeComplete(int offset, ICodeCompletionRequestor requestor)` Deprecated. Use `ICodeAssist.codeComplete(int, ICompletionRequestor)` instead.
`void` | `ICodeAssist.codeComplete(int offset, ICompletionRequestor requestor)` 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)` DO NOT USE: This API element was added in anticipation of J2SE 1.5 support, which is planned for the next release of Eclipse after 3.0.
`void` | `ICodeAssist.codeComplete(int offset, ICompletionRequestor 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)` DO NOT USE: This API element was added in anticipation of J2SE 1.5 support, which is planned for the next release of Eclipse after 3.0.
`IJavaElement[]` | `ICodeAssist.codeSelect(int offset, int length)` Returns the Java elements correspondiing to the given selected text in this compilation unit.
`IJavaElement[]` | `ICodeAssist.codeSelect(int offset, int length, WorkingCopyOwner owner)` Returns the Java elements correspondiing to the given selected text in this compilation unit.
`IJavaElement` | `IClassFile.getElementAt(int position)` Returns the smallest element within this class file that includes the given source position (a method, field, etc.), or `null` if there is no element other than the class file itself at the given position, or if the given position is not within the source range of this class file.
`IType` | `IClassFile.getType()` Returns the type contained in this class file.
`ICompilationUnit` | `IClassFile.getWorkingCopy(WorkingCopyOwner owner, IProgressMonitor monitor)` Returns a working copy on the source associated with this class file using the given owner to create the buffer, or `null` if there is no source associated with the class file.
`IJavaElement` | `IClassFile.getWorkingCopy(IProgressMonitor monitor, IBufferFactory factory)` Deprecated. Use getWorkingCopy(WorkingCopyOwner, IProgressMonitor) instead
`boolean` | `IClassFile.isClass()` Returns whether this type represents a class.
`boolean` | `IClassFile.isInterface()` Returns whether this type represents an interface.
`void` | `IBuffer.save(IProgressMonitor progress, boolean force)` Saves the contents of this buffer to its underlying resource.
`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 JavaModelException in org.eclipse.jdt.core.eval

Methods in org.eclipse.jdt.core.eval that throw JavaModelException
`void` | `IEvaluationContext.codeComplete(String codeSnippet, int position, ICompletionRequestor requestor)` 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)` Performs a code completion at the given position in the given code snippet, reporting results to the given completion requestor.
`IJavaElement[]` | `IEvaluationContext.codeSelect(String codeSnippet, int offset, int length)` Resolves and returns a collection of Java elements corresponding to the source code at the given positions in the given code snippet.
`IJavaElement[]` | `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.
`void` | `IEvaluationContext.evaluateCodeSnippet(String codeSnippet, String[] localVariableTypeNames, 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.evaluateCodeSnippet(String codeSnippet, ICodeSnippetRequestor requestor, IProgressMonitor progressMonitor)` Evaluates the given code snippet.
`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.
`void` | `IEvaluationContext.codeComplete(String codeSnippet, int position, ICodeCompletionRequestor requestor)` Deprecated. - use codeComplete(String, int, ICompletionRequestor) instead

Uses of JavaModelException in org.eclipse.jdt.core.search

Methods in org.eclipse.jdt.core.search that throw JavaModelException
`static IJavaSearchScope` | `SearchEngine.createHierarchyScope(IType type)` Returns a Java search scope limited to the hierarchy of the given type.
`static IJavaSearchScope` | `SearchEngine.createHierarchyScope(IType type, WorkingCopyOwner owner)` Returns a Java search scope limited to the hierarchy of the given type.
`void` | `SearchEngine.search(IWorkspace workspace, String patternString, int searchFor, int limitTo, IJavaSearchScope scope, IJavaSearchResultCollector resultCollector)` Deprecated. Use `SearchEngine.search(SearchPattern, SearchParticipant[], IJavaSearchScope, SearchRequestor, IProgressMonitor)` instead.
`void` | `SearchEngine.search(IWorkspace workspace, IJavaElement element, int limitTo, IJavaSearchScope scope, IJavaSearchResultCollector resultCollector)` Deprecated. Use `SearchEngine.search(SearchPattern, SearchParticipant[], IJavaSearchScope, SearchRequestor, IProgressMonitor)` instead.
`void` | `SearchEngine.search(IWorkspace workspace, ISearchPattern searchPattern, IJavaSearchScope scope, IJavaSearchResultCollector resultCollector)` Deprecated. Use `SearchEngine.search(SearchPattern, SearchParticipant[], IJavaSearchScope, SearchRequestor, IProgressMonitor)` instead.
`void` | `SearchEngine.searchAllTypeNames(char[] packageName, char[] typeName, int matchRule, int searchFor, IJavaSearchScope scope, ITypeNameRequestor nameRequestor, int waitingPolicy, IProgressMonitor progressMonitor)` Searches for all top-level types and member types in the given scope.
`void` | `SearchEngine.searchAllTypeNames(IWorkspace workspace, char[] packageName, char[] typeName, int matchMode, boolean isCaseSensitive, int searchFor, IJavaSearchScope scope, ITypeNameRequestor nameRequestor, int waitingPolicy, IProgressMonitor progressMonitor)` Deprecated. Use `SearchEngine.searchAllTypeNames(char[], char[], int, int, IJavaSearchScope, ITypeNameRequestor, int, IProgressMonitor)` instead
`void` | `SearchEngine.searchDeclarationsOfAccessedFields(IJavaElement enclosingElement, SearchRequestor requestor, IProgressMonitor monitor)` Searches for all declarations of the fields accessed in the given element.
`void` | `SearchEngine.searchDeclarationsOfAccessedFields(IWorkspace workspace, IJavaElement enclosingElement, IJavaSearchResultCollector resultCollector)` Deprecated. Use `SearchEngine.searchDeclarationsOfAccessedFields(IJavaElement, SearchRequestor, IProgressMonitor)` instead.
`void` | `SearchEngine.searchDeclarationsOfReferencedTypes(IJavaElement enclosingElement, SearchRequestor requestor, IProgressMonitor monitor)` Searches for all declarations of the types referenced in the given element.
`void` | `SearchEngine.searchDeclarationsOfReferencedTypes(IWorkspace workspace, IJavaElement enclosingElement, IJavaSearchResultCollector resultCollector)` Deprecated. Use `SearchEngine.searchDeclarationsOfReferencedTypes(IJavaElement, SearchRequestor, IProgressMonitor)` instead.
`void` | `SearchEngine.searchDeclarationsOfSentMessages(IJavaElement enclosingElement, SearchRequestor requestor, IProgressMonitor monitor)` Searches for all declarations of the methods invoked in the given element.
`void` | `SearchEngine.searchDeclarationsOfSentMessages(IWorkspace workspace, IJavaElement enclosingElement, IJavaSearchResultCollector resultCollector)` Deprecated. Use `SearchEngine.searchDeclarationsOfSentMessages(IJavaElement, SearchRequestor, IProgressMonitor)` instead.

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

Methods in org.eclipse.jdt.core.util that throw JavaModelException
`static void` | `CompilationUnitSorter.sort(ICompilationUnit compilationUnit, int[] positions, Comparator comparator, int options, IProgressMonitor monitor)` Reorders the declarations in the given compilation unit.

Uses of JavaModelException in org.eclipse.jdt.debug.ui

Constructors in org.eclipse.jdt.debug.ui that throw JavaModelException
`JavaUISourceLocator(IJavaProject[] projects, boolean includeRequired)` Deprecated. Constructs a new source locator that looks in the specified project for source, and required projects, if `includeRequired` is `true`.

Uses of JavaModelException in org.eclipse.jdt.launching.sourcelookup

Methods in org.eclipse.jdt.launching.sourcelookup that throw JavaModelException
`protected static void` | `JavaSourceLocator.collectRequiredProjects(IJavaProject proj, ArrayList res)` Deprecated. Adds all projects required by `proj` to the list `res`

Constructors in org.eclipse.jdt.launching.sourcelookup that throw JavaModelException
`JavaSourceLocator(IJavaProject[] projects, boolean includeRequired)` Deprecated. Constructs a new Java source locator that looks in the specified project for source, and required projects, if `includeRequired` is `true`.

Uses of JavaModelException in org.eclipse.jdt.ui

Methods in org.eclipse.jdt.ui that throw JavaModelException
`protected Object[]` | `StandardJavaElementContentProvider.getPackageFragmentRoots(IJavaProject project)` Note: This method is for internal use only.
`protected Object[]` | `StandardJavaElementContentProvider.getJavaProjects(IJavaModel jm)` Note: This method is for internal use only.
`protected boolean` | `StandardJavaElementContentProvider.isPackageFragmentEmpty(IJavaElement element)` Note: This method is for internal use only.
`protected int` | `OverrideIndicatorLabelDecorator.getOverrideIndicators(IMethod method)` Note: This method is for internal use only.
`protected int` | `OverrideIndicatorLabelDecorator.findInHierarchy(IType type, ITypeHierarchy hierarchy, String name, String[] paramTypes)` Note: This method is for internal use only.
`static SelectionDialog` | `JavaUI.createPackageDialog(Shell parent, IJavaProject project, int style, String filter)` Creates a selection dialog that lists all packages of the given Java project.
`static SelectionDialog` | `JavaUI.createPackageDialog(Shell parent, IJavaProject project, int style)` Creates a selection dialog that lists all packages of the given Java project.
`static SelectionDialog` | `JavaUI.createPackageDialog(Shell parent, IPackageFragmentRoot root, String filter)` Creates a selection dialog that lists all packages under the given package fragment root.
`static SelectionDialog` | `JavaUI.createPackageDialog(Shell parent, IPackageFragmentRoot root)` Creates a selection dialog that lists all packages under the given package fragment root.
`static SelectionDialog` | `JavaUI.createTypeDialog(Shell parent, IRunnableContext context, IJavaSearchScope scope, int style, boolean multipleSelection, String filter)` Creates a selection dialog that lists all types in the given scope.
`static SelectionDialog` | `JavaUI.createTypeDialog(Shell parent, IRunnableContext context, IJavaSearchScope scope, int style, boolean multipleSelection)` Creates a selection dialog that lists all types in the given scope.
`static SelectionDialog` | `JavaUI.createTypeDialog(Shell parent, IRunnableContext context, IProject project, int style, boolean multipleSelection)` Creates a selection dialog that lists all types in the given project.
`static IEditorPart` | `JavaUI.openInEditor(IJavaElement element)` Opens a Java editor on the given Java element.
`static URL` | `JavaUI.getJavadocBaseLocation(IJavaElement element)` Returns the Javadoc base URL for an element.
`static URL` | `JavaUI.getJavadocLocation(IJavaElement element, boolean includeAnchor)` Returns the Javadoc URL for an element.
`protected void` | `JavaElementContentProvider.processDelta(IJavaElementDelta delta)` Deprecated. Processes a delta recursively.

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

Methods in org.eclipse.jdt.ui.actions that throw JavaModelException
`Object` | `OpenAction.getElementToOpen(Object object)` Note: this method is for internal use only.
`protected org.eclipse.jdt.internal.ui.search.JavaSearchQuery` | `FindReferencesInWorkingSetAction.createJob(IJavaElement element)`
`protected org.eclipse.jdt.internal.ui.search.JavaSearchQuery` | `FindImplementorsInWorkingSetAction.createJob(IJavaElement element)`
`protected org.eclipse.jdt.internal.ui.search.JavaSearchQuery` | `FindDeclarationsInWorkingSetAction.createJob(IJavaElement element)`
`protected org.eclipse.jdt.internal.ui.search.JavaSearchQuery` | `FindDeclarationsAction.createJob(IJavaElement element)`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Eclipse JDT Release 3.0
PREV NEXT | FRAMES NO FRAMES

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