Eclipse JDT
Release 3.0

Uses of Interface
org.eclipse.jdt.core.IJavaElement

Packages that use IJavaElement
org.eclipse.jdt.core The Java model is the set of classes that model the objects associated with creating, editing, and building a Java program.  
org.eclipse.jdt.core.eval Provides support for the evaluation of code snippets in a scrapbook or inside the debugger.  
org.eclipse.jdt.core.jdom Provides a support for Java document manipulation through the JDOM model.  
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.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.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
 interface IClassFile
          Represents an entire binary type (single .class file).
 interface ICompilationUnit
          Represents an entire Java compilation unit (.java source file).
 interface IField
          Represents a field declared in a type.
 interface IImportContainer
          Represents an import container is a child of a Java compilation unit that contains all (and only) the import declarations.
 interface IImportDeclaration
          Represents an import declaration in Java compilation unit.
 interface IInitializer
          Represents a stand-alone instance or class (static) initializer in a type.
 interface IJavaModel
          Represent the root Java element corresponding to the workspace.
 interface IJavaProject
          A Java project represents a view of a project resource in terms of Java elements such as package fragments, types, methods and fields.
 interface ILocalVariable
          Represents a local variable declared in a method or an initializer.
 interface IMember
          Common protocol for Java elements that can be members of types.
 interface IMethod
          Represents a method (or constructor) declared in a type.
 interface IPackageDeclaration
          Represents a package declaration in Java compilation unit.
 interface IPackageFragment
          A package fragment is a portion of the workspace corresponding to an entire package, or to a portion thereof.
 interface IPackageFragmentRoot
          A package fragment root contains a set of package fragments.
 interface IType
          Represents either a source type in a compilation unit (either a top-level type, a member type, a local type or an anonymous type) or a binary type in a class file.
 

Methods in org.eclipse.jdt.core that return IJavaElement
 IJavaElement IWorkingCopy.findSharedWorkingCopy(IBufferFactory bufferFactory)
          Deprecated. Finds the shared working copy for this element, given a IBuffer factory.
 IJavaElement IWorkingCopy.getOriginal(IJavaElement workingCopyElement)
          Deprecated. Returns the original element the specified working copy element was created from, or null if this is not a working copy element.
 IJavaElement IWorkingCopy.getOriginalElement()
          Deprecated. Returns the original element this working copy was created from, or null if this is not a working copy.
 IJavaElement[] IWorkingCopy.findElements(IJavaElement element)
          Deprecated. Finds the elements in this compilation unit that correspond to the given element.
 IJavaElement IWorkingCopy.getSharedWorkingCopy(org.eclipse.core.runtime.IProgressMonitor monitor, IBufferFactory factory, IProblemRequestor problemRequestor)
          Deprecated. Returns a shared working copy on this element using the given factory to create the buffer, or this element if this element is already a working copy.
 IJavaElement IWorkingCopy.getWorkingCopy()
          Deprecated. Returns a new working copy of this element if this element is not a working copy, or this element if this element is already a working copy.
 IJavaElement IWorkingCopy.getWorkingCopy(org.eclipse.core.runtime.IProgressMonitor monitor, IBufferFactory factory, IProblemRequestor problemRequestor)
          Deprecated. Returns a new working copy of this element using the given factory to create the buffer, or this element if this element is already a working copy.
 IJavaElement[] IRegion.getElements()
          Returns the top level elements in this region.
 IJavaElement IClassFile.getElementAt(int position)
          Returns the smallest element within this class file that includes the given source position (a method, field, etc.), or null if there is no element other than the class file itself at the given position, or if the given position is not within the source range of this class file.
 IJavaElement IClassFile.getWorkingCopy(org.eclipse.core.runtime.IProgressMonitor monitor, IBufferFactory factory)
          Deprecated. Use getWorkingCopy(WorkingCopyOwner, IProgressMonitor) instead
 IJavaElement[] IParent.getChildren()
          Returns the immediate children of this element.
 IJavaElement IJavaProject.findElement(org.eclipse.core.runtime.IPath path)
          Returns the IJavaElement corresponding to the given classpath-relative path, or null if no such IJavaElement is found.
 IJavaElement IJavaProject.findElement(org.eclipse.core.runtime.IPath path, WorkingCopyOwner owner)
          Returns the IJavaElement corresponding to the given classpath-relative path, or null if no such IJavaElement is found.
 IJavaElement IJavaElementDelta.getElement()
          Returns the element that this delta describes a change to.
 IJavaElement IJavaElementDelta.getMovedFromElement()
          Returns an element describing this element before it was moved to its current location, or null if the F_MOVED_FROM change flag is not set.
 IJavaElement IJavaElementDelta.getMovedToElement()
          Returns an element describing this element in its new location, or null if the F_MOVED_TO change flag is not set.
 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.
