Uses of Interface
org.eclipse.jdt.core.IJavaProject
Package
Description
This package contains Eclipse extensions to some of the Sun annotation processing APIs.
This package contains miscellaneous APIs related to Java annotation processing.
The Java model is the set of classes that model the
objects associated with creating, editing, and building a Java program.
This package contains compiler associated infrastructure APIs.
The Java DOM/AST is the set of classes that model the source code of a Java program
as a structured document.
Provides support for the evaluation of code snippets
in a scrapbook or inside the debugger.
Application programming interface for the JDT core manipulation plug-in class.
Provides support for searching the workspace Java
elements that match a particular description.
Provides a set of tools and utilities for manipulating .class files and Java model elements.
Provides a set classes and interfaces that support evaluations in the Java debugger.
Provides an implementation of a source locator for the Java debug model.
Provides an implementation launch configuration tabs for local and remote Java applications.
Application programming interfaces representing test elements as shown in the JUnit view.
Application programming interfaces for interaction
with the Eclipse Java launching support.
Application programming interfaces and classes for execution environments.
Application programming interfaces and classes for source lookup.
Provides advanced source lookup support for the Java debugger.
Provides source lookup support for the Java debugger.
Application programming interfaces for interaction
with the Eclipse Java User Interface.
Application programming interfaces for code clean up.
Application programming interfaces for rename refactorings.
Application programming interfaces for interaction
with the Eclipse Java User Interface.
Application programming interfaces for interaction
with the Eclipse Java User Interface wizards.
-
Uses of IJavaProject in org.eclipse.jdt.apt.core.env
Modifier and TypeMethodDescriptionEnvironmentFactory.getEnvironment
(ICompilationUnit compilationUnit, IJavaProject javaProject) Return a processor environment for use outside of building or reconciling. -
Uses of IJavaProject in org.eclipse.jdt.apt.core.util
Modifier and TypeMethodDescriptionstatic void
AptConfig.addProcessorOption
(IJavaProject jproj, String key, String val) Add the equivalent of -Akey=val to the list of processor options.static IFactoryPath
AptConfig.getDefaultFactoryPath
(IJavaProject jproj) Get a factory path corresponding to the default values: if jproj is non-null, return the current workspace factory path (workspace prefs are the default for a project); if jproj is null, return the default list of plugin factories (which is the "factory default").static AnnotationProcessorFactory
AptUtil.getFactoryForAnnotation
(String fullyQualifiedAnnotation, IJavaProject jproj) Returns the matching annotation processor factory for a given annotation in a given project.static IFactoryPath
AptConfig.getFactoryPath
(IJavaProject jproj) Get the factory path for a given project or for the workspace.static String
AptConfig.getGenSrcDir
(IJavaProject jproject) static String
AptConfig.getGenTestSrcDir
(IJavaProject jproject) AptConfig.getProcessorOptions
(IJavaProject jproj) Deprecated.AptConfig.getProcessorOptions
(IJavaProject jproj, boolean isTestCode) Get the options that are presented to annotation processors by the AnnotationProcessorEnvironment.AptConfig.getRawProcessorOptions
(IJavaProject jproj) Get the options that are presented to annotation processors by the AnnotationProcessorEnvironment.static String
AptConfig.getString
(IJavaProject jproj, String optionName) Helper method to get a single preference setting, e.g., APT_GENSRCDIR.static boolean
AptConfig.hasProjectSpecificFactoryPath
(IJavaProject jproj) Does this project have a factory path that is different from the workspace default?static boolean
AptConfig.isEnabled
(IJavaProject jproject) Is annotation processing turned on for this project?static void
AptConfig.removeProcessorOption
(IJavaProject jproj, String key) Remove an option from the list of processor options.static void
AptConfig.setEnabled
(IJavaProject jproject, boolean enabled) Turn annotation processing on or off for this project.static void
AptConfig.setFactoryPath
(IJavaProject jproj, IFactoryPath path) Set the factory path for a given project or for the workspace.static void
AptConfig.setGenSrcDir
(IJavaProject jproject, String dirString) static void
AptConfig.setGenTestSrcDir
(IJavaProject jproject, String dirString) static void
AptConfig.setProcessDuringReconcile
(IJavaProject jproject, boolean enabled) Turn processing during reconcile on or off.static void
AptConfig.setProcessorOptions
(Map<String, String> options, IJavaProject jproj) Set all the processor options in one call.static boolean
AptConfig.shouldProcessDuringReconcile
(IJavaProject jproject) Is annotation processing turned on during reconcile, or only during build?static boolean
AptConfig.validateGenSrcDir
(IJavaProject jproject, String dirName) -
Uses of IJavaProject in org.eclipse.jdt.core
Modifier and TypeMethodDescriptionstatic IJavaProject
JavaCore.create
(org.eclipse.core.resources.IProject project) Returns the Java project corresponding to the given project.IJavaElement.getJavaProject()
Returns the Java project this element is contained in, ornull
if this element is not contained in any Java project (for instance, theIJavaModel
is not contained in any Java project).IJavaModel.getJavaProject
(String name) Returns the Java project with the given name.IJavaModel.getJavaProjects()
Returns the Java projects in this Java model, or an empty array if there are none.Modifier and TypeMethodDescriptionboolean
ClasspathContainerInitializer.canUpdateClasspathContainer
(org.eclipse.core.runtime.IPath containerPath, IJavaProject project) Returnstrue
if this container initializer can be requested to perform updates on its own container values.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.org.eclipse.core.runtime.IStatus
ClasspathContainerInitializer.getAccessRulesStatus
(org.eclipse.core.runtime.IPath containerPath, IJavaProject project) Returns the access rules attribute status according to this initializer.org.eclipse.core.runtime.IStatus
ClasspathContainerInitializer.getAttributeStatus
(org.eclipse.core.runtime.IPath containerPath, IJavaProject project, String attributeKey) Returns the extra attribute status according to this initializer.static String
NamingConventions.getBaseName
(int variableKind, String variableName, IJavaProject javaProject) Returns a base name which could be used to generate the given variable name withNamingConventions.suggestVariableNames(int, int, String, IJavaProject, int, String[], boolean)
.static IClasspathContainer
JavaCore.getClasspathContainer
(org.eclipse.core.runtime.IPath containerPath, IJavaProject project) Answers the project specific value for a given classpath container.ClasspathContainerInitializer.getComparisonID
(org.eclipse.core.runtime.IPath containerPath, IJavaProject project) Returns an object which identifies a container for comparison purpose.ClasspathContainerInitializer.getDescription
(org.eclipse.core.runtime.IPath containerPath, IJavaProject project) Returns a readable description for a container path.ClasspathContainerInitializer.getFailureContainer
(org.eclipse.core.runtime.IPath containerPath, IJavaProject project) Returns a classpath container that is used after this initializer failed to bind a classpath container to aIClasspathContainer
for the given project.static IClasspathEntry[]
JavaCore.getReferencedClasspathEntries
(IClasspathEntry libraryEntry, IJavaProject project) Returns an array of classpath entries that are referenced directly or indirectly by a given classpath entry.static String[]
JavaCore.getReferencedModules
(IJavaProject project) Returns an array of module names referenced by this project indirectly.org.eclipse.core.runtime.IStatus
ClasspathContainerInitializer.getSourceAttachmentStatus
(org.eclipse.core.runtime.IPath containerPath, IJavaProject project) Returns the source attachment attribute status according to this initializer.abstract void
ClasspathContainerInitializer.initialize
(org.eclipse.core.runtime.IPath containerPath, IJavaProject project) Binds a classpath container to aIClasspathContainer
for a given project, or silently fails if unable to do so.IType.newTypeHierarchy
(IJavaProject project, org.eclipse.core.runtime.IProgressMonitor monitor) Creates and returns a type hierarchy for this type containing this type, all of its supertypes, and all its subtypes in the context of the given project.IType.newTypeHierarchy
(IJavaProject project, WorkingCopyOwner owner, org.eclipse.core.runtime.IProgressMonitor monitor) Creates and returns a type hierarchy for this type containing this type, all of its supertypes, and all its subtypes in the context of the given project, considering types in the working copies with the given owner.static char[]
NamingConventions.removePrefixAndSuffixForArgumentName
(IJavaProject javaProject, char[] argumentName) Deprecated.UseNamingConventions.getBaseName(int, String, IJavaProject)
instead withNamingConventions.VK_PARAMETER
as variable kind.static String
NamingConventions.removePrefixAndSuffixForArgumentName
(IJavaProject javaProject, String argumentName) Deprecated.UseNamingConventions.getBaseName(int, String, IJavaProject)
instead withNamingConventions.VK_PARAMETER
as variable kind.static char[]
NamingConventions.removePrefixAndSuffixForFieldName
(IJavaProject javaProject, char[] fieldName, int modifiers) Deprecated.UseNamingConventions.getBaseName(int, String, IJavaProject)
instead withNamingConventions.VK_INSTANCE_FIELD
orNamingConventions.VK_STATIC_FIELD
as variable kind.static String
NamingConventions.removePrefixAndSuffixForFieldName
(IJavaProject javaProject, String fieldName, int modifiers) Deprecated.UseNamingConventions.getBaseName(int, String, IJavaProject)
instead withNamingConventions.VK_INSTANCE_FIELD
orNamingConventions.VK_STATIC_FIELD
as variable kind.static char[]
NamingConventions.removePrefixAndSuffixForLocalVariableName
(IJavaProject javaProject, char[] localName) Deprecated.UseNamingConventions.getBaseName(int, String, IJavaProject)
instead withNamingConventions.VK_LOCAL
as variable kind.static String
NamingConventions.removePrefixAndSuffixForLocalVariableName
(IJavaProject javaProject, String localName) Deprecated.UseNamingConventions.getBaseName(int, String, IJavaProject)
instead withNamingConventions.VK_LOCAL
as variable kind.void
ClasspathContainerInitializer.requestClasspathContainerUpdate
(org.eclipse.core.runtime.IPath containerPath, IJavaProject project, IClasspathContainer containerSuggestion) Request a registered container definition to be updated according to a container suggestion.static void
JavaCore.setClasspathContainer
(org.eclipse.core.runtime.IPath containerPath, IJavaProject[] affectedProjects, IClasspathContainer[] respectiveContainers, org.eclipse.core.runtime.IProgressMonitor monitor) Bind a container reference path to some actual containers (IClasspathContainer
).static char[][]
NamingConventions.suggestArgumentNames
(IJavaProject javaProject, char[] packageName, char[] qualifiedTypeName, int dim, char[][] excludedNames) Deprecated.UseNamingConventions.suggestVariableNames(int, int, String, IJavaProject, int, String[], boolean)
instead withNamingConventions.VK_PARAMETER
as variable kind.static String[]
NamingConventions.suggestArgumentNames
(IJavaProject javaProject, String packageName, String qualifiedTypeName, int dim, String[] excludedNames) Deprecated.UseNamingConventions.suggestVariableNames(int, int, String, IJavaProject, int, String[], boolean)
instead withNamingConventions.VK_PARAMETER
as variable kind.static char[][]
NamingConventions.suggestFieldNames
(IJavaProject javaProject, char[] packageName, char[] qualifiedTypeName, int dim, int modifiers, char[][] excludedNames) Deprecated.static String[]
NamingConventions.suggestFieldNames
(IJavaProject javaProject, String packageName, String qualifiedTypeName, int dim, int modifiers, String[] excludedNames) Deprecated.static char[]
NamingConventions.suggestGetterName
(IJavaProject project, char[] fieldName, int modifiers, boolean isBoolean, char[][] excludedNames) Suggest name for a getter method.static String
NamingConventions.suggestGetterName
(IJavaProject project, String fieldName, int modifiers, boolean isBoolean, String[] excludedNames) Suggest name for a getter method.static char[][]
NamingConventions.suggestLocalVariableNames
(IJavaProject javaProject, char[] packageName, char[] qualifiedTypeName, int dim, char[][] excludedNames) Deprecated.UseNamingConventions.suggestVariableNames(int, int, String, IJavaProject, int, String[], boolean)
instead withNamingConventions.VK_LOCAL
as variable kind.static String[]
NamingConventions.suggestLocalVariableNames
(IJavaProject javaProject, String packageName, String qualifiedTypeName, int dim, String[] excludedNames) Deprecated.UseNamingConventions.suggestVariableNames(int, int, String, IJavaProject, int, String[], boolean)
instead withNamingConventions.VK_LOCAL
as variable kind.static char[]
NamingConventions.suggestSetterName
(IJavaProject project, char[] fieldName, int modifiers, boolean isBoolean, char[][] excludedNames) Suggest name for a setter method.static String
NamingConventions.suggestSetterName
(IJavaProject project, String fieldName, int modifiers, boolean isBoolean, String[] excludedNames) Suggest name for a setter method.static String[]
NamingConventions.suggestVariableNames
(int variableKind, int baseNameKind, String baseName, IJavaProject javaProject, int dim, String[] excluded, boolean evaluateDefault) Suggests names for a variable.static IJavaModelStatus
JavaConventions.validateClasspath
(IJavaProject javaProject, IClasspathEntry[] rawClasspath, org.eclipse.core.runtime.IPath projectOutputLocation) Validate a given classpath and output location for a project, using the following rules: Classpath entries cannot collide with each other; that is, all entry paths must be unique.static IJavaModelStatus
JavaConventions.validateClasspathEntry
(IJavaProject project, IClasspathEntry entry, boolean checkSourceAttachment) Returns a Java model status describing the problem related to this classpath entry if any, a status object with codeIStatus.OK
if the entry is fine (that is, if the given classpath entry denotes a valid element to be referenced onto a classpath). -
Uses of IJavaProject in org.eclipse.jdt.core.compiler
Modifier and TypeMethodDescriptionint
CompilationParticipant.aboutToBuild
(IJavaProject project) Notifies this participant that a build is about to start and provides it the opportunity to create missing source folders for generated source files.void
CompilationParticipant.buildFinished
(IJavaProject project) Notifies this participant that a build has finished for the project.void
CompilationParticipant.cleanStarting
(IJavaProject project) Notifies this participant that a clean is about to start and provides it the opportunity to delete generated source files.URI[]
CompilationParticipant.getAnnotationProcessorPaths
(IJavaProject project, boolean isTest) Requests the participant to supply the locations where to find annotation processors.org.eclipse.core.resources.IContainer[]
CompilationParticipant.getGeneratedSourcePaths
(IJavaProject project, boolean isTest) Requests the participant to supply the locations to place the generated source files.boolean
CompilationParticipant.isActive
(IJavaProject project) Returns whether this participant is active for a given project. -
Uses of IJavaProject in org.eclipse.jdt.core.dom
Modifier and TypeMethodDescriptionstatic CompilationUnit
AST.parseCompilationUnit
(char[] source, String unitName, IJavaProject project) Deprecated.UseASTParser
instead.void
ASTParser.setProject
(IJavaProject project) Sets the Java project used when resolving bindings. -
Uses of IJavaProject in org.eclipse.jdt.core.eval
Modifier and TypeMethodDescriptionIEvaluationContext.getProject()
Returns the Java project this evaluation context was created for. -
Uses of IJavaProject in org.eclipse.jdt.core.manipulation
Modifier and TypeMethodDescriptionstatic void
ImportReferencesCollector.collect
(ASTNode node, IJavaProject project, org.eclipse.jface.text.Region rangeLimit, boolean skipMethodBodies, Collection<SimpleName> resultingTypeImports, Collection<SimpleName> resultingStaticImports) Collect import statements from an AST node.static void
ImportReferencesCollector.collect
(ASTNode node, IJavaProject project, org.eclipse.jface.text.Region rangeLimit, Collection<SimpleName> resultingTypeImports, Collection<SimpleName> resultingStaticImports) Collect import statements from an AST node.static String
JavaManipulation.getPreference
(String key, IJavaProject project) Returns the value for the given key in the given context for the JDT UI plug-in. -
Uses of IJavaProject in org.eclipse.jdt.core.search
Modifier and TypeMethodDescriptionstatic IJavaSearchScope
SearchEngine.createStrictHierarchyScope
(IJavaProject project, IType type, boolean onlySubtypes, boolean includeFocusType, WorkingCopyOwner owner) Returns a Java search scope limited to the hierarchy of the given type and to a given project. -
Uses of IJavaProject in org.eclipse.jdt.core.util
Modifier and TypeMethodDescriptionstatic org.eclipse.core.resources.IFile
ExternalAnnotationUtil.getAnnotationFile
(IJavaProject project, ITypeBinding type, org.eclipse.core.runtime.IProgressMonitor monitor) Answer the external annotation file corresponding to the given type as seen from the given project. -
Uses of IJavaProject in org.eclipse.jdt.debug.eval
Modifier and TypeMethodDescriptionIEvaluationEngine.getJavaProject()
Returns the Java project in which expressions are compiled.Modifier and TypeMethodDescriptionstatic IAstEvaluationEngine
EvaluationManager.newAstEvaluationEngine
(IJavaProject project, IJavaDebugTarget target) Creates and returns a new evaluation engine that performs evaluations by compiling expressions into abstract syntax trees (ASTs), and interpreting the AST over a JDI connection.static IClassFileEvaluationEngine
EvaluationManager.newClassFileEvaluationEngine
(IJavaProject project, IJavaDebugTarget target, File directory) Creates and returns a new evaluation engine that performs evaluations for local Java applications by deploying class files. -
Uses of IJavaProject in org.eclipse.jdt.debug.ui
ModifierConstructorDescriptionJavaUISourceLocator
(IJavaProject project) Deprecated.Constructs a source locator that searches for source in the given Java project, and all of its required projects, as specified by its build path or default source lookup settings.JavaUISourceLocator
(IJavaProject[] projects, boolean includeRequired) Deprecated.Constructs a new source locator that looks in the specified project for source, and required projects, ifincludeRequired
istrue
. -
Uses of IJavaProject in org.eclipse.jdt.debug.ui.launchConfigurations
Modifier and TypeMethodDescriptionprotected IJavaProject
JavaJRETab.getJavaProject()
Returns the Java project associated with the current config being edited, ornull
if none. -
Uses of IJavaProject in org.eclipse.jdt.junit.model
Modifier and TypeMethodDescriptionITestRunSession.getLaunchedProject()
Returns the Java project from which this test run session has been launched, ornull
if not available. -
Uses of IJavaProject in org.eclipse.jdt.launching
Modifier and TypeMethodDescriptionAbstractJavaLaunchConfigurationDelegate.getJavaProject
(org.eclipse.debug.core.ILaunchConfiguration configuration) Returns the Java project specified by the given launch configuration, ornull
if none.IRuntimeClasspathEntry.getJavaProject()
Returns the Java project associated with this runtime classpath entry ornull
if none.static IJavaProject
JavaRuntime.getJavaProject
(org.eclipse.debug.core.ILaunchConfiguration configuration) Return theIJavaProject
referenced in the specified configuration ornull
if none.AbstractJavaLaunchConfigurationDelegate.verifyJavaProject
(org.eclipse.debug.core.ILaunchConfiguration configuration) Verifies a Java project is specified by the given launch configuration, and returns the Java project.Modifier and TypeMethodDescriptionstatic String[]
JavaRuntime.computeDefaultRuntimeClassPath
(IJavaProject jproject) Computes the default application classpath entries for the given project.static String[]
JavaRuntime.computeJavaLibraryPath
(IJavaProject project, boolean requiredProjects) Returns a collection of paths that should be appended to the given project'sjava.library.path
system property when launched.static IRuntimeClasspathEntry
JavaRuntime.computeJREEntry
(IJavaProject project) Returns a runtime classpath entry identifying the JRE referenced by the specified project, ornull
if none.static IRuntimeClasspathEntry
JavaRuntime.computeModularJREEntry
(IJavaProject project) Returns a runtime classpath or modulepath entry identifying the JRE referenced by the specified project, ornull
if none.static IRuntimeClasspathEntry[]
JavaRuntime.computeUnresolvedRuntimeClasspath
(IJavaProject project) Computes and returns the default unresolved runtime classpath for the given project.static IRuntimeClasspathEntry[]
JavaRuntime.computeUnresolvedRuntimeClasspath
(IJavaProject project, boolean excludeTestCode) Computes and returns the default unresolved runtime classpath for the given project.static IRuntimeClasspathEntry[]
JavaRuntime.computeUnresolvedRuntimeDependencies
(IJavaProject project) Computes and returns the default unresolved runtime classpath and modulepath for the given project.static IRuntimeClasspathEntry[]
JavaRuntime.computeUnresolvedRuntimeDependencies
(IJavaProject project, boolean excludeTestCode) Computes and returns the default unresolved runtime classpath and modulepath for the given project.static IVMInstall
JavaRuntime.getVMInstall
(IJavaProject project) Returns the VM assigned to build the given Java project.static boolean
JavaRuntime.isModularProject
(IJavaProject proj) Checks if project entry is modularstatic boolean
JavaRuntime.isModule
(IClasspathEntry entry, IJavaProject proj) Checks if classpath entry is modular and project is modular .static IRuntimeClasspathEntry
JavaRuntime.newArchiveRuntimeClasspathEntry
(org.eclipse.core.runtime.IPath path, int classpathProperty, IJavaProject javaProject) Returns a new runtime classpath entry for the given archive(possibly external).static IRuntimeClasspathEntry
JavaRuntime.newDefaultProjectClasspathEntry
(IJavaProject project) Returns a new runtime classpath entry containing the default classpath for the specified Java project.static IRuntimeClasspathEntry
JavaRuntime.newProjectRuntimeClasspathEntry
(IJavaProject project) Returns a new runtime classpath entry for the given project.static IRuntimeClasspathEntry
JavaRuntime.newProjectRuntimeClasspathEntry
(IJavaProject project, int classpathProperty) Returns a new runtime classpath entry for the given project.static IRuntimeClasspathEntry
JavaRuntime.newRuntimeContainerClasspathEntry
(org.eclipse.core.runtime.IPath path, int classpathProperty, IJavaProject project) Returns a runtime classpath entry for the given container path with the given classpath property to be resolved in the context of the given Java project.IRuntimeClasspathEntryResolver.resolveRuntimeClasspathEntry
(IRuntimeClasspathEntry entry, IJavaProject project) Returns resolved runtime classpath entries for the given runtime classpath entry, in the context of the given Java project.default IRuntimeClasspathEntry[]
IRuntimeClasspathEntryResolver.resolveRuntimeClasspathEntry
(IRuntimeClasspathEntry entry, IJavaProject project, boolean excludeTestCode) Returns resolved runtime classpath entries for the given runtime classpath entry, in the context of the given Java project.static IRuntimeClasspathEntry[]
JavaRuntime.resolveRuntimeClasspathEntry
(IRuntimeClasspathEntry entry, IJavaProject project) Returns resolved entries for the given entry in the context of the given Java project.static IRuntimeClasspathEntry[]
JavaRuntime.resolveRuntimeClasspathEntry
(IRuntimeClasspathEntry entry, IJavaProject project, boolean excludeTestCode) Returns resolved entries for the given entry in the context of the given Java project. -
Uses of IJavaProject in org.eclipse.jdt.launching.environments
Modifier and TypeMethodDescriptionIAccessRule[][]
IAccessRuleParticipant.getAccessRules
(IExecutionEnvironment environment, IVMInstall vm, LibraryLocation[] libraries, IJavaProject project) Returns a collection of access rules to be applied to the specified VM libraries and execution environment in the context of the given project.IAccessRule[][]
IExecutionEnvironment.getAccessRules
(IVMInstall vm, LibraryLocation[] libraries, IJavaProject project) Returns a collection of access rules to be applied to the specified VM libraries for this execution environment in the context of the given project. -
Uses of IJavaProject in org.eclipse.jdt.launching.sourcelookup
Modifier and TypeMethodDescriptionJavaProjectSourceLocation.getJavaProject()
Deprecated.Returns the Java project associated with this source location.Modifier and TypeMethodDescriptionprotected static void
JavaSourceLocator.collectRequiredProjects
(IJavaProject proj, ArrayList<IJavaProject> res) Deprecated.Adds all projects required byproj
to the listres
static IJavaSourceLocation[]
JavaSourceLocator.getDefaultSourceLocations
(IJavaProject project) Deprecated.Returns a default collection of source locations for the given Java project.Modifier and TypeMethodDescriptionprotected static void
JavaSourceLocator.collectRequiredProjects
(IJavaProject proj, ArrayList<IJavaProject> res) Deprecated.Adds all projects required byproj
to the listres
ModifierConstructorDescriptionJavaProjectSourceLocation
(IJavaProject project) Deprecated.Constructs a new source location that will retrieve source elements from the given Java project.JavaSourceLocator
(IJavaProject project) Deprecated.Constructs a new JavaSourceLocator that searches the default set of source locations for the given Java project.JavaSourceLocator
(IJavaProject[] projects, boolean includeRequired) Deprecated.Constructs a new Java source locator that looks in the specified project for source, and required projects, ifincludeRequired
istrue
. -
Uses of IJavaProject in org.eclipse.jdt.launching.sourcelookup.advanced
Modifier and TypeMethodDescriptionvoid
IWorkspaceProjectDescriber.describeProject
(IJavaProject project, IWorkspaceProjectDescriber.IJavaProjectSourceDescription description) Populate the given description with the given project's description.static Map<File,
IPackageFragmentRoot> AdvancedSourceLookup.getClasspath
(IJavaProject project) AdvancedSourceLookup.getOutputDirectories
(IJavaProject project) static boolean
AdvancedSourceLookup.isSourceProject
(IJavaProject project) Returnstrue
if the given project has sources folders,false
otherwise. -
Uses of IJavaProject in org.eclipse.jdt.launching.sourcelookup.containers
Modifier and TypeMethodDescriptionJavaProjectSourceContainer.getJavaProject()
Returns the Java project associated with this source container.ModifierConstructorDescriptionJavaProjectSourceContainer
(IJavaProject project) Constructs a source container on the given Java project. -
Uses of IJavaProject in org.eclipse.jdt.ui
Modifier and TypeMethodDescriptionstatic org.eclipse.ui.dialogs.SelectionDialog
JavaUI.createPackageDialog
(org.eclipse.swt.widgets.Shell parent, IJavaProject project, int style) Creates a selection dialog that lists all packages of the given Java project.static org.eclipse.ui.dialogs.SelectionDialog
JavaUI.createPackageDialog
(org.eclipse.swt.widgets.Shell parent, IJavaProject project, int style, String filter) Creates a selection dialog that lists all packages of the given Java project.static String
JavaElementLabels.getContainerEntryLabel
(org.eclipse.core.runtime.IPath containerPath, IJavaProject project) Returns the label of a classpath container.protected Object[]
StandardJavaElementContentProvider.getPackageFragmentRoots
(IJavaProject project) Evaluates all children of a givenIJavaProject
.static String
PreferenceConstants.getPreference
(String key, IJavaProject project) Returns the value for the given key in the given context.static URL
JavaUI.getProjectJavadocLocation
(IJavaProject project) Returns the Javadoc location for a Java project ornull
if no location is available.static org.eclipse.jface.viewers.StyledString
JavaElementLabels.getStyledContainerEntryLabel
(org.eclipse.core.runtime.IPath containerPath, IJavaProject project) Returns the styled label of a classpath container.static void
JavaUI.setProjectJavadocLocation
(IJavaProject project, URL url) Sets the Javadoc location for a Java project. -
Uses of IJavaProject in org.eclipse.jdt.ui.cleanup
Modifier and TypeMethodDescriptionorg.eclipse.ltk.core.refactoring.RefactoringStatus
ICleanUp.checkPreConditions
(IJavaProject project, ICompilationUnit[] compilationUnits, org.eclipse.core.runtime.IProgressMonitor monitor) After call to checkPreConditions clients will start creating fixes forcompilationUnits
inproject
unless the result of checkPreConditions contains a fatal error -
Uses of IJavaProject in org.eclipse.jdt.ui.refactoring
Modifier and TypeMethodDescriptionstatic RenameSupport
RenameSupport.create
(IJavaProject project, String newName, int flags) Creates a new rename support for the givenIJavaProject
. -
Uses of IJavaProject in org.eclipse.jdt.ui.text.java
Modifier and TypeMethodDescriptionJavaContentAssistInvocationContext.getProject()
Returns the project of the compilation unit that content assist is invoked in,null
if none.Modifier and TypeMethodDescriptionClasspathFixProcessor.getContributedFixImportProposals
(IJavaProject project, String name, org.eclipse.core.runtime.MultiStatus status) Evaluates all contributed proposals that can fix non-resolvable imports.abstract ClasspathFixProcessor.ClasspathFixProposal[]
ClasspathFixProcessor.getFixImportProposals
(IJavaProject project, String name) Returns proposal that can fix non-resolvable imports.static org.eclipse.ltk.core.refactoring.Change
ClasspathFixProcessor.ClasspathFixProposal.newAddClasspathChange
(IJavaProject project, IClasspathEntry entryToAdd) A helper method to create aChange
that adds an entry to the class path.static org.eclipse.ltk.core.refactoring.Change
ClasspathFixProcessor.ClasspathFixProposal.newClasspathChange
(IJavaProject project, IClasspathEntry[] newClasspath, org.eclipse.core.runtime.IPath outputLocation) A helper method to create aChange
that modifies a class path.ModifierConstructorDescriptionCompletionProposalCollector
(IJavaProject project) Creates a new instance ready to collect proposals.JavaContentAssistInvocationContext
(IJavaProject javaProject) Creates a new context. -
Uses of IJavaProject in org.eclipse.jdt.ui.wizards
Modifier and TypeMethodDescriptionabstract IJavaProject
ClasspathAttributeConfiguration.ClasspathAttributeAccess.getJavaProject()
Returns the Java project the current attribute is part of.JavaCapabilityConfigurationPage.getJavaProject()
Returns the Java project that was passed inJavaCapabilityConfigurationPage.init(IJavaProject, IPath, IClasspathEntry[], boolean)
ornull
if the page has not been initialized yet.NewContainerWizardPage.getJavaProject()
Returns the Java project of the currently selected package fragment root ornull
if no package fragment root is configured.NewModuleInfoWizardPage.getJavaProject()
NewJavaProjectWizardPage.getNewJavaProject()
Deprecated.Returns the Java project handle by converting the result ofgetProjectHandle()
into a Java project.NewModuleInfoWizardPage.getProject()
Modifier and TypeMethodDescriptionstatic IClasspathEntry[]
BuildPathDialogAccess.chooseContainerEntries
(org.eclipse.swt.widgets.Shell shell, IJavaProject project, IClasspathEntry[] currentClasspath) Shows the UI to choose new classpath container classpath entries.static IClasspathEntry
BuildPathDialogAccess.configureContainerEntry
(org.eclipse.swt.widgets.Shell shell, IClasspathEntry initialEntry, IJavaProject project, IClasspathEntry[] currentClasspath) Shows the UI to configure a classpath container classpath entry.void
JavaCapabilityConfigurationPage.init
(IJavaProject jproject, org.eclipse.core.runtime.IPath defaultOutputLocation, IClasspathEntry[] defaultEntries, boolean defaultsOverrideExistingClasspath) Initializes the page with the project and default classpath.void
NewModuleInfoWizardPage.init
(IJavaProject project) The wizard owning this page is responsible for calling this method with the current selection's project.void
IClasspathContainerPageExtension.initialize
(IJavaProject project, IClasspathEntry[] currentEntries) Methodinitialize()
is called beforeIClasspathContainerPage.setSelection
to give additional information about the context the classpath container entry is configured in.protected void
NewJavaProjectWizardPageTwo.initializeBuildPath
(IJavaProject javaProject, org.eclipse.core.runtime.IProgressMonitor monitor) Evaluates the new build path and output folder according to the settings on the first page.
AptConfig.getProcessorOptions(IJavaProject, boolean)
orAptConfig.getRawProcessorOptions(IJavaProject)