Uses of Interface
org.eclipse.jdt.core.IJavaElement
-
Packages that use IJavaElement Package Description org.eclipse.jdt.core The Java model is the set of classes that model the objects associated with creating, editing, and building a Java program.org.eclipse.jdt.core.dom The Java DOM/AST is the set of classes that model the source code of a Java program as a structured document.org.eclipse.jdt.core.eval Provides support for the evaluation of code snippets in a scrapbook or inside the debugger.org.eclipse.jdt.core.jdom Provides a support for Java document manipulation through the JDOM model.org.eclipse.jdt.core.refactoring Application programming interface for Java-specified refactoring framework facilities.org.eclipse.jdt.core.refactoring.descriptors Application programming interface to access Java refactorings provided by JDT.org.eclipse.jdt.core.search Provides support for searching the workspace Java elements that match a particular description.org.eclipse.jdt.debug.ui.launchConfigurations Provides an implementation launch configuration tabs for local and remote Java applications.org.eclipse.jdt.junit Application programming interfaces for interaction with the Eclipse Java development tools JUnit support.org.eclipse.jdt.junit.launcher Application programming interfaces related to launching JUnit tests.org.eclipse.jdt.ui Application programming interfaces for interaction with the Eclipse Java User Interface.org.eclipse.jdt.ui.actions Application programming interfaces for Eclipse Java User Interface specific actions.org.eclipse.jdt.ui.search Application programming interfaces for Java search participants..org.eclipse.jdt.ui.text.folding Application programming interfaces for interaction with the Eclipse Java Editor folding.org.eclipse.jdt.ui.wizards 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.core Modifier and Type Interface Description interfaceIAnnotationRepresents an annotation on a package declaration, a type, a method, a field or a local variable in a compilation unit or a class file.interfaceIClassFileRepresents a single.classfile, holding the binary form of either a type or a module: A class file of typeIOrdinaryClassFilehas a single child of typeIType, a class file of typeIModularClassFilehas a single child of typeIModuleDescription. Class file elements need to be opened before they can be navigated.interfaceICompilationUnitRepresents an entire Java compilation unit (source file with one of theJava-like extensions).interfaceIFieldRepresents a field declared in a type.interfaceIImportContainerRepresents an import container is a child of a Java compilation unit that contains all (and only) the import declarations.interfaceIImportDeclarationRepresents an import declaration in Java compilation unit.interfaceIInitializerRepresents a stand-alone instance or class (static) initializer in a type.interfaceIJavaModelRepresent the root Java element corresponding to the workspace.interfaceIJavaProjectA Java project represents a view of a project resource in terms of Java elements such as package fragments, types, methods and fields.interfaceILocalVariableRepresents a local variable declared in a method or an initializer.interfaceIMemberCommon protocol for Java elements that can be members of types.interfaceIMethodRepresents a method (or constructor) declared in a type.interfaceIModularClassFileRepresents the class file of a module description ("module-info.class").interfaceIModuleDescriptionRepresents a Java module descriptor.interfaceIOrdinaryClassFileOrdinary form of aIClassFilewhich holds exactly oneIType.interfaceIPackageDeclarationRepresents a package declaration in Java compilation unit.interfaceIPackageFragmentA package fragment is a portion of the workspace corresponding to an entire package, or to a portion thereof.interfaceIPackageFragmentRootA package fragment root contains a set of package fragments.interfaceITypeRepresents 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.interfaceITypeParameterRepresents a type parameter defined by a type or a method in a compilation unit or a class file.interfaceITypeRootRepresents an entire Java type root (either anICompilationUnitor anIClassFile).Methods in org.eclipse.jdt.core that return IJavaElement Modifier and Type Method Description IJavaElement[]ICodeAssist. codeSelect(int offset, int length)Returns the Java elements corresponding to the given selected text in this compilation unit.IJavaElement[]ICodeAssist. codeSelect(int offset, int length, WorkingCopyOwner owner)Returns the Java elements corresponding to the given selected text in this compilation unit.static IJavaElementJavaCore. create(String handleIdentifier)Returns the Java model element corresponding to the given handle identifier generated byIJavaElement.getHandleIdentifier(), ornullif unable to create the associated element.static IJavaElementJavaCore. create(String handleIdentifier, WorkingCopyOwner owner)Returns the Java model element corresponding to the given handle identifier generated byIJavaElement.getHandleIdentifier(), ornullif unable to create the associated element.static IJavaElementJavaCore. create(IFile file)Returns the Java element corresponding to the given file, ornullif unable to associate the given file with a Java element.static IJavaElementJavaCore. create(IFolder folder)Returns the package fragment or package fragment root corresponding to the given folder, ornullif unable to associate the given folder with a Java element.static IJavaElementJavaCore. create(IResource resource)Returns the Java element corresponding to the given resource, ornullif unable to associate the given resource with a Java element.static IJavaElementJavaCore. create(IResource resource, IJavaProject project)Returns the Java element corresponding to the given file, its project being the given project.IJavaElementIJavaProject. findElement(String bindingKey, WorkingCopyOwner owner)Finds the Java element corresponding to the given binding key if any, else returnsnull.IJavaElementIJavaProject. findElement(IPath path)Returns theIJavaElementcorresponding to the given classpath-relative path, ornullif no suchIJavaElementis found.IJavaElementIJavaProject. findElement(IPath path, WorkingCopyOwner owner)Returns theIJavaElementcorresponding to the given classpath-relative path, ornullif no suchIJavaElementis found.IJavaElement[]ICompilationUnit. findElements(IJavaElement element)Finds the elements in this compilation unit that correspond to the given element.IJavaElement[]IWorkingCopy. findElements(IJavaElement element)Deprecated.UseICompilationUnit.findElements(IJavaElement)instead.IJavaElementIWorkingCopy. findSharedWorkingCopy(IBufferFactory bufferFactory)Deprecated.UseICompilationUnit.findWorkingCopy(WorkingCopyOwner)instead.IJavaElementIJavaElement. getAncestor(int ancestorType)Returns this Java element or the first ancestor of this element that has the given type.IJavaElement[]IParent. getChildren()Returns the immediate children of this element.IJavaElement[]IType. getChildrenForCategory(String category)Returns the children of this type that have the given category as a@categorytag.IJavaElementIJavaElementDelta. getElement()Returns the element that this delta describes a change to.IJavaElementITypeRoot. 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.IJavaElement[]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.IJavaElement[]IRegion. getElements()Returns the top level elements in this region.IJavaElementCompletionContext. getEnclosingElement()Returns the innermost enclosing Java element which contains the completion location ornullif this element cannot be computed.IJavaElementIJavaElementDelta. getMovedFromElement()Returns an element describing this element before it was moved to its current location, ornullif theIJavaElementDelta.F_MOVED_FROMchange flag is not set.IJavaElementIJavaElementDelta. getMovedToElement()Returns an element describing this element in its new location, ornullif theIJavaElementDelta.F_MOVED_TOchange flag is not set.IJavaElementIWorkingCopy. getOriginal(IJavaElement workingCopyElement)Deprecated.UsegetPrimaryElement()instead.IJavaElementIWorkingCopy. getOriginalElement()Deprecated.UsegetPrimaryElement()instead.IJavaElementIJavaElement. getParent()Returns the element directly containing this element, ornullif this element has no parent.IJavaElementIJavaElement. 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).IJavaElementIWorkingCopy. getSharedWorkingCopy(IProgressMonitor monitor, IBufferFactory factory, IProblemRequestor problemRequestor)Deprecated.IJavaElement[]CompletionContext. getVisibleElements(String typeSignature)Return the elements which are visible from the completion location and which can be assigned to the given type.IJavaElementIClassFile. getWorkingCopy(IProgressMonitor monitor, IBufferFactory factory)Deprecated.IJavaElementIWorkingCopy. getWorkingCopy()Deprecated.UseICompilationUnit.getWorkingCopy(IProgressMonitor)instead.IJavaElementIWorkingCopy. getWorkingCopy(IProgressMonitor monitor, IBufferFactory factory, IProblemRequestor problemRequestor)Deprecated.Methods in org.eclipse.jdt.core with parameters of type IJavaElement Modifier and Type Method Description voidIRegion. add(IJavaElement element)Adds the given element and all of its descendents to this region.static voidJavaCore. addJavaElementMarkerAttributes(Map attributes, IJavaElement element)Configures the given marker attribute map for the given Java element.voidJavaCore. configureJavaElementMarker(IMarker marker, IJavaElement element)Configures the given marker for the given Java element.booleanIRegion. contains(IJavaElement element)Returns whether the given element is contained in this region.voidIJavaModel. copy(IJavaElement[] elements, IJavaElement[] containers, IJavaElement[] siblings, String[] renamings, boolean replace, IProgressMonitor monitor)Copies the given elements to the specified container(s).voidISourceManipulation. copy(IJavaElement container, IJavaElement sibling, String rename, boolean replace, IProgressMonitor monitor)Copies this element to the given container.IFieldIType. createField(String contents, IJavaElement sibling, boolean force, IProgressMonitor monitor)Creates and returns a field in this type with the given contents.IImportDeclarationICompilationUnit. createImport(String name, IJavaElement sibling, int flags, IProgressMonitor monitor)Creates and returns an import declaration in this compilation unit with the given name.IImportDeclarationICompilationUnit. createImport(String name, IJavaElement sibling, IProgressMonitor monitor)Creates and returns an non-static import declaration in this compilation unit with the given name.IInitializerIType. createInitializer(String contents, IJavaElement sibling, IProgressMonitor monitor)Creates and returns a static initializer in this type with the given contents.IMethodIType. createMethod(String contents, IJavaElement sibling, boolean force, IProgressMonitor monitor)Creates and returns a method or constructor in this type with the given contents.ITypeICompilationUnit. createType(String contents, IJavaElement sibling, boolean force, IProgressMonitor monitor)Creates and returns a type in this compilation unit with the given contents.ITypeIType. createType(String contents, IJavaElement sibling, boolean force, IProgressMonitor monitor)Creates and returns a type in this type with the given contents.voidIJavaModel. delete(IJavaElement[] elements, boolean force, IProgressMonitor monitor)Deletes the given elements, forcing the operation if necessary and specified.IJavaElement[]ICompilationUnit. findElements(IJavaElement element)Finds the elements in this compilation unit that correspond to the given element.IJavaElement[]IWorkingCopy. findElements(IJavaElement element)Deprecated.UseICompilationUnit.findElements(IJavaElement)instead.static IModuleDescriptionJavaCore. getAutomaticModuleDescription(IJavaElement element)Returns theIModuleDescriptionthat the given java element contains when regarded as an automatic module.IJavaElementIWorkingCopy. getOriginal(IJavaElement workingCopyElement)Deprecated.UsegetPrimaryElement()instead.booleanIJavaProject. 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 booleanJavaCore. isReferencedBy(IJavaElement element, IMarker marker)Returns whether the given marker references the given Java element.static booleanJavaCore. isReferencedBy(IJavaElement element, IMarkerDelta markerDelta)Returns whether the given marker delta references the given Java element.voidIJavaModel. move(IJavaElement[] elements, IJavaElement[] containers, IJavaElement[] siblings, String[] renamings, boolean replace, IProgressMonitor monitor)Moves the given elements to the specified container(s).voidISourceManipulation. move(IJavaElement container, IJavaElement sibling, String rename, boolean replace, IProgressMonitor monitor)Moves this element to the given container.voidIJavaModel. refreshExternalArchives(IJavaElement[] elementsScope, IProgressMonitor monitor)Triggers an update of the JavaModel with respect to the referenced external archives.booleanIRegion. remove(IJavaElement element)Removes the specified element from the region and returnstrueif successful,falseif the remove fails.voidIJavaModel. rename(IJavaElement[] elements, IJavaElement[] destinations, String[] names, boolean replace, 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 IJavaElement Modifier and Type Method Description IJavaElementCompilationUnit. getJavaElement()The Java element (anorg.eclipse.jdt.core.ICompilationUnitor anorg.eclipse.jdt.core.IClassFile) this compilation unit was created from, ornullif it was not created from a Java element.IJavaElementIBinding. getJavaElement()Returns the Java element that corresponds to this binding.Methods in org.eclipse.jdt.core.dom with parameters of type IJavaElement Modifier and Type Method Description IBinding[]ASTParser. createBindings(IJavaElement[] elements, 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 IJavaElement Modifier and Type Method Description IJavaElement[]IEvaluationContext. codeSelect(String codeSnippet, int offset, int length)Resolves and returns a collection of Java elements corresponding to the source code at the given positions in the given code snippet.IJavaElement[]IEvaluationContext. codeSelect(String codeSnippet, int offset, int length, WorkingCopyOwner owner)Resolves and returns a collection of Java elements corresponding to the source code at the given positions in the given code snippet. -
Uses of IJavaElement in org.eclipse.jdt.core.jdom
Methods in org.eclipse.jdt.core.jdom that return IJavaElement Modifier and Type Method Description IJavaElementIDOMNode. 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 IJavaElement Modifier and Type Method Description IJavaElementIDOMNode. 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.refactoring
Methods in org.eclipse.jdt.core.refactoring that return IJavaElement Modifier and Type Method Description IJavaElementIJavaElementMapper. getRefactoredJavaElement(IJavaElement element)Returns the refactored Java element for the given element.IJavaElement[]RenameTypeArguments. getSimilarDeclarations()Returns the similar declarations that get updated.Methods in org.eclipse.jdt.core.refactoring with parameters of type IJavaElement Modifier and Type Method Description IJavaElementIJavaElementMapper. getRefactoredJavaElement(IJavaElement element)Returns the refactored Java element for the given element.Constructors in org.eclipse.jdt.core.refactoring with parameters of type IJavaElement Constructor Description RenameTypeArguments(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 IJavaElement Modifier and Type Method Description protected static IJavaElementJavaRefactoringDescriptor. handleToElement(String project, String handle)Converts an input handle back to the corresponding java element.protected static IJavaElementJavaRefactoringDescriptor. handleToElement(String project, String handle, boolean check)Converts an input handle back to the corresponding java element.protected static IJavaElementJavaRefactoringDescriptor. 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 IJavaElement Modifier and Type Method Description protected static StringJavaRefactoringDescriptor. elementToHandle(String project, IJavaElement element)Converts the specified element to an input handle.voidMoveDescriptor. setDestination(IJavaElement element)Sets the destination of the move.voidRenameJavaElementDescriptor. 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 IJavaElement Modifier and Type Field Description IJavaElementSearchPattern. focusThe focus element (used for reference patterns)Methods in org.eclipse.jdt.core.search that return IJavaElement Modifier and Type Method Description IJavaElementReferenceMatch. getLocalElement()Returns the local element of this search match, ornullif none.IJavaElement[]TypeReferenceMatch. getOtherElements()Returns other elements also enclosing the type reference.Methods in org.eclipse.jdt.core.search with parameters of type IJavaElement Modifier and Type Method Description voidIJavaSearchResultCollector. accept(IResource resource, int start, int end, IJavaElement enclosingElement, int accuracy)Deprecated.Replaced bySearchRequestor.acceptSearchMatch(SearchMatch).static IJavaSearchScopeSearchEngine. createJavaSearchScope(boolean excludeTestCode, IJavaElement[] elements, boolean includeReferencedProjects)Returns a Java search scope limited to the given Java elements.static IJavaSearchScopeSearchEngine. createJavaSearchScope(boolean excludeTestCode, IJavaElement[] elements, int includeMask)Returns a Java search scope limited to the given Java elements.static IJavaSearchScopeSearchEngine. createJavaSearchScope(IJavaElement[] elements)Returns a Java search scope limited to the given Java elements.static IJavaSearchScopeSearchEngine. createJavaSearchScope(IJavaElement[] elements, boolean includeReferencedProjects)Returns a Java search scope limited to the given Java elements.static IJavaSearchScopeSearchEngine. createJavaSearchScope(IJavaElement[] elements, int includeMask)Returns a Java search scope limited to the given Java elements.static SearchPatternSearchPattern. createPattern(IJavaElement element, int limitTo)Returns a search pattern based on a given Java element.static SearchPatternSearchPattern. createPattern(IJavaElement element, int limitTo, int matchRule)Returns a search pattern based on a given Java element.static ISearchPatternSearchEngine. createSearchPattern(IJavaElement element, int limitTo)Deprecated.UseSearchPattern.createPattern(IJavaElement, int)instead.booleanIJavaSearchScope. encloses(IJavaElement element)Checks whether this scope encloses the given element.voidSearchEngine. search(IWorkspace workspace, IJavaElement element, int limitTo, IJavaSearchScope scope, IJavaSearchResultCollector resultCollector)voidSearchEngine. searchDeclarationsOfAccessedFields(IWorkspace workspace, IJavaElement enclosingElement, IJavaSearchResultCollector resultCollector)Deprecated.voidSearchEngine. searchDeclarationsOfAccessedFields(IJavaElement enclosingElement, SearchRequestor requestor, IProgressMonitor monitor)Searches for all declarations of the fields accessed in the given element.voidSearchEngine. searchDeclarationsOfReferencedTypes(IWorkspace workspace, IJavaElement enclosingElement, IJavaSearchResultCollector resultCollector)Deprecated.voidSearchEngine. searchDeclarationsOfReferencedTypes(IJavaElement enclosingElement, SearchRequestor requestor, IProgressMonitor monitor)Searches for all declarations of the types referenced in the given element.voidSearchEngine. searchDeclarationsOfSentMessages(IWorkspace workspace, IJavaElement enclosingElement, IJavaSearchResultCollector resultCollector)Deprecated.voidSearchEngine. searchDeclarationsOfSentMessages(IJavaElement enclosingElement, SearchRequestor requestor, IProgressMonitor monitor)Searches for all declarations of the methods invoked in the given element.voidReferenceMatch. setLocalElement(IJavaElement element)Store the local element in the match.voidTypeReferenceMatch. setOtherElements(IJavaElement[] otherElements)Sets the other elements of this search match.Constructors in org.eclipse.jdt.core.search with parameters of type IJavaElement Constructor Description FieldDeclarationMatch(IJavaElement element, int accuracy, int offset, int length, SearchParticipant participant, 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, IResource resource)Creates a new field reference match.LocalVariableDeclarationMatch(IJavaElement element, int accuracy, int offset, int length, SearchParticipant participant, 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, IResource resource)Creates a new local variable reference match.MethodDeclarationMatch(IJavaElement element, int accuracy, int offset, int length, SearchParticipant participant, 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, 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, IResource resource)Creates a new method reference match.MethodReferenceMatch(IJavaElement enclosingElement, int accuracy, int offset, int length, boolean insideDocComment, SearchParticipant participant, IResource resource)Creates a new method reference match.ModuleDeclarationMatch(IJavaElement element, int accuracy, int offset, int length, SearchParticipant participant, IResource resource)Creates a new type declaration match.ModuleReferenceMatch(IJavaElement enclosingElement, int accuracy, int offset, int length, boolean insideDocComment, SearchParticipant participant, IResource resource)Creates a new module reference match.PackageDeclarationMatch(IJavaElement element, int accuracy, int offset, int length, SearchParticipant participant, IResource resource)Creates a new package declaration match.PackageReferenceMatch(IJavaElement enclosingElement, int accuracy, int offset, int length, boolean insideDocComment, SearchParticipant participant, IResource resource)Creates a new package reference match.ReferenceMatch(IJavaElement enclosingElement, int accuracy, int offset, int length, boolean insideDocComment, SearchParticipant participant, IResource resource)Creates a new reference match.SearchMatch(IJavaElement element, int accuracy, int offset, int length, SearchParticipant participant, IResource resource)Creates a new search match.TypeDeclarationMatch(IJavaElement element, int accuracy, int offset, int length, SearchParticipant participant, IResource resource)Creates a new type declaration match.TypeParameterDeclarationMatch(IJavaElement element, int accuracy, int offset, int length, SearchParticipant participant, IResource resource)Creates a new type parameter match.TypeParameterReferenceMatch(IJavaElement enclosingElement, int accuracy, int offset, int length, boolean insideDocComment, SearchParticipant participant, IResource resource)Creates a new field reference match.TypeReferenceMatch(IJavaElement enclosingElement, int accuracy, int offset, int length, boolean insideDocComment, SearchParticipant participant, 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 IJavaElement Modifier and Type Method Description protected IJavaElementJavaLaunchTab. getContext()Returns the current Java element context in the active workbench page ornullif 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 IJavaElement Modifier and Type Method Description protected voidJavaLaunchTab. initializeJavaProject(IJavaElement javaElement, 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 IJavaElement Modifier and Type Method Description static IType[]JUnitCore. findTestTypes(IJavaElement container, 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 IJavaElement Modifier and Type Method Description protected ILaunchConfigurationWorkingCopyJUnitLaunchShortcut. createLaunchConfiguration(IJavaElement element)Creates a launch configuration working copy for the given element.protected ILaunchConfigurationWorkingCopyJUnitLaunchShortcut. createLaunchConfiguration(IJavaElement element, String testName)Creates a launch configuration working copy for the given element.protected StringJUnitLaunchShortcut. 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 IJavaElement Modifier and Type Method Description static IJavaElementJavaUI. getEditorInputJavaElement(IEditorInput editorInput)Returns the Java element wrapped by the given editor input.IJavaElementITypeHierarchyViewPart. getInputElement()Returns the input element of this type hierarchy view.Methods in org.eclipse.jdt.ui with parameters of type IJavaElement Modifier and Type Method Description static voidJavaElementLabels. getDeclarationLabel(IJavaElement declaration, long flags, StringBuffer buf)Appends the label for a import container, import or package declaration to aStringBuffer.static voidJavaElementLabels. getDeclarationLabel(IJavaElement declaration, long flags, StyledString result)Appends the label for a import container, import or package declaration to aStyledString.static StringJavaElementLabels. getElementLabel(IJavaElement element, long flags)Returns the label for a Java element with the flags as defined by this class.static voidJavaElementLabels. getElementLabel(IJavaElement element, long flags, StringBuffer buf)Returns the label for a Java element with the flags as defined by this class.static voidJavaElementLabels. getElementLabel(IJavaElement element, long flags, StyledString result)Returns the styled label for a Java element with the flags as defined by this class.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.static StyledStringJavaElementLabels. getStyledElementLabel(IJavaElement element, long flags)Returns the styled label for a Java element with the flags as defined by this class.protected booleanStandardJavaElementContentProvider. isPackageFragmentEmpty(IJavaElement element)Tests if the given element is a empty package fragment.static IEditorPartJavaUI. openInEditor(IJavaElement element)Opens an editor on the given Java element in the active page.static IEditorPartJavaUI. openInEditor(IJavaElement element, boolean activate, boolean reveal)Opens an editor on the given Java element in the active page.static voidJavaUI. revealInEditor(IEditorPart part, IJavaElement element)Reveals the given java element in the given editor.voidITypeHierarchyViewPart. 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 IJavaElement Modifier and Type Method Description IJavaElementAbstractOpenWizardAction. getCreatedElement()Returns the created element ornullif the wizard has not run or was canceled.Methods in org.eclipse.jdt.ui.actions with parameters of type IJavaElement Modifier and Type Method Description voidFindAction. run(IJavaElement element)Executes this action for the given java element.voidFindAction. run(IJavaElement[] elements)Executes this action for the given Java element List.voidFindReferencesAction. run(IJavaElement element)protected voidOpenAttachedJavadocAction. run(IJavaElement element)Executes this actions with the given Java element.voidOpenExternalJavadocAction. run(IJavaElement element)Deprecated.voidOpenTypeHierarchyAction. run(IJavaElement[] elements)voidShowInPackageViewAction. run(IJavaElement element)Deprecated.Tries to reveal the given Java elementvoidWorkingSetFindAction. run(IJavaElement element)voidWorkingSetFindAction. run(IJavaElement[] elements) -
Uses of IJavaElement in org.eclipse.jdt.ui.search
Methods in org.eclipse.jdt.ui.search that return IJavaElement Modifier and Type Method Description IJavaElementElementQuerySpecification. getElement()Returns the element to search for.Constructors in org.eclipse.jdt.ui.search with parameters of type IJavaElement Constructor Description ElementQuerySpecification(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 IJavaElement Modifier and Type Method Description voidDefaultJavaFoldingStructureProvider. collapseElements(IJavaElement[] elements)voidIJavaFoldingStructureProviderExtension. collapseElements(IJavaElement[] elements)Collapses the given elements.protected voidDefaultJavaFoldingStructureProvider. computeFoldingStructure(IJavaElement element, DefaultJavaFoldingStructureProvider.FoldingStructureComputationContext ctx)Computes the folding structure for a givenjava element.voidDefaultJavaFoldingStructureProvider. expandElements(IJavaElement[] elements)voidIJavaFoldingStructureProviderExtension. expandElements(IJavaElement[] elements)Expands the given elements.Constructors in org.eclipse.jdt.ui.text.folding with parameters of type IJavaElement Constructor Description JavaProjectionAnnotation(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 IJavaElement Modifier and Type Method Description protected IJavaElementNewContainerWizardPage. getInitialJavaElement(IStructuredSelection selection)Utility method to inspect a selection to find a Java element.IJavaElement[]JavadocExportWizardPage.IJavadocExportWizardPageContainer. getSelectedJavaElements()Returns the Java elements selected for Javadoc generationMethods in org.eclipse.jdt.ui.wizards with parameters of type IJavaElement Modifier and Type Method Description protected voidNewContainerWizardPage. initContainerPage(IJavaElement elem)Initializes the source folder field with a valid package fragment root.protected voidNewContainerWizardPage. initContainerPage(IJavaElement elem, boolean preferTestSourceFolder)Initializes the source folder field with a valid package fragment root.protected voidNewTypeWizardPage. initTypePage(IJavaElement elem)Initializes all fields provided by the page with a given selection.
-