static IJavaElement JavaCore.create(String handleIdentifier)
          Returns the Java model element corresponding to the given handle identifier generated by IJavaElement.getHandleIdentifier(), or null 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 by IJavaElement.getHandleIdentifier(), or null 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, or null 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, or null 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, or null if unable to associate the given resource with a Java element.
 IJavaElement[] ICodeAssist.codeSelect(int offset, int length)
          Returns the Java elements correspondiing to the given selected text in this compilation unit.
 IJavaElement[] ICodeAssist.codeSelect(int offset, int length, WorkingCopyOwner owner)
          Returns the Java elements correspondiing to the given selected text in this compilation unit.
 IJavaElement[] ICompilationUnit.findElements(IJavaElement element)
          Finds the elements in this compilation unit that correspond to the given element.
 IJavaElement ICompilationUnit.getElementAt(int position)
          Returns the smallest element within this compilation unit that includes the given source position (that is, a method, field, etc.), or null if there is no element other than the compilation unit itself at the given position, or if the given position is not within the source range of this compilation unit.
 IJavaElement IJavaElement.getAncestor(int ancestorType)
          Returns the first ancestor of this Java element that has the given type.
 IJavaElement IJavaElement.getParent()
          Returns the element directly containing this element, or null if this element has no parent.
 IJavaElement 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).
 

Methods in org.eclipse.jdt.core with parameters of type IJavaElement
 IJavaElement IWorkingCopy.getOriginal(IJavaElement workingCopyElement)
          Deprecated. Returns the original element the specified working copy element was created from, or null if this is not a working copy element.
 IJavaElement[] IWorkingCopy.findElements(IJavaElement element)
          Deprecated. Finds the elements in this compilation unit that correspond to the given element.
 void IRegion.add(IJavaElement element)
          Adds the given element and all of its descendents to this region.
 boolean IRegion.contains(IJavaElement element)
          Returns whether the given element is contained in this region.
 boolean IRegion.remove(IJavaElement element)
          Removes the specified element from the region and returns true if successful, false if the remove fails.
 IField 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.
 IInitializer 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.
 IMethod 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.
 IType 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.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 IJavaModel.delete(IJavaElement[] elements, boolean force, org.eclipse.core.runtime.IProgressMonitor monitor)
          Deletes the given elements, forcing the operation if necessary and specified.
 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 IJavaModel.refreshExternalArchives(IJavaElement[] elementsScope, org.eclipse.core.runtime.IProgressMonitor monitor)
          Triggers an update of the JavaModel with respect to the referenced external archives.
 void IJavaModel.rename(IJavaElement[] elements, IJavaElement[] destinations, String[] names, boolean replace, org.eclipse.core.runtime.IProgressMonitor monitor)
          Renames the given elements as specified.
 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.
 void ISourceManipulation.copy(IJavaElement container, IJavaElement sibling, String rename, boolean replace, org.eclipse.core.runtime.IProgressMonitor monitor)
          Copies this element to the given container.
 void ISourceManipulation.move(IJavaElement container, IJavaElement sibling, String rename, boolean replace, org.eclipse.core.runtime.IProgressMonitor monitor)
          Moves this element to the given container.
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.
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.
 IImportDeclaration 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.
 IImportDeclaration 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.
 IType 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.
 IJavaElement[] ICompilationUnit.findElements(IJavaElement element)
          Finds the elements in this compilation unit that correspond to the given element.
 

Uses of IJavaElement in org.eclipse.jdt.core.eval
 

Methods in org.eclipse.jdt.core.eval that return IJavaElement
 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
 IJavaElement IDOMNode.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
 IJavaElement IDOMNode.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.search
 

Methods in org.eclipse.jdt.core.search with parameters of type IJavaElement
 boolean IJavaSearchScope.encloses(IJavaElement element)
          Checks whether this scope encloses the given element.
 void IJavaSearchResultCollector.accept(org.eclipse.core.resources.IResource resource, int start, int end, IJavaElement enclosingElement, int accuracy)
          Deprecated. Replaced by SearchRequestor.acceptSearchMatch(SearchMatch).
static SearchPattern SearchPattern.createPattern(IJavaElement element, int limitTo)
          Returns a search pattern based on a given Java element.
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 ISearchPattern SearchEngine.createSearchPattern(IJavaElement element, int limitTo)
          Deprecated. Use SearchPattern.createPattern(IJavaElement, int) instead.
 void SearchEngine.search(org.eclipse.core.resources.IWorkspace workspace, IJavaElement element, int limitTo, IJavaSearchScope scope, IJavaSearchResultCollector resultCollector)
          Deprecated. Use SearchEngine.search(SearchPattern, SearchParticipant[], IJavaSearchScope, SearchRequestor, IProgressMonitor) instead.
 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.searchDeclarationsOfAccessedFields(org.eclipse.core.resources.IWorkspace workspace, IJavaElement enclosingElement, IJavaSearchResultCollector resultCollector)
          Deprecated. Use SearchEngine.searchDeclarationsOfAccessedFields(IJavaElement, SearchRequestor, IProgressMonitor) instead.
 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.searchDeclarationsOfReferencedTypes(org.eclipse.core.resources.IWorkspace workspace, IJavaElement enclosingElement, IJavaSearchResultCollector resultCollector)
          Deprecated. Use SearchEngine.searchDeclarationsOfReferencedTypes(IJavaElement, SearchRequestor, IProgressMonitor) instead.
 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.
 void SearchEngine.searchDeclarationsOfSentMessages(org.eclipse.core.resources.IWorkspace workspace, IJavaElement enclosingElement, IJavaSearchResultCollector resultCollector)
          Deprecated. Use SearchEngine.searchDeclarationsOfSentMessages(IJavaElement, SearchRequestor, IProgressMonitor) instead.
 

Constructors in org.eclipse.jdt.core.search with parameters of type IJavaElement
MethodDeclarationMatch(IJavaElement element, int accuracy, int offset, int length, SearchParticipant participant, org.eclipse.core.resources.IResource resource)
          Creates a new method declaration match.
SearchMatch(IJavaElement element, int accuracy, int offset, int length, SearchParticipant participant, org.eclipse.core.resources.IResource resource)
          Creates a new search 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.
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.
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.
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.
PackageDeclarationMatch(IJavaElement element, int accuracy, int offset, int length, SearchParticipant participant, org.eclipse.core.resources.IResource resource)
          Creates a new package declaration match.
FieldDeclarationMatch(IJavaElement element, int accuracy, int offset, int length, SearchParticipant participant, org.eclipse.core.resources.IResource resource)
          Creates a new field declaration match.
TypeDeclarationMatch(IJavaElement element, int accuracy, int offset, int length, SearchParticipant participant, org.eclipse.core.resources.IResource resource)
          Creates a new type 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.
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.
 

Uses of IJavaElement in org.eclipse.jdt.debug.ui.launchConfigurations
 

Methods in org.eclipse.jdt.debug.ui.launchConfigurations with parameters of type IJavaElement
protected  void JavaConnectTab.initializeDefaults(IJavaElement javaElement, org.eclipse.debug.core.ILaunchConfigurationWorkingCopy config)
          Initialize default settings for the given Java element
protected  void JavaConnectTab.initializeName(IJavaElement javaElement, org.eclipse.debug.core.ILaunchConfigurationWorkingCopy config)
          Find the first instance of a type, compilation unit, class file or project in the specified element's parental hierarchy, and use this as the default name.
protected  void JavaMainTab.initializeMainTypeAndName(IJavaElement javaElement, org.eclipse.debug.core.ILaunchConfigurationWorkingCopy config)
          Set the main type & name attributes on the working copy based on the IJavaElement
 

Uses of IJavaElement in org.eclipse.jdt.ui
 

Methods in org.eclipse.jdt.ui that return IJavaElement
 IJavaElement ITypeHierarchyViewPart.getInputElement()
          Returns the input element of this type hierarchy view.
 

Methods in org.eclipse.jdt.ui with parameters of type IJavaElement
protected  boolean StandardJavaElementContentProvider.isPackageFragmentEmpty(IJavaElement element)
          Note: This method is for internal use only.
static org.eclipse.ui.IEditorPart JavaUI.openInEditor(IJavaElement element)
          Opens a Java editor on the given Java element.
static void JavaUI.revealInEditor(org.eclipse.ui.IEditorPart part, IJavaElement element)
          Reveals the given java element in the given editor.
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.
 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 with parameters of type IJavaElement
 void FindReferencesAction.run(IJavaElement element)
           
protected  org.eclipse.jdt.internal.ui.search.JavaSearchQuery FindDeclarationsAction.createJob(IJavaElement element)
           
protected  org.eclipse.jdt.internal.ui.search.JavaSearchQuery FindWriteReferencesInProjectAction.createJob(IJavaElement element)
           
protected  org.eclipse.jdt.internal.ui.search.JavaSearchQuery FindDeclarationsInWorkingSetAction.createJob(IJavaElement element)
           
protected  org.eclipse.jdt.internal.ui.search.JavaSearchQuery FindImplementorsInProjectAction.createJob(IJavaElement element)
           
 void FindAction.run(IJavaElement element)
          Executes this action for the given java element.
 void ShowInPackageViewAction.run(IJavaElement element)
           
protected  org.eclipse.jdt.internal.ui.search.JavaSearchQuery FindReferencesInWorkingSetAction.createJob(IJavaElement element)
           
 void OpenTypeHierarchyAction.run(IJavaElement[] elements)
           
protected  org.eclipse.jdt.internal.ui.search.JavaSearchQuery FindDeclarationsInProjectAction.createJob(IJavaElement element)
           
 void OpenExternalJavadocAction.run(IJavaElement element)
           
protected  org.eclipse.jdt.internal.ui.search.JavaSearchQuery FindReferencesInProjectAction.createJob(IJavaElement element)
           
 void WorkingSetFindAction.run(IJavaElement element)
           
protected  org.eclipse.jdt.internal.ui.search.JavaSearchQuery FindImplementorsInWorkingSetAction.createJob(IJavaElement element)
           
 

Uses of IJavaElement in org.eclipse.jdt.ui.wizards
 

Methods in org.eclipse.jdt.ui.wizards that return IJavaElement
protected  IJavaElement NewContainerWizardPage.getInitialJavaElement(org.eclipse.jface.viewers.IStructuredSelection selection)
          Utility method to inspect a selection to find a Java element.
 

Methods in org.eclipse.jdt.ui.wizards with parameters of type IJavaElement
protected  void NewContainerWizardPage.initContainerPage(IJavaElement elem)
          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.
 


Eclipse JDT
Release 3.0

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