Uses of Class
org.eclipse.jdt.core.JavaModelException
Packages that use JavaModelException
Package
Description
The Java model is the set of classes that model the
objects associated with creating, editing, and building a Java program.
This package contains compiler associated infrastructure APIs.
The Java DOM/AST is the set of classes that model the source code of a Java program
as a structured document.
The Java DOM/AST rewrite is the set of classes that are used to make changes to an existing DOM/AST tree.
Provides support for the evaluation of code snippets
in a scrapbook or inside the debugger.
Application programming interface for the JDT core manipulation plug-in class.
Application programming interface to access Java refactorings provided by JDT.
Provides support for searching the workspace Java
elements that match a particular description.
Provides a set of tools and utilities for manipulating .class files and Java model elements.
Application programming interfaces and classes for source lookup.
Provides advanced source lookup support for the Java debugger.
Application programming interfaces for interaction
with the Eclipse Java User Interface.
Application programming interfaces for Eclipse Java User Interface specific
actions.
Application programming interfaces for interaction
with the Eclipse Java User Interface.
-
Uses of JavaModelException in org.eclipse.jdt.core
Methods in org.eclipse.jdt.core that throw JavaModelExceptionModifier and TypeMethodDescriptionorg.eclipse.text.edits.UndoEditIBuffer.ITextEditCapability.applyTextEdit(org.eclipse.text.edits.TextEdit edit, org.eclipse.core.runtime.IProgressMonitor monitor) Applies a text edit to this underlying buffer.org.eclipse.text.edits.UndoEditICompilationUnit.applyTextEdit(org.eclipse.text.edits.TextEdit edit, org.eclipse.core.runtime.IProgressMonitor monitor) Applies a text edit to the compilation unit's buffer.voidIPackageFragmentRoot.attachSource(org.eclipse.core.runtime.IPath sourcePath, org.eclipse.core.runtime.IPath rootPath, org.eclipse.core.runtime.IProgressMonitor monitor) Attaches the source archive identified by the given absolute path to this binary package fragment root.IClassFile.becomeWorkingCopy(IProblemRequestor problemRequestor, WorkingCopyOwner owner, org.eclipse.core.runtime.IProgressMonitor monitor) Deprecated.voidICompilationUnit.becomeWorkingCopy(org.eclipse.core.runtime.IProgressMonitor monitor) Changes this compilation unit handle into a working copy.voidICompilationUnit.becomeWorkingCopy(IProblemRequestor problemRequestor, org.eclipse.core.runtime.IProgressMonitor monitor) Deprecated.UseICompilationUnit.becomeWorkingCopy(IProgressMonitor)instead.voidIOpenable.close()Closes this element and its buffer (if any).voidICodeAssist.codeComplete(int offset, CompletionRequestor requestor) Performs code completion at the given offset position in this compilation unit, reporting results to the given completion requestor.voidICodeAssist.codeComplete(int offset, CompletionRequestor requestor, 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.voidICodeAssist.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.voidICodeAssist.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.voidICodeAssist.codeComplete(int offset, ICodeCompletionRequestor requestor) Deprecated.UseICodeAssist.codeComplete(int, ICompletionRequestor)instead.voidICodeAssist.codeComplete(int offset, ICompletionRequestor requestor) Deprecated.UseICodeAssist.codeComplete(int, CompletionRequestor)instead.voidICodeAssist.codeComplete(int offset, ICompletionRequestor requestor, WorkingCopyOwner owner) Deprecated.voidIType.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.voidIType.codeComplete(char[] snippet, int insertion, int position, char[][] localVariableTypeNames, char[][] localVariableNames, int[] localVariableModifiers, boolean isStatic, CompletionRequestor requestor, org.eclipse.core.runtime.IProgressMonitor monitor) Do code completion inside a code snippet in the context of the current type.voidIType.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.voidIType.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.voidIType.codeComplete(char[] snippet, int insertion, int position, char[][] localVariableTypeNames, char[][] localVariableNames, int[] localVariableModifiers, boolean isStatic, ICompletionRequestor requestor) Deprecated.voidIType.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) Returns the Java elements corresponding to the given selected text in this compilation unit.ICodeAssist.codeSelect(int offset, int length, WorkingCopyOwner owner) Returns the Java elements corresponding to the given selected text in this compilation unit.voidIWorkingCopy.commit(boolean force, org.eclipse.core.runtime.IProgressMonitor monitor) Deprecated.voidICompilationUnit.commitWorkingCopy(boolean force, org.eclipse.core.runtime.IProgressMonitor monitor) Commits the contents of this working copy to its underlying resource.static byte[]JavaCore.compileWithAttributes(IModuleDescription module, Map<String, String> classFileAttributes) Compile the given module description in the context of its enclosing Java project and add class file attributes using the given map of attribute values.voidCorrectionEngine.computeCorrections(org.eclipse.core.resources.IMarker marker, ICompilationUnit targetUnit, int positionOffset, ICorrectionRequestor requestor) Performs code correction for the given marker, reporting results to the given correction requestor.voidCorrectionEngine.computeCorrections(IProblem problem, ICompilationUnit targetUnit, ICorrectionRequestor requestor) Performs code correction for the given IProblem, reporting results to the given correction requestor.booleanIPackageFragment.containsJavaResources()Returns whether this fragment contains at least one Java resource.voidIJavaModel.copy(IJavaElement[] elements, IJavaElement[] containers, IJavaElement[] siblings, String[] renamings, boolean replace, org.eclipse.core.runtime.IProgressMonitor monitor) Copies the given elements to the specified container(s).voidIPackageFragmentRoot.copy(org.eclipse.core.runtime.IPath destination, int updateResourceFlags, int updateModelFlags, IClasspathEntry sibling, org.eclipse.core.runtime.IProgressMonitor monitor) Copies the resource of this package fragment root to the destination path as specified byIResource.copy(IPath, int, IProgressMonitor)but excluding nested source folders.voidISourceManipulation.copy(IJavaElement container, IJavaElement sibling, String rename, boolean replace, org.eclipse.core.runtime.IProgressMonitor monitor) Copies this element to the given container.IPackageFragment.createCompilationUnit(String name, String contents, boolean force, org.eclipse.core.runtime.IProgressMonitor monitor) Creates and returns a compilation unit in this package fragment with the specified name and contents.IType.createField(String contents, IJavaElement sibling, boolean force, org.eclipse.core.runtime.IProgressMonitor monitor) Creates and returns a field in this type with the given contents.ICompilationUnit.createImport(String name, IJavaElement sibling, int flags, org.eclipse.core.runtime.IProgressMonitor monitor) Creates and returns an import declaration in this compilation unit with the given name.ICompilationUnit.createImport(String name, IJavaElement sibling, org.eclipse.core.runtime.IProgressMonitor monitor) Creates and returns an non-static import declaration in this compilation unit with the given name.IType.createInitializer(String contents, IJavaElement sibling, org.eclipse.core.runtime.IProgressMonitor monitor) Creates and returns a static initializer in this type with the given contents.IType.createMethod(String contents, IJavaElement sibling, boolean force, org.eclipse.core.runtime.IProgressMonitor monitor) Creates and returns a method or constructor in this type with the given contents.ICompilationUnit.createPackageDeclaration(String name, org.eclipse.core.runtime.IProgressMonitor monitor) Creates and returns a package declaration in this compilation unit with the given package name.IPackageFragmentRoot.createPackageFragment(String name, boolean force, org.eclipse.core.runtime.IProgressMonitor monitor) Creates and returns a package fragment in this root with the given dot-separated package name.ICompilationUnit.createType(String contents, IJavaElement sibling, boolean force, org.eclipse.core.runtime.IProgressMonitor monitor) Creates and returns a type in this compilation unit with the given contents.IType.createType(String contents, IJavaElement sibling, boolean force, org.eclipse.core.runtime.IProgressMonitor monitor) Creates and returns a type in this type with the given contents.voidIJavaModel.delete(IJavaElement[] elements, boolean force, org.eclipse.core.runtime.IProgressMonitor monitor) Deletes the given elements, forcing the operation if necessary and specified.voidIPackageFragmentRoot.delete(int updateResourceFlags, int updateModelFlags, org.eclipse.core.runtime.IProgressMonitor monitor) Deletes the resource of this package fragment root as specified byIResource.delete(int, IProgressMonitor)but excluding nested source folders.voidISourceManipulation.delete(boolean force, org.eclipse.core.runtime.IProgressMonitor monitor) Deletes this element, forcing if specified and necessary.IJavaProject.determineModulesOfProjectsWithNonEmptyClasspath()When compiling test code in a modular project that has non-source classpath entries which don't have theIClasspathAttribute.MODULEset, the module is assumed to read the unnamed module (which is useful for test-only dependencies that should not be mentioned in the module-info.java).voidICompilationUnit.discardWorkingCopy()Changes this compilation unit in working copy mode back to its original mode.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) Returns theIJavaElementcorresponding to the given classpath-relative path, ornullif no suchIJavaElementis found.IJavaProject.findElement(org.eclipse.core.runtime.IPath path, WorkingCopyOwner owner) Returns theIJavaElementcorresponding to the given classpath-relative path, ornullif no suchIJavaElementis found.IJavaProject.findModule(String moduleName, WorkingCopyOwner owner) Finds the first module with the given name found following this project's module path.IJavaProject.findPackageFragment(org.eclipse.core.runtime.IPath path) Returns the first existing package fragment on this project's classpath whose path matches the given (absolute) path, ornullif none exist.IJavaProject.findPackageFragmentRoot(org.eclipse.core.runtime.IPath path) Returns the existing package fragment root on this project's classpath whose path matches the given (absolute) path, ornullif one does not exist.IOpenable.findRecommendedLineSeparator()Finds and returns the recommended line separator for this element.Returns the first type (excluding secondary types) found following this project's classpath with the given fully qualified name ornullif none is found.Returns the first type (excluding secondary types) found following this project's classpath with the given package name and type qualified name ornullif none is found.IJavaProject.findType(String packageName, String typeQualifiedName, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Same functionality asIJavaProject.findType(String, String)but also looks for secondary types if the given name does not match a compilation unit name.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 ornullif 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, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Same functionality asIJavaProject.findType(String)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 ornullif 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.IPackageFragment.getAllClassFiles()Returns all of the class files in this package fragment.IJavaProject.getAllPackageFragmentRoots()Returns all of the existing package fragment roots that exist on the classpath, in the order they are defined by the classpath.IType[]ICompilationUnit.getAllTypes()Returns all types declared in this compilation unit in the order in which they appear in the source.IAnnotatable.getAnnotations()Returns the annotations for this element.IJavaElement.getAttachedJavadoc(org.eclipse.core.runtime.IProgressMonitor monitor) Returns the Javadoc as HTML source if this element has attached Javadoc,nullotherwise.static IModuleDescriptionJavaCore.getAutomaticModuleDescription(IJavaElement element) Returns theIModuleDescriptionthat the given java element contains when regarded as an automatic module.String[]ITypeParameter.getBounds()Returns the names of the class and interface bounds of this type parameter.String[]ITypeParameter.getBoundsSignatures()Returns the signatures for this type parameter's bounds.IOpenable.getBuffer()Returns the buffer opened for this element, ornullif this element does not have a buffer.byte[]IClassFile.getBytes()Returns the bytes contained in this class file.String[]IMember.getCategories()Returns the categories defined by this member's Javadoc.IParent.getChildren()Returns the immediate children of this element.IType.getChildrenForCategory(String category) Returns the children of this type that have the given category as a@categorytag.IPackageFragment.getClassFiles()Deprecated.Clients are advised to specifically use eitherIPackageFragment.getOrdinaryClassFiles()orIPackageFragment.getAllClassFiles()to express their intent.static IClasspathContainerJavaCore.getClasspathContainer(org.eclipse.core.runtime.IPath containerPath, IJavaProject project) Answers the project specific value for a given classpath container.IJavaProject.getClasspathEntryFor(org.eclipse.core.runtime.IPath path) Returns the classpath entry that refers to the given path ornullif there is no reference to the path.IPackageFragment.getCompilationUnits()Returns all of the compilation units in this package fragment.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.IField.getConstant()Returns the constant value associated with this field ornullif this field has none.org.eclipse.core.resources.IResourceIJavaElement.getCorrespondingResource()Returns the resource that corresponds directly to this element, ornullif there is no resource that corresponds to this element.IMethod.getDefaultValue()Returns amember value pairrepresenting the default value of this method if any, ornullif this method's parent is not an annotation type, or else if this method does not have a default value.ITypeRoot.getElementAt(int position) Returns the smallest element within this Java type root that includes the given source position (that is, a method, field, etc.), ornullif there is no element other than the Java type root itself at the given position, or if the given position is not within the source range of the source of this Java type root.String[]IMethod.getExceptionTypes()Returns the type signatures of the exceptions this method throws, in the order declared in the source.String[]IModuleDescription.getExportedPackageNames(IModuleDescription targetModule) Get names of exported packages.IField[]IType.getFields()Returns the fields declared by this type in the order in which they appear in the source or class file.intIImportDeclaration.getFlags()Returns the modifier flags for this import.intIMember.getFlags()Returns the modifier flags for this member.Returns this type's fully qualified name using a '.' enclosing type separator followed by its type parameters between angle brackets if it is a generic type.ICompilationUnit.getImports()Returns the import declarations in this compilation unit in the order in which they appear in the source.IType.getInitializers()Returns the initializers declared by this type.IMember.getJavadocRange()Returns the Javadoc range if this element is from source or if this element is a binary element with an attached source, null otherwise.IJavaModel.getJavaProjects()Returns the Java projects in this Java model, or an empty array if there are none.intIPackageFragment.getKind()Returns this package fragment's root kind encoded as an integer.intIPackageFragmentRoot.getKind()Returns this package fragment root's kind encoded as an integer.IAnnotation.getMemberValuePairs()Returns the member-value pairs of this annotation.IMethod[]IType.getMethods()Returns the methods and constructors declared by this type.IModularClassFile.getModule()Returns the module description contained in this type root.default IModuleDescriptionITypeRoot.getModule()Returns the module description contained in this type root or null if there is no module in this type root.IJavaProject.getModuleDescription()Returns theIModuleDescriptionthis project represents or null if the Java project doesn't represent any named module.ISourceReference.getNameRange()Returns the name range associated with this element.Object[]IJavaModel.getNonJavaResources()Returns an array of non-Java resources (that is, non-Java projects) in the workspace.Object[]IJavaProject.getNonJavaResources()Returns an array of non-Java resources directly contained in this project.Object[]IPackageFragment.getNonJavaResources()Returns an array of non-Java resources contained in this package fragment.Object[]IPackageFragmentRoot.getNonJavaResources()Returns an array of non-Java resources contained in this package fragment root.String[]IModuleDescription.getOpenedPackageNames(IModuleDescription targetModule) Get names of opened packages.IPackageFragment.getOrdinaryClassFiles()Returns all of the ordinary class files in this package fragment, i.e., not including the modular class file "module-info.class".org.eclipse.core.runtime.IPathIJavaProject.getOutputLocation()Returns the default output location for this project as a workspace- relative absolute path.IJavaProject.getOwnModuleDescription()Returns theIModuleDescriptionowned by this project or null if the Java project doesn't own a valid Java module descriptor.ICompilationUnit.getPackageDeclarations()Returns the package declarations in this compilation unit in the order in which they appear in the source.IJavaProject.getPackageFragmentRoots()Returns all of the package fragment roots contained in this project, identified on this project's resolved classpath.IJavaProject.getPackageFragments()Returns all package fragments in all package fragment roots contained in this project.String[]IMethod.getParameterNames()Returns the names of parameters in this method.IMethod.getParameters()Returns the parameters of this method.String[]IType.getPermittedSubtypeNames()Returns the names of types that this sealed type permits to be its subtypes.String[]IModuleDescription.getProvidedServiceNames()Get provided service names for this module.IJavaProject.getRawClasspath()Returns the raw classpath for the project, as a list of classpath entries.IPackageFragmentRoot.getRawClasspathEntry()Returns the first raw classpath entry that corresponds to this package fragment root.String[]IMethod.getRawParameterNames()Returns the names of parameters in this method.default IField[]IType.getRecordComponents()Returns the record components declared by this record class, or an empty array if this is not a record.IJavaProject.getReferencedClasspathEntries()Returns the list of referenced classpath entries stored in the .classpath file ofthisjava project.String[]IModuleDescription.getRequiredModuleNames()Answer the names of all modules directly required from this module.String[]IJavaProject.getRequiredProjectNames()Returns the names of the projects that are directly required by this project.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.IPackageFragmentRoot.getResolvedClasspathEntry()Returns the first resolved classpath entry that corresponds to this package fragment root.IMethod.getReturnType()Returns the type signature of the return value of this method.IWorkingCopy.getSharedWorkingCopy(org.eclipse.core.runtime.IProgressMonitor monitor, IBufferFactory factory, IProblemRequestor problemRequestor) Deprecated.IMethod.getSignature()Returns the signature of this method.ISourceReference.getSource()Returns the source code associated with this element.org.eclipse.core.runtime.IPathIPackageFragmentRoot.getSourceAttachmentPath()Returns the absolute path to the source archive attached to this package fragment root's binary archive.org.eclipse.core.runtime.IPathIPackageFragmentRoot.getSourceAttachmentRootPath()Returns the path within this package fragment root's source archive.ISourceReference.getSourceRange()Returns the source range associated with this element.IType.getSuperclassName()Returns the name of this type's superclass, ornullfor source types that do not specify a superclass.IType.getSuperclassTypeSignature()Returns the type signature of this type's superclass, ornullif none.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.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.IMethod.getTypeParameters()Returns the formal type parameters for this method.IType.getTypeParameters()Returns the formal type parameters for this type.String[]IMethod.getTypeParameterSignatures()Deprecated.UseIMethod.getTypeParameters()insteadString[]IType.getTypeParameterSignatures()Returns the formal type parameter signatures for this type.IType[]ICompilationUnit.getTypes()Returns the top-level types declared in this compilation unit in the order in which they appear in the source.IType[]IType.getTypes()Returns the immediate member types declared by this type.IField.getTypeSignature()Returns the type signature of this field.org.eclipse.core.resources.IResourceIJavaElement.getUnderlyingResource()Returns the smallest underlying resource that contains this element, ornullif this element is not contained in a resource.String[]IModuleDescription.getUsedServiceNames()Get used service names for this module.IClassFile.getWorkingCopy(org.eclipse.core.runtime.IProgressMonitor monitor, IBufferFactory factory) Deprecated.ICompilationUnit.getWorkingCopy(org.eclipse.core.runtime.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.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.IWorkingCopy.getWorkingCopy()Deprecated.UseICompilationUnit.getWorkingCopy(IProgressMonitor)instead.IWorkingCopy.getWorkingCopy(org.eclipse.core.runtime.IProgressMonitor monitor, IBufferFactory factory, IProblemRequestor problemRequestor) Deprecated.booleanIParent.hasChildren()Returns whether this element has one or more immediate children.booleanIPackageFragment.hasSubpackages()Returns whether this package fragment's name is a prefix of other package fragments in this package fragment's root.booleanIOpenable.hasUnsavedChanges()Returnstrueif 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 destroyedbooleanIType.isAnnotation()Returns whether this type represents an annotation type.booleanIType.isAnonymous()Returns whether this type represents an anonymous type.booleanIClassFile.isClass()Returns whether this type represents a class.booleanIType.isClass()Returns whether this type represents a class.booleanIOpenable.isConsistent()Returns whether the element is consistent with its underlying resource or buffer.booleanIMethod.isConstructor()Returns whether this method is a constructor.booleanIType.isEnum()Returns whether this type represents an enumeration class.booleanIField.isEnumConstant()Returns whether this field represents an enum constant.booleanIType.isImplicitlyDeclared()Returns whether this type is implicitly declared.booleanIClassFile.isInterface()Returns whether this type represents an interface.booleanIType.isInterface()Returns whether this type represents an interface.booleanIType.isLocal()Returns whether this type represents a local type.booleanIMethod.isMainMethod()Returns whether this method is a main method.booleanIMethod.isMainMethodCandidate()Returns whether this method is a main method candidate.booleanIType.isMember()Returns whether this type represents a member type.booleanIType.isRecord()Returns whether this type represents a record class.booleanIField.isRecordComponent()Returns whether this field represents a record component.booleanIType.isSealed()Returns whether this type is a sealed type.booleanIJavaElement.isStructureKnown()Returns whether the structure of this element is known.IType.loadTypeHierachy(InputStream input, org.eclipse.core.runtime.IProgressMonitor monitor) Loads a previously saved ITypeHierarchy from an input stream.voidIOpenable.makeConsistent(org.eclipse.core.runtime.IProgressMonitor progress) Makes this element consistent with its underlying resource or buffer by updating the element's structure and properties as necessary.voidIJavaModel.move(IJavaElement[] elements, IJavaElement[] containers, IJavaElement[] siblings, String[] renamings, boolean replace, org.eclipse.core.runtime.IProgressMonitor monitor) Moves the given elements to the specified container(s).voidIPackageFragmentRoot.move(org.eclipse.core.runtime.IPath destination, int updateResourceFlags, int updateModelFlags, IClasspathEntry sibling, org.eclipse.core.runtime.IProgressMonitor monitor) Moves the resource of this package fragment root to the destination path as specified byIResource.move(IPath,int,IProgressMonitor)but excluding nested source folders.voidISourceManipulation.move(IJavaElement container, IJavaElement sibling, String rename, boolean replace, org.eclipse.core.runtime.IProgressMonitor monitor) Moves this element to the given container.IType.newSupertypeHierarchy(org.eclipse.core.runtime.IProgressMonitor monitor) Creates and returns a type hierarchy for this type containing this type and all of its supertypes.IType.newSupertypeHierarchy(ICompilationUnit[] workingCopies, 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 given working copies.IType.newSupertypeHierarchy(IWorkingCopy[] workingCopies, org.eclipse.core.runtime.IProgressMonitor monitor) Deprecated.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, org.eclipse.core.runtime.IProgressMonitor monitor) Creates and returns a type hierarchy for all types in the given region, considering subtypes within that region.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, org.eclipse.core.runtime.IProgressMonitor monitor) Creates and returns a type hierarchy for the given type considering subtypes in the specified region.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(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.IType.newTypeHierarchy(ICompilationUnit[] workingCopies, 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 given working copies.IType.newTypeHierarchy(IJavaProject project, 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.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(IWorkingCopy[] workingCopies, org.eclipse.core.runtime.IProgressMonitor monitor) Deprecated.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 ITypeHierarchyJavaCore.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.final ICompilationUnitWorkingCopyOwner.newWorkingCopy(String name, IClasspathEntry[] classpath, org.eclipse.core.runtime.IProgressMonitor monitor) Returns a new working copy with the given name using this working copy owner to create its buffer.final ICompilationUnitWorkingCopyOwner.newWorkingCopy(String name, IClasspathEntry[] classpath, IProblemRequestor problemRequestor, org.eclipse.core.runtime.IProgressMonitor monitor) Deprecated.voidIOpenable.open(org.eclipse.core.runtime.IProgressMonitor progress) Opens this element and all parent elements that are not already open.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.org.eclipse.core.resources.IMarker[]IWorkingCopy.reconcile()Deprecated.voidIWorkingCopy.reconcile(boolean forceProblemDetection, org.eclipse.core.runtime.IProgressMonitor monitor) Deprecated.voidITypeHierarchy.refresh(org.eclipse.core.runtime.IProgressMonitor monitor) Re-computes the type hierarchy reporting progress.voidIJavaModel.refreshExternalArchives(IJavaElement[] elementsScope, org.eclipse.core.runtime.IProgressMonitor monitor) Triggers an update of the JavaModel with respect to the referenced external archives.voidIJavaModel.rename(IJavaElement[] elements, IJavaElement[] destinations, String[] names, boolean replace, org.eclipse.core.runtime.IProgressMonitor monitor) Renames the given elements as specified.voidISourceManipulation.rename(String name, boolean replace, org.eclipse.core.runtime.IProgressMonitor monitor) Renames this element to the given name.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.voidICompilationUnit.restore()Restores the contents of this working copy to the current contents of this working copy's original element.voidIWorkingCopy.restore()Deprecated.UseICompilationUnit.restore()instead.voidIBuffer.save(org.eclipse.core.runtime.IProgressMonitor progress, boolean force) Saves the contents of this buffer to its underlying resource.voidIOpenable.save(org.eclipse.core.runtime.IProgressMonitor progress, boolean force) Saves any changes in this element's buffer to its underlying resource via a workspace resource operation.static voidJavaCore.setClasspathContainer(org.eclipse.core.runtime.IPath containerPath, IJavaProject[] affectedProjects, IClasspathContainer[] respectiveContainers, org.eclipse.core.runtime.IProgressMonitor monitor) Bind a container reference path to some actual containers (IClasspathContainer).static voidJavaCore.setClasspathVariable(String variableName, org.eclipse.core.runtime.IPath path) Deprecated.static voidJavaCore.setClasspathVariable(String variableName, org.eclipse.core.runtime.IPath path, org.eclipse.core.runtime.IProgressMonitor monitor) Sets the value of the given classpath variable.static voidJavaCore.setClasspathVariables(String[] variableNames, org.eclipse.core.runtime.IPath[] paths, org.eclipse.core.runtime.IProgressMonitor monitor) Sets the values of all the given classpath variables at once.voidIJavaProject.setOutputLocation(org.eclipse.core.runtime.IPath path, org.eclipse.core.runtime.IProgressMonitor monitor) Sets the default output location of this project to the location described by the given workspace-relative absolute path.voidIJavaProject.setRawClasspath(IClasspathEntry[] entries, boolean canModifyResources, org.eclipse.core.runtime.IProgressMonitor monitor) Sets the classpath of this project using a list of classpath entries.voidIJavaProject.setRawClasspath(IClasspathEntry[] entries, org.eclipse.core.runtime.IPath outputLocation, boolean canModifyResources, org.eclipse.core.runtime.IProgressMonitor monitor) Sets both the classpath of this project and its default output location at once.voidIJavaProject.setRawClasspath(IClasspathEntry[] entries, org.eclipse.core.runtime.IPath outputLocation, org.eclipse.core.runtime.IProgressMonitor monitor) Sets the both the classpath of this project and its default output location at once.voidIJavaProject.setRawClasspath(IClasspathEntry[] entries, org.eclipse.core.runtime.IProgressMonitor monitor) Sets the classpath of this project using a list of classpath entries.voidIJavaProject.setRawClasspath(IClasspathEntry[] entries, IClasspathEntry[] referencedEntries, org.eclipse.core.runtime.IPath outputLocation, org.eclipse.core.runtime.IProgressMonitor monitor) Works similar toIJavaProject.setRawClasspath(IClasspathEntry[], IPath, IProgressMonitor)and additionally allows persisting the given array of referenced entries for this project.voidITypeHierarchy.store(OutputStream outputStream, org.eclipse.core.runtime.IProgressMonitor monitor) Stores the type hierarchy in an output stream.default voidICompilationUnit.updateTimeStamp()Can be used to synchronize the internally used modification stamp to its correspondingIResources modification stamp. -
Uses of JavaModelException in org.eclipse.jdt.core.compiler
Methods in org.eclipse.jdt.core.compiler that throw JavaModelExceptionModifier and TypeMethodDescriptionReconcileContext.getAST(int level) Returns a resolved AST with the given AST level.ReconcileContext.getAST3()Deprecated.JLS3 has been deprecated.ReconcileContext.getAST4()Deprecated.JLS4 has been deprecated.ReconcileContext.getAST8()Deprecated.JLS8 has been deprecated. -
Uses of JavaModelException in org.eclipse.jdt.core.dom
Methods in org.eclipse.jdt.core.dom that throw JavaModelException -
Uses of JavaModelException in org.eclipse.jdt.core.dom.rewrite
Methods in org.eclipse.jdt.core.dom.rewrite that throw JavaModelExceptionModifier and TypeMethodDescriptionstatic ImportRewriteImportRewrite.create(ICompilationUnit cu, boolean restoreExistingImports) Creates anImportRewritefrom anICompilationUnit.org.eclipse.text.edits.TextEditASTRewrite.rewriteAST()Converts all modifications recorded by this rewriter into an object representing the the corresponding text edits to the source of aITypeRootfrom which the AST was created from. -
Uses of JavaModelException in org.eclipse.jdt.core.eval
Methods in org.eclipse.jdt.core.eval that throw JavaModelExceptionModifier and TypeMethodDescriptionvoidIEvaluationContext.codeComplete(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.voidIEvaluationContext.codeComplete(String codeSnippet, int position, CompletionRequestor requestor, 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.voidIEvaluationContext.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.voidIEvaluationContext.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.voidIEvaluationContext.codeComplete(String codeSnippet, int position, ICodeCompletionRequestor requestor) Deprecated.- use codeComplete(String, int, ICompletionRequestor) insteadvoidIEvaluationContext.codeComplete(String codeSnippet, int position, ICompletionRequestor requestor) Deprecated.voidIEvaluationContext.codeComplete(String codeSnippet, int position, ICompletionRequestor requestor, WorkingCopyOwner owner) Deprecated.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.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.voidIEvaluationContext.evaluateCodeSnippet(String codeSnippet, String[] localVariableTypeNames, String[] localVariableNames, int[] localVariableModifiers, IType declaringType, boolean isStatic, boolean isConstructorCall, ICodeSnippetRequestor requestor, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Evaluates the given code snippet in the context of a suspended thread.voidIEvaluationContext.evaluateCodeSnippet(String codeSnippet, ICodeSnippetRequestor requestor, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Evaluates the given code snippet.voidIEvaluationContext.evaluateVariable(IGlobalVariable variable, ICodeSnippetRequestor requestor, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Evaluates the given global variable.voidIEvaluationContext.validateImports(ICodeSnippetRequestor requestor) Validates this evaluation context's import declarations. -
Uses of JavaModelException in org.eclipse.jdt.core.manipulation
Methods in org.eclipse.jdt.core.manipulation that throw JavaModelExceptionModifier and TypeMethodDescriptionstatic ImportRewriteCodeStyleConfiguration.createImportRewrite(ICompilationUnit cu, boolean restoreExistingImports) Returns aImportRewriteusingImportRewrite.create(ICompilationUnit, boolean)and configures the rewriter with the settings as specified in the JDT UI preferences. -
Uses of JavaModelException in org.eclipse.jdt.core.provisional
Methods in org.eclipse.jdt.core.provisional that throw JavaModelExceptionModifier and TypeMethodDescriptionstatic IModuleDescriptionJavaModelAccess.getAutomaticModuleDescription(IJavaElement element) Returns theIModuleDescriptionthat the given java element contains when regarded as an automatic module.static String[]JavaModelAccess.getRequiredModules(IModuleDescription module) Deprecated.this provisional API has been promoted toIModuleDescription.getRequiredModuleNames() -
Uses of JavaModelException in org.eclipse.jdt.core.refactoring.descriptors
Methods in org.eclipse.jdt.core.refactoring.descriptors that throw JavaModelExceptionModifier and TypeMethodDescriptionstatic ExtractClassDescriptor.Field[]CreatesExtractClassDescriptor.Fieldobjects for all instance fields of the type -
Uses of JavaModelException in org.eclipse.jdt.core.search
Methods in org.eclipse.jdt.core.search that throw JavaModelExceptionModifier and TypeMethodDescriptionstatic IJavaSearchScopeSearchEngine.createHierarchyScope(IType type) Returns a Java search scope limited to the hierarchy of the given type.static IJavaSearchScopeSearchEngine.createHierarchyScope(IType type, WorkingCopyOwner owner) Returns a Java search scope limited to the hierarchy of the given type.static IJavaSearchScopeSearchEngine.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.default voidIParallelizable.initBeforeSearch(org.eclipse.core.runtime.IProgressMonitor monitor) Initialize all needed data before search is startedvoidSearchEngine.search(org.eclipse.core.resources.IWorkspace workspace, String patternString, int searchFor, int limitTo, IJavaSearchScope scope, IJavaSearchResultCollector resultCollector) voidSearchEngine.search(org.eclipse.core.resources.IWorkspace workspace, IJavaElement element, int limitTo, IJavaSearchScope scope, IJavaSearchResultCollector resultCollector) voidSearchEngine.search(org.eclipse.core.resources.IWorkspace workspace, ISearchPattern searchPattern, IJavaSearchScope scope, IJavaSearchResultCollector resultCollector) voidSearchEngine.searchAllMethodNames(char[] packageName, int pkgMatchRule, char[] declaringQualification, int declQualificationMatchRule, char[] declaringSimpleName, int declSimpleNameMatchRule, char[] methodName, int methodMatchRule, IJavaSearchScope scope, MethodNameMatchRequestor nameRequestor, int waitingPolicy, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Searches for all method declarations in the given scope.voidSearchEngine.searchAllMethodNames(char[] packageName, int pkgMatchRule, char[] declaringQualification, int declQualificationMatchRule, char[] declaringSimpleName, int declSimpleNameMatchRule, char[] methodName, int methodMatchRule, IJavaSearchScope scope, MethodNameRequestor nameRequestor, int waitingPolicy, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Searches for all method declarations in the given scope.voidSearchEngine.searchAllMethodNames(char[] qualifier, int qualifierMatchRule, char[] methodName, int methodMatchRule, IJavaSearchScope scope, MethodNameMatchRequestor nameRequestor, int waitingPolicy, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Searches for all method declarations in the given scope.voidSearchEngine.searchAllMethodNames(char[] qualifier, int qualifierMatchRule, char[] methodName, int methodMatchRule, IJavaSearchScope scope, MethodNameRequestor nameRequestor, int waitingPolicy, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Searches for all method declarations in the given scope.voidSearchEngine.searchAllTypeNames(char[][] qualifications, char[][] typeNames, IJavaSearchScope scope, TypeNameMatchRequestor nameMatchRequestor, int waitingPolicy, org.eclipse.core.runtime.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.voidSearchEngine.searchAllTypeNames(char[][] qualifications, char[][] typeNames, IJavaSearchScope scope, TypeNameRequestor nameRequestor, int waitingPolicy, org.eclipse.core.runtime.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.voidSearchEngine.searchAllTypeNames(char[] packageName, char[] typeName, int matchRule, int searchFor, IJavaSearchScope scope, ITypeNameRequestor nameRequestor, int waitingPolicy, org.eclipse.core.runtime.IProgressMonitor progressMonitor) voidSearchEngine.searchAllTypeNames(char[] packageExactName, char[] typeName, int matchRule, int searchFor, IJavaSearchScope scope, TypeNameRequestor nameRequestor, int waitingPolicy, org.eclipse.core.runtime.IProgressMonitor progressMonitor) voidSearchEngine.searchAllTypeNames(char[] packageName, int packageMatchRule, char[] typeName, int typeMatchRule, int searchFor, IJavaSearchScope scope, TypeNameMatchRequestor nameMatchRequestor, int waitingPolicy, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Searches for all top-level types and member types in the given scope.voidSearchEngine.searchAllTypeNames(char[] packageName, int packageMatchRule, char[] typeName, int typeMatchRule, int searchFor, IJavaSearchScope scope, TypeNameRequestor nameRequestor, int waitingPolicy, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Searches for all top-level types and member types in the given scope.voidSearchEngine.searchAllTypeNames(org.eclipse.core.resources.IWorkspace workspace, char[] packageName, char[] typeName, int matchMode, boolean isCaseSensitive, int searchFor, IJavaSearchScope scope, ITypeNameRequestor nameRequestor, int waitingPolicy, org.eclipse.core.runtime.IProgressMonitor progressMonitor) voidSearchEngine.searchDeclarationsOfAccessedFields(org.eclipse.core.resources.IWorkspace workspace, IJavaElement enclosingElement, IJavaSearchResultCollector resultCollector) Deprecated.voidSearchEngine.searchDeclarationsOfAccessedFields(IJavaElement enclosingElement, SearchRequestor requestor, org.eclipse.core.runtime.IProgressMonitor monitor) Searches for all declarations of the fields accessed in the given element.voidSearchEngine.searchDeclarationsOfReferencedTypes(org.eclipse.core.resources.IWorkspace workspace, IJavaElement enclosingElement, IJavaSearchResultCollector resultCollector) Deprecated.voidSearchEngine.searchDeclarationsOfReferencedTypes(IJavaElement enclosingElement, SearchRequestor requestor, org.eclipse.core.runtime.IProgressMonitor monitor) Searches for all declarations of the types referenced in the given element.voidSearchEngine.searchDeclarationsOfSentMessages(org.eclipse.core.resources.IWorkspace workspace, IJavaElement enclosingElement, IJavaSearchResultCollector resultCollector) Deprecated.voidSearchEngine.searchDeclarationsOfSentMessages(IJavaElement enclosingElement, SearchRequestor requestor, org.eclipse.core.runtime.IProgressMonitor monitor) Searches for all declarations of the methods invoked in the given element. -
Uses of JavaModelException in org.eclipse.jdt.core.util
Methods in org.eclipse.jdt.core.util that throw JavaModelExceptionModifier and TypeMethodDescriptionstatic voidCompilationUnitSorter.sort(int level, ICompilationUnit compilationUnit, int[] positions, Comparator comparator, int options, org.eclipse.core.runtime.IProgressMonitor monitor) Reorders the declarations in the given compilation unit according to the specified AST level.static org.eclipse.text.edits.TextEditCompilationUnitSorter.sort(CompilationUnit unit, Comparator comparator, int options, org.eclipse.text.edits.TextEditGroup group, org.eclipse.core.runtime.IProgressMonitor monitor) Reorders the declarations in the given compilation unit according to the specified comparator.static voidCompilationUnitSorter.sort(ICompilationUnit compilationUnit, int[] positions, Comparator comparator, int options, org.eclipse.core.runtime.IProgressMonitor monitor) Deprecated.Clients should port their code to use the new JLS3 AST API and callCompilationUnitSorter.sort(AST.JLS3, compilationUnit, positions, comparator, options, monitor)instead of using this method. -
Uses of JavaModelException in org.eclipse.jdt.launching.sourcelookup
Methods in org.eclipse.jdt.launching.sourcelookup that throw JavaModelExceptionModifier and TypeMethodDescriptionprotected static voidJavaSourceLocator.collectRequiredProjects(IJavaProject proj, ArrayList<IJavaProject> res) Deprecated.Adds all projects required byprojto the listres -
Uses of JavaModelException in org.eclipse.jdt.launching.sourcelookup.advanced
Methods in org.eclipse.jdt.launching.sourcelookup.advanced that throw JavaModelExceptionModifier and TypeMethodDescriptionstatic Map<File, IPackageFragmentRoot> AdvancedSourceLookup.getClasspath(IJavaProject project) AdvancedSourceLookup.getOutputDirectories(IJavaProject project) static booleanAdvancedSourceLookup.isSourceProject(IJavaProject project) Returnstrueif the given project has sources folders,falseotherwise. -
Uses of JavaModelException in org.eclipse.jdt.ui
Methods in org.eclipse.jdt.ui that throw JavaModelExceptionModifier and TypeMethodDescriptionstatic ImportRewriteCodeStyleConfiguration.createImportRewrite(ICompilationUnit cu, boolean restoreExistingImports) Returns aImportRewriteusingImportRewrite.create(ICompilationUnit, boolean)and configures the rewriter with the settings as specified in the JDT UI preferences.static org.eclipse.ui.dialogs.SelectionDialogJavaUI.createPackageDialog(org.eclipse.swt.widgets.Shell parent, IJavaProject project, int style) Creates a selection dialog that lists all packages of the given Java project.static org.eclipse.ui.dialogs.SelectionDialogJavaUI.createPackageDialog(org.eclipse.swt.widgets.Shell parent, IJavaProject project, int style, String filter) Creates a selection dialog that lists all packages of the given Java project.static org.eclipse.ui.dialogs.SelectionDialogJavaUI.createPackageDialog(org.eclipse.swt.widgets.Shell parent, IPackageFragmentRoot root) Creates a selection dialog that lists all packages under the given package fragment root.static org.eclipse.ui.dialogs.SelectionDialogJavaUI.createPackageDialog(org.eclipse.swt.widgets.Shell parent, IPackageFragmentRoot root, String filter) Creates a selection dialog that lists all packages under the given package fragment root.static org.eclipse.ui.dialogs.SelectionDialogJavaUI.createTypeDialog(org.eclipse.swt.widgets.Shell parent, org.eclipse.jface.operation.IRunnableContext context, org.eclipse.core.resources.IProject project, int style, boolean multipleSelection) Creates a selection dialog that lists all types in the given project.static org.eclipse.ui.dialogs.SelectionDialogJavaUI.createTypeDialog(org.eclipse.swt.widgets.Shell parent, org.eclipse.jface.operation.IRunnableContext context, IJavaSearchScope scope, int style, boolean multipleSelection) Creates a selection dialog that lists all types in the given scope.static org.eclipse.ui.dialogs.SelectionDialogJavaUI.createTypeDialog(org.eclipse.swt.widgets.Shell parent, org.eclipse.jface.operation.IRunnableContext context, IJavaSearchScope scope, int style, boolean multipleSelection, String filter) Creates a selection dialog that lists all types in the given scope.static org.eclipse.ui.dialogs.SelectionDialogJavaUI.createTypeDialog(org.eclipse.swt.widgets.Shell parent, org.eclipse.jface.operation.IRunnableContext context, IJavaSearchScope scope, int style, boolean multipleSelection, String filter, TypeSelectionExtension extension) Creates a selection dialog that lists all types in the given scope.protected intOverrideIndicatorLabelDecorator.findInHierarchy(IType type, ITypeHierarchy hierarchy, String name, String[] paramTypes) Deprecated.Not used anymore.static StringJavaElementLabels.getContainerEntryLabel(org.eclipse.core.runtime.IPath containerPath, IJavaProject project) Returns the label of a classpath container.static ReaderJavadocContentAccess.getContentReader(IMember member, boolean allowInherited) Gets a reader for an IMember's Javadoc comment content from the source attachment.static ReaderJavadocContentAccess.getHTMLContentReader(IMember member, boolean allowInherited) Deprecated.As of 3.2, replaced byJavadocContentAccess.getHTMLContentReader(IMember, boolean, boolean)static ReaderJavadocContentAccess.getHTMLContentReader(IMember member, boolean allowInherited, boolean useAttachedJavadoc) Gets a reader for an IMember's Javadoc comment content from the source attachment.static URLJavaUI.getJavadocBaseLocation(IJavaElement element) Returns the Javadoc base URL for an element.static URLJavaUI.getJavadocLocation(IJavaElement element, boolean includeAnchor) Returns the Javadoc URL for an element.protected Object[]StandardJavaElementContentProvider.getJavaProjects(IJavaModel jm) Evaluates all Java projects of a givenIJavaModel.protected intOverrideIndicatorLabelDecorator.getOverrideIndicators(IMethod method) Note: This method is for internal use only.protected Object[]StandardJavaElementContentProvider.getPackageContent(IPackageFragment fragment) Evaluates all children of a givenIPackageFragment.protected Object[]StandardJavaElementContentProvider.getPackageFragmentRootContent(IPackageFragmentRoot root) Evaluates all children of a givenIPackageFragmentRoot.protected Object[]StandardJavaElementContentProvider.getPackageFragmentRoots(IJavaProject project) Evaluates all children of a givenIJavaProject.protected booleanStandardJavaElementContentProvider.isPackageFragmentEmpty(IJavaElement element) Tests if the given element is a empty package fragment.static org.eclipse.ui.IEditorPartJavaUI.openInEditor(IJavaElement element) Opens an editor on the given Java element in the active page.static org.eclipse.ui.IEditorPartJavaUI.openInEditor(IJavaElement element, boolean activate, boolean reveal) Opens an editor on the given Java element in the active page.protected voidJavaElementContentProvider.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 JavaModelExceptionModifier and TypeMethodDescriptionOpenAction.getElementToOpen(Object object) Note: this method is for internal use only. -
Uses of JavaModelException in org.eclipse.jdt.ui.text.java
Methods in org.eclipse.jdt.ui.text.java that throw JavaModelExceptionModifier and TypeMethodDescriptionstatic org.eclipse.ltk.core.refactoring.ChangeClasspathFixProcessor.ClasspathFixProposal.newAddClasspathChange(IJavaProject project, IClasspathEntry entryToAdd) A helper method to create aChangethat adds an entry to the class path.
ITypeRoot.getWorkingCopy(WorkingCopyOwner, IProgressMonitor)instead.