Uses of Interface
org.eclipse.jdt.core.IJavaElement
Packages that use IJavaElement
Package
Description
The Java model is the set of classes that model the
objects associated with creating, editing, and building a Java program.
The Java DOM/AST is the set of classes that model the source code of a Java program
as a structured document.
Provides support for the evaluation of code snippets
in a scrapbook or inside the debugger.
Provides a support for Java document manipulation through the JDOM model.
Application programming interface for Java-specified refactoring framework facilities.
Application programming interface to access Java refactorings provided by JDT.
Provides support for searching the workspace Java
elements that match a particular description.
Provides an implementation launch configuration tabs for local and remote Java applications.
Application programming interfaces for interaction
with the Eclipse Java development tools JUnit support.
Application programming interfaces related to launching JUnit tests.
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 Java search participants..
Application programming interfaces for interaction with the Eclipse Java Editor folding.
Application programming interfaces for interaction
with the Eclipse Java User Interface wizards.
-
Uses of IJavaElement in org.eclipse.jdt.core
Subinterfaces of IJavaElement in org.eclipse.jdt.coreModifier and TypeInterfaceDescriptioninterface
Represents an annotation on a package declaration, a type, a method, a field or a local variable in a compilation unit or a class file.interface
Represents a single.class
file, holding the binary form of either a type or a module: A class file of typeIOrdinaryClassFile
has a single child of typeIType
, a class file of typeIModularClassFile
has a single child of typeIModuleDescription
. Class file elements need to be opened before they can be navigated.interface
Represents an entire Java compilation unit (source file with one of theJava-like extensions
).interface
Represents a field declared in a type.interface
Represents an import container is a child of a Java compilation unit that contains all (and only) the import declarations.interface
Represents an import declaration in Java compilation unit.interface
Represents a stand-alone instance or class (static) initializer in a type.interface
Represent the root Java element corresponding to the workspace.interface
A Java project represents a view of a project resource in terms of Java elements such as package fragments, types, methods and fields.interface
Represents a local variable declared in a method or an initializer.interface
Common protocol for Java elements that can be members of types.interface
Represents a method (or constructor) declared in a type.interface
Represents the class file of a module description ("module-info.class").interface
Represents a Java module descriptor.interface
Ordinary form of aIClassFile
which holds exactly oneIType
.interface
Represents a package declaration in Java compilation unit.interface
A package fragment is a portion of the workspace corresponding to an entire package, or to a portion thereof.interface
A package fragment root contains a set of package fragments.interface
Represents either a source type in a compilation unit (either a top-level type, a member type, a local type, an anonymous type or a lambda expression) or a binary type in a class file.interface
Represents a type parameter defined by a type or a method in a compilation unit or a class file.interface
Represents an entire Java type root (either anICompilationUnit
or anIClassFile
).Methods in org.eclipse.jdt.core that return IJavaElementModifier and TypeMethodDescriptionICodeAssist.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.static IJavaElement
Returns the Java model element corresponding to the given handle identifier generated byIJavaElement.getHandleIdentifier()
, ornull
if unable to create the associated element.static IJavaElement
JavaCore.create
(String handleIdentifier, WorkingCopyOwner owner) Returns the Java model element corresponding to the given handle identifier generated byIJavaElement.getHandleIdentifier()
, ornull
if unable to create the associated element.static IJavaElement
JavaCore.create
(org.eclipse.core.resources.IFile file) Returns the Java element corresponding to the given file, ornull
if unable to associate the given file with a Java element.static IJavaElement
JavaCore.create
(org.eclipse.core.resources.IFolder folder) Returns the package fragment or package fragment root corresponding to the given folder, ornull
if unable to associate the given folder with a Java element.static IJavaElement
JavaCore.create
(org.eclipse.core.resources.IResource resource) Returns the Java element corresponding to the given resource, ornull
if unable to associate the given resource with a Java element.static IJavaElement
JavaCore.create
(org.eclipse.core.resources.IResource resource, IJavaProject project) Returns the Java element corresponding to the given file, its project being the given project.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 theIJavaElement
corresponding to the given classpath-relative path, ornull
if no suchIJavaElement
is found.IJavaProject.findElement
(org.eclipse.core.runtime.IPath path, WorkingCopyOwner owner) Returns theIJavaElement
corresponding to the given classpath-relative path, ornull
if no suchIJavaElement
is found.ICompilationUnit.findElements
(IJavaElement element) Finds the elements in this compilation unit that correspond to the given element.IWorkingCopy.findElements
(IJavaElement element) Deprecated.IWorkingCopy.findSharedWorkingCopy
(IBufferFactory bufferFactory) Deprecated.UseICompilationUnit.findWorkingCopy(WorkingCopyOwner)
instead.IJavaElement.getAncestor
(int ancestorType) Returns this Java element or the first ancestor of this element that has the given type.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@category
tag.IJavaElementDelta.getElement()
Returns the element that this delta describes a change to.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.), ornull
if 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.IJavaModelStatus.getElements()
Returns any Java elements associated with the failure (see specification of the status code), or an empty array if no elements are related to this particular status code.IRegion.getElements()
Returns the top level elements in this region.CompletionContext.getEnclosingElement()
Returns the innermost enclosing Java element which contains the completion location ornull
if this element cannot be computed.IJavaElementDelta.getMovedFromElement()
Returns an element describing this element before it was moved to its current location, ornull
if theIJavaElementDelta.F_MOVED_FROM
change flag is not set.IJavaElementDelta.getMovedToElement()
Returns an element describing this element in its new location, ornull
if theIJavaElementDelta.F_MOVED_TO
change flag is not set.IWorkingCopy.getOriginal
(IJavaElement workingCopyElement) Deprecated.UsegetPrimaryElement()
instead.IWorkingCopy.getOriginalElement()
Deprecated.UsegetPrimaryElement()
instead.IJavaElement.getParent()
Returns the element directly containing this element, ornull
if this element has no parent.IJavaElement.getPrimaryElement()
Returns the primary element (whose compilation unit is the primary compilation unit) this working copy element was created from, or this element if it is a descendant of a primary compilation unit or if it is not a descendant of a working copy (e.g. it is a binary member).IWorkingCopy.getSharedWorkingCopy
(org.eclipse.core.runtime.IProgressMonitor monitor, IBufferFactory factory, IProblemRequestor problemRequestor) Deprecated.CompletionContext.getVisibleElements
(String typeSignature) Return the elements which are visible from the completion location and which can be assigned to the given type.IClassFile.getWorkingCopy
(org.eclipse.core.runtime.IProgressMonitor monitor, IBufferFactory factory) Deprecated.IWorkingCopy.getWorkingCopy()
Deprecated.UseICompilationUnit.getWorkingCopy(IProgressMonitor)
instead.IWorkingCopy.getWorkingCopy
(org.eclipse.core.runtime.IProgressMonitor monitor, IBufferFactory factory, IProblemRequestor problemRequestor) Deprecated.Methods in org.eclipse.jdt.core with parameters of type IJavaElementModifier and TypeMethodDescriptionvoid
IRegion.add
(IJavaElement element) Adds the given element and all of its descendents to this region.static void
JavaCore.addJavaElementMarkerAttributes
(Map attributes, IJavaElement element) Configures the given marker attribute map for the given Java element.void
JavaCore.configureJavaElementMarker
(org.eclipse.core.resources.IMarker marker, IJavaElement element) Configures the given marker for the given Java element.boolean
IRegion.contains
(IJavaElement element) Returns whether the given element is contained in this region.void
IJavaModel.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).void
ISourceManipulation.copy
(IJavaElement container, IJavaElement sibling, String rename, boolean replace, org.eclipse.core.runtime.IProgressMonitor monitor) Copies this element to the given container.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.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.void
IJavaModel.delete
(IJavaElement[] elements, boolean force, org.eclipse.core.runtime.IProgressMonitor monitor) Deletes the given elements, forcing the operation if necessary and specified.ICompilationUnit.findElements
(IJavaElement element) Finds the elements in this compilation unit that correspond to the given element.IWorkingCopy.findElements
(IJavaElement element) Deprecated.UseICompilationUnit.findElements(IJavaElement)
instead.static IModuleDescription
JavaCore.getAutomaticModuleDescription
(IJavaElement element) Returns theIModuleDescription
that the given java element contains when regarded as an automatic module.IWorkingCopy.getOriginal
(IJavaElement workingCopyElement) Deprecated.UsegetPrimaryElement()
instead.boolean
IJavaProject.isOnClasspath
(IJavaElement element) Returns whether the given element is on the classpath of this project, that is, referenced from a classpath entry and not explicitly excluded using an exclusion pattern.static boolean
JavaCore.isReferencedBy
(IJavaElement element, org.eclipse.core.resources.IMarker marker) Returns whether the given marker references the given Java element.static boolean
JavaCore.isReferencedBy
(IJavaElement element, org.eclipse.core.resources.IMarkerDelta markerDelta) Returns whether the given marker delta references the given Java element.void
IJavaModel.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).void
ISourceManipulation.move
(IJavaElement container, IJavaElement sibling, String rename, boolean replace, org.eclipse.core.runtime.IProgressMonitor monitor) Moves this element to the given container.void
IJavaModel.refreshExternalArchives
(IJavaElement[] elementsScope, org.eclipse.core.runtime.IProgressMonitor monitor) Triggers an update of the JavaModel with respect to the referenced external archives.boolean
IRegion.remove
(IJavaElement element) Removes the specified element from the region and returnstrue
if successful,false
if the remove fails.void
IJavaModel.rename
(IJavaElement[] elements, IJavaElement[] destinations, String[] names, boolean replace, org.eclipse.core.runtime.IProgressMonitor monitor) Renames the given elements as specified. -
Uses of IJavaElement in org.eclipse.jdt.core.dom
Methods in org.eclipse.jdt.core.dom that return IJavaElementModifier and TypeMethodDescriptionCompilationUnit.getJavaElement()
The Java element (anorg.eclipse.jdt.core.ICompilationUnit
or anorg.eclipse.jdt.core.IClassFile
) this compilation unit was created from, ornull
if it was not created from a Java element.IBinding.getJavaElement()
Returns the Java element that corresponds to this binding.Methods in org.eclipse.jdt.core.dom with parameters of type IJavaElementModifier and TypeMethodDescriptionIBinding[]
ASTParser.createBindings
(IJavaElement[] elements, org.eclipse.core.runtime.IProgressMonitor monitor) Creates bindings for a batch of Java elements. -
Uses of IJavaElement in org.eclipse.jdt.core.eval
Methods in org.eclipse.jdt.core.eval that return IJavaElementModifier and TypeMethodDescriptionIEvaluationContext.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. -
Uses of IJavaElement in org.eclipse.jdt.core.jdom
Methods in org.eclipse.jdt.core.jdom that return IJavaElementModifier and TypeMethodDescriptionIDOMNode.getJavaElement
(IJavaElement parent) Deprecated.Returns a handle for the Java element associated with this document fragment, based on the parent Java element.Methods in org.eclipse.jdt.core.jdom with parameters of type IJavaElementModifier and TypeMethodDescriptionIDOMNode.getJavaElement
(IJavaElement parent) Deprecated.Returns a handle for the Java element associated with this document fragment, based on the parent Java element. -
Uses of IJavaElement in org.eclipse.jdt.core.provisional
Methods in org.eclipse.jdt.core.provisional with parameters of type IJavaElementModifier and TypeMethodDescriptionstatic IModuleDescription
JavaModelAccess.getAutomaticModuleDescription
(IJavaElement element) Returns theIModuleDescription
that the given java element contains when regarded as an automatic module. -
Uses of IJavaElement in org.eclipse.jdt.core.refactoring
Methods in org.eclipse.jdt.core.refactoring that return IJavaElementModifier and TypeMethodDescriptionIJavaElementMapper.getRefactoredJavaElement
(IJavaElement element) Returns the refactored Java element for the given element.RenameTypeArguments.getSimilarDeclarations()
Returns the similar declarations that get updated.Methods in org.eclipse.jdt.core.refactoring with parameters of type IJavaElementModifier and TypeMethodDescriptionIJavaElementMapper.getRefactoredJavaElement
(IJavaElement element) Returns the refactored Java element for the given element.Constructors in org.eclipse.jdt.core.refactoring with parameters of type IJavaElementModifierConstructorDescriptionRenameTypeArguments
(String newName, boolean updateReferences, boolean updateSimilarDeclarations, IJavaElement[] similarDeclarations) Creates new rename type arguments. -
Uses of IJavaElement in org.eclipse.jdt.core.refactoring.descriptors
Methods in org.eclipse.jdt.core.refactoring.descriptors that return IJavaElementModifier and TypeMethodDescriptionprotected static IJavaElement
JavaRefactoringDescriptor.handleToElement
(String project, String handle) Converts an input handle back to the corresponding java element.protected static IJavaElement
JavaRefactoringDescriptor.handleToElement
(String project, String handle, boolean check) Converts an input handle back to the corresponding java element.protected static IJavaElement
JavaRefactoringDescriptor.handleToElement
(WorkingCopyOwner owner, String project, String handle, boolean check) Converts an input handle back to the corresponding java element.Methods in org.eclipse.jdt.core.refactoring.descriptors with parameters of type IJavaElementModifier and TypeMethodDescriptionprotected static String
JavaRefactoringDescriptor.elementToHandle
(String project, IJavaElement element) Converts the specified element to an input handle.void
MoveDescriptor.setDestination
(IJavaElement element) Sets the destination of the move.void
RenameJavaElementDescriptor.setJavaElement
(IJavaElement element) Sets the Java element to be renamed. -
Uses of IJavaElement in org.eclipse.jdt.core.search
Fields in org.eclipse.jdt.core.search declared as IJavaElementModifier and TypeFieldDescriptionSearchPattern.focus
The focus element (used for reference patterns)Methods in org.eclipse.jdt.core.search that return IJavaElementModifier and TypeMethodDescriptionfinal IJavaElement
ReferenceMatch.getLocalElement()
Returns the local element of this search match, ornull
if none.final IJavaElement[]
TypeReferenceMatch.getOtherElements()
Returns other elements also enclosing the type reference.Methods in org.eclipse.jdt.core.search with parameters of type IJavaElementModifier and TypeMethodDescriptionvoid
IJavaSearchResultCollector.accept
(org.eclipse.core.resources.IResource resource, int start, int end, IJavaElement enclosingElement, int accuracy) Deprecated.Replaced bySearchRequestor.acceptSearchMatch(SearchMatch)
.static IJavaSearchScope
SearchEngine.createJavaSearchScope
(boolean excludeTestCode, IJavaElement[] elements, boolean includeReferencedProjects) Returns a Java search scope limited to the given Java elements.static IJavaSearchScope
SearchEngine.createJavaSearchScope
(boolean excludeTestCode, IJavaElement[] elements, int includeMask) Returns a Java search scope limited to the given Java elements.static IJavaSearchScope
SearchEngine.createJavaSearchScope
(IJavaElement[] elements) Returns a Java search scope limited to the given Java elements.static IJavaSearchScope
SearchEngine.createJavaSearchScope
(IJavaElement[] elements, boolean includeReferencedProjects) Returns a Java search scope limited to the given Java elements.static IJavaSearchScope
SearchEngine.createJavaSearchScope
(IJavaElement[] elements, int includeMask) Returns a Java search scope limited to the given Java elements.static SearchPattern
SearchPattern.createPattern
(IJavaElement element, int limitTo) Returns a search pattern based on a given Java element.static SearchPattern
SearchPattern.createPattern
(IJavaElement element, int limitTo, int matchRule) Returns a search pattern based on a given Java element.static ISearchPattern
SearchEngine.createSearchPattern
(IJavaElement element, int limitTo) Deprecated.UseSearchPattern.createPattern(IJavaElement, int)
instead.boolean
IJavaSearchScope.encloses
(IJavaElement element) Checks whether this scope encloses the given element.void
SearchEngine.search
(org.eclipse.core.resources.IWorkspace workspace, IJavaElement element, int limitTo, IJavaSearchScope scope, IJavaSearchResultCollector resultCollector) void
SearchEngine.searchDeclarationsOfAccessedFields
(org.eclipse.core.resources.IWorkspace workspace, IJavaElement enclosingElement, IJavaSearchResultCollector resultCollector) Deprecated.void
SearchEngine.searchDeclarationsOfAccessedFields
(IJavaElement enclosingElement, SearchRequestor requestor, org.eclipse.core.runtime.IProgressMonitor monitor) Searches for all declarations of the fields accessed in the given element.void
SearchEngine.searchDeclarationsOfReferencedTypes
(org.eclipse.core.resources.IWorkspace workspace, IJavaElement enclosingElement, IJavaSearchResultCollector resultCollector) Deprecated.void
SearchEngine.searchDeclarationsOfReferencedTypes
(IJavaElement enclosingElement, SearchRequestor requestor, org.eclipse.core.runtime.IProgressMonitor monitor) Searches for all declarations of the types referenced in the given element.void
SearchEngine.searchDeclarationsOfSentMessages
(org.eclipse.core.resources.IWorkspace workspace, IJavaElement enclosingElement, IJavaSearchResultCollector resultCollector) Deprecated.void
SearchEngine.searchDeclarationsOfSentMessages
(IJavaElement enclosingElement, SearchRequestor requestor, org.eclipse.core.runtime.IProgressMonitor monitor) Searches for all declarations of the methods invoked in the given element.final void
ReferenceMatch.setLocalElement
(IJavaElement element) Store the local element in the match.final void
TypeReferenceMatch.setOtherElements
(IJavaElement[] otherElements) Sets the other elements of this search match.Constructors in org.eclipse.jdt.core.search with parameters of type IJavaElementModifierConstructorDescriptionFieldDeclarationMatch
(IJavaElement element, int accuracy, int offset, int length, SearchParticipant participant, org.eclipse.core.resources.IResource resource) Creates a new field declaration match.FieldReferenceMatch
(IJavaElement enclosingElement, int accuracy, int offset, int length, boolean isReadAccess, boolean isWriteAccess, boolean insideDocComment, SearchParticipant participant, org.eclipse.core.resources.IResource resource) Creates a new field reference match.LocalVariableDeclarationMatch
(IJavaElement element, int accuracy, int offset, int length, SearchParticipant participant, org.eclipse.core.resources.IResource resource) Creates a new local variable declaration match.LocalVariableReferenceMatch
(IJavaElement enclosingElement, int accuracy, int offset, int length, boolean isReadAccess, boolean isWriteAccess, boolean insideDocComment, SearchParticipant participant, org.eclipse.core.resources.IResource resource) Creates a new local variable reference match.MethodDeclarationMatch
(IJavaElement element, int accuracy, int offset, int length, SearchParticipant participant, org.eclipse.core.resources.IResource resource) Creates a new method declaration match.MethodReferenceMatch
(IJavaElement enclosingElement, int accuracy, int offset, int length, boolean constructor, boolean synthetic, boolean superInvocation, boolean insideDocComment, SearchParticipant participant, org.eclipse.core.resources.IResource resource) Creates a new method reference match.MethodReferenceMatch
(IJavaElement enclosingElement, int accuracy, int offset, int length, boolean constructor, boolean synthetic, boolean insideDocComment, SearchParticipant participant, org.eclipse.core.resources.IResource resource) Creates a new method reference match.MethodReferenceMatch
(IJavaElement enclosingElement, int accuracy, int offset, int length, boolean insideDocComment, SearchParticipant participant, org.eclipse.core.resources.IResource resource) Creates a new method reference match.ModuleDeclarationMatch
(IJavaElement element, int accuracy, int offset, int length, SearchParticipant participant, org.eclipse.core.resources.IResource resource) Creates a new type declaration match.ModuleReferenceMatch
(IJavaElement enclosingElement, int accuracy, int offset, int length, boolean insideDocComment, SearchParticipant participant, org.eclipse.core.resources.IResource resource) Creates a new module reference match.PackageDeclarationMatch
(IJavaElement element, int accuracy, int offset, int length, SearchParticipant participant, org.eclipse.core.resources.IResource resource) Creates a new package declaration match.PackageReferenceMatch
(IJavaElement enclosingElement, int accuracy, int offset, int length, boolean insideDocComment, SearchParticipant participant, org.eclipse.core.resources.IResource resource) Creates a new package reference match.ReferenceMatch
(IJavaElement enclosingElement, int accuracy, int offset, int length, boolean insideDocComment, SearchParticipant participant, org.eclipse.core.resources.IResource resource) Creates a new reference match.SearchMatch
(IJavaElement element, int accuracy, int offset, int length, SearchParticipant participant, org.eclipse.core.resources.IResource resource) Creates a new search match.TypeDeclarationMatch
(IJavaElement element, int accuracy, int offset, int length, SearchParticipant participant, org.eclipse.core.resources.IResource resource) Creates a new type declaration match.TypeParameterDeclarationMatch
(IJavaElement element, int accuracy, int offset, int length, SearchParticipant participant, org.eclipse.core.resources.IResource resource) Creates a new type parameter match.TypeParameterReferenceMatch
(IJavaElement enclosingElement, int accuracy, int offset, int length, boolean insideDocComment, SearchParticipant participant, org.eclipse.core.resources.IResource resource) Creates a new field reference match.TypeReferenceMatch
(IJavaElement enclosingElement, int accuracy, int offset, int length, boolean insideDocComment, SearchParticipant participant, org.eclipse.core.resources.IResource resource) Creates a new type reference match. -
Uses of IJavaElement in org.eclipse.jdt.debug.ui.launchConfigurations
Methods in org.eclipse.jdt.debug.ui.launchConfigurations that return IJavaElementModifier and TypeMethodDescriptionprotected IJavaElement
JavaLaunchTab.getContext()
Returns the current Java element context in the active workbench page ornull
if none.protected IJavaElement[]
JavaApplicationLaunchShortcut.getJavaElements
(Object[] objects) Returns the Java elements corresponding to the given objects.Methods in org.eclipse.jdt.debug.ui.launchConfigurations with parameters of type IJavaElementModifier and TypeMethodDescriptionprotected void
JavaLaunchTab.initializeJavaProject
(IJavaElement javaElement, org.eclipse.debug.core.ILaunchConfigurationWorkingCopy config) Sets the Java project attribute on the given working copy to the Java project associated with the given Java element. -
Uses of IJavaElement in org.eclipse.jdt.junit
Methods in org.eclipse.jdt.junit with parameters of type IJavaElementModifier and TypeMethodDescriptionstatic IType[]
JUnitCore.findTestTypes
(IJavaElement container, org.eclipse.core.runtime.IProgressMonitor monitor) Finds types that contain JUnit tests in the given container. -
Uses of IJavaElement in org.eclipse.jdt.junit.launcher
Methods in org.eclipse.jdt.junit.launcher with parameters of type IJavaElementModifier and TypeMethodDescriptionprotected org.eclipse.debug.core.ILaunchConfigurationWorkingCopy
JUnitLaunchShortcut.createLaunchConfiguration
(IJavaElement element) Creates a launch configuration working copy for the given element.protected org.eclipse.debug.core.ILaunchConfigurationWorkingCopy
JUnitLaunchShortcut.createLaunchConfiguration
(IJavaElement element, String testName) Creates a launch configuration working copy for the given element.protected String
JUnitLaunchShortcut.suggestLaunchConfigurationName
(IJavaElement element, String fullTestName) Computes a human-readable name for a launch configuration. -
Uses of IJavaElement in org.eclipse.jdt.ui
Methods in org.eclipse.jdt.ui that return IJavaElementModifier and TypeMethodDescriptionstatic IJavaElement
JavaUI.getEditorInputJavaElement
(org.eclipse.ui.IEditorInput editorInput) Returns the Java element wrapped by the given editor input.ITypeHierarchyViewPart.getInputElement()
Returns the input element of this type hierarchy view.Methods in org.eclipse.jdt.ui with parameters of type IJavaElementModifier and TypeMethodDescriptionstatic void
JavaElementLabels.getDeclarationLabel
(IJavaElement declaration, long flags, StringBuffer buf) Appends the label for a import container, import or package declaration to aStringBuffer
.static void
JavaElementLabels.getDeclarationLabel
(IJavaElement declaration, long flags, org.eclipse.jface.viewers.StyledString result) Appends the label for a import container, import or package declaration to aStyledString
.static String
JavaElementLabels.getElementLabel
(IJavaElement element, long flags) Returns the label for a Java element with the flags as defined by this class.static void
JavaElementLabels.getElementLabel
(IJavaElement element, long flags, StringBuffer buf) Returns the label for a Java element with the flags as defined by this class.static void
JavaElementLabels.getElementLabel
(IJavaElement element, long flags, org.eclipse.jface.viewers.StyledString result) Returns the styled label for a Java element with the flags as defined by this class.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.static org.eclipse.jface.viewers.StyledString
JavaElementLabels.getStyledElementLabel
(IJavaElement element, long flags) Returns the styled label for a Java element with the flags as defined by this class.protected boolean
StandardJavaElementContentProvider.isPackageFragmentEmpty
(IJavaElement element) Tests if the given element is a empty package fragment.static org.eclipse.ui.IEditorPart
JavaUI.openInEditor
(IJavaElement element) Opens an editor on the given Java element in the active page.static org.eclipse.ui.IEditorPart
JavaUI.openInEditor
(IJavaElement element, boolean activate, boolean reveal) Opens an editor on the given Java element in the active page.static void
JavaUI.revealInEditor
(org.eclipse.ui.IEditorPart part, IJavaElement element) Reveals the given java element in the given editor.void
ITypeHierarchyViewPart.setInputElement
(IJavaElement element) Sets the input element of this type hierarchy view. -
Uses of IJavaElement in org.eclipse.jdt.ui.actions
Methods in org.eclipse.jdt.ui.actions that return IJavaElementModifier and TypeMethodDescriptionAbstractOpenWizardAction.getCreatedElement()
Returns the created element ornull
if the wizard has not run or was canceled.Methods in org.eclipse.jdt.ui.actions with parameters of type IJavaElementModifier and TypeMethodDescriptionvoid
FindAction.run
(IJavaElement element) Executes this action for the given java element.void
FindAction.run
(IJavaElement[] elements) Executes this action for the given Java element List.void
FindReferencesAction.run
(IJavaElement element) protected void
OpenAttachedJavadocAction.run
(IJavaElement element) Executes this actions with the given Java element.void
OpenExternalJavadocAction.run
(IJavaElement element) Deprecated.void
OpenTypeHierarchyAction.run
(IJavaElement[] elements) void
ShowInPackageViewAction.run
(IJavaElement element) Deprecated.Tries to reveal the given Java elementvoid
WorkingSetFindAction.run
(IJavaElement element) void
WorkingSetFindAction.run
(IJavaElement[] elements) -
Uses of IJavaElement in org.eclipse.jdt.ui.search
Methods in org.eclipse.jdt.ui.search that return IJavaElementModifier and TypeMethodDescriptionElementQuerySpecification.getElement()
Returns the element to search for.Constructors in org.eclipse.jdt.ui.search with parameters of type IJavaElementModifierConstructorDescriptionElementQuerySpecification
(IJavaElement javaElement, int limitTo, IJavaSearchScope scope, String scopeDescription) A constructor. -
Uses of IJavaElement in org.eclipse.jdt.ui.text.folding
Methods in org.eclipse.jdt.ui.text.folding with parameters of type IJavaElementModifier and TypeMethodDescriptionfinal void
DefaultJavaFoldingStructureProvider.collapseElements
(IJavaElement[] elements) void
IJavaFoldingStructureProviderExtension.collapseElements
(IJavaElement[] elements) Collapses the given elements.protected void
DefaultJavaFoldingStructureProvider.computeFoldingStructure
(IJavaElement element, DefaultJavaFoldingStructureProvider.FoldingStructureComputationContext ctx) Computes the folding structure for a givenjava element
.final void
DefaultJavaFoldingStructureProvider.expandElements
(IJavaElement[] elements) void
IJavaFoldingStructureProviderExtension.expandElements
(IJavaElement[] elements) Expands the given elements.Constructors in org.eclipse.jdt.ui.text.folding with parameters of type IJavaElementModifierConstructorDescriptionJavaProjectionAnnotation
(boolean isCollapsed, IJavaElement element, boolean isComment) Creates a new projection annotation. -
Uses of IJavaElement in org.eclipse.jdt.ui.wizards
Methods in org.eclipse.jdt.ui.wizards that return IJavaElementModifier and TypeMethodDescriptionprotected IJavaElement
NewContainerWizardPage.getInitialJavaElement
(org.eclipse.jface.viewers.IStructuredSelection selection) Utility method to inspect a selection to find a Java element.JavadocExportWizardPage.IJavadocExportWizardPageContainer.getSelectedJavaElements()
Returns the Java elements selected for Javadoc generationMethods in org.eclipse.jdt.ui.wizards with parameters of type IJavaElementModifier and TypeMethodDescriptionprotected void
NewContainerWizardPage.initContainerPage
(IJavaElement elem) Initializes the source folder field with a valid package fragment root.protected void
NewContainerWizardPage.initContainerPage
(IJavaElement elem, boolean preferTestSourceFolder) Initializes the source folder field with a valid package fragment root.protected void
NewTypeWizardPage.initTypePage
(IJavaElement elem) Initializes all fields provided by the page with a given selection.
ICompilationUnit.findElements(IJavaElement)
instead.