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.compiler |
This package contains compiler associated infrastructure APIs.
|
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.debug.eval |
Provides a set classes and interfaces that support evaluations in the Java debugger. |
org.eclipse.jdt.debug.ui |
Provides an implementation of a source locator for the Java debug model. |
org.eclipse.jdt.debug.ui.launchConfigurations |
Provides an implementation launch configuration tabs for local and remote Java applications. |
org.eclipse.jdt.launching |
Application programming interfaces for interaction
with the Eclipse Java launching support.
|
org.eclipse.jdt.launching.sourcelookup |
Application programming interfaces and classes for source lookup.
|
org.eclipse.jdt.launching.sourcelookup.containers |
Provides source lookup support for the Java debugger.
|
org.eclipse.jdt.ui |
Application programming interfaces for interaction
with the Eclipse Java User Interface.
|
org.eclipse.jdt.ui.refactoring |
Application programming interfaces for rename refactorings.
|
org.eclipse.jdt.ui.text.java |
Application programming interfaces for interaction
with the Eclipse Java User Interface.
|
org.eclipse.jdt.ui.wizards |
Application programming interfaces for interaction
with the Eclipse Java User Interface wizards.
|
Modifier and Type | Method and Description |
---|---|
static IJavaProject |
JavaCore.create(IProject project)
Returns the Java project corresponding to the given project.
|
IJavaProject |
IJavaElement.getJavaProject()
Returns the Java project this element is contained in,
or
null if this element is not contained in any Java project
(for instance, the IJavaModel is not contained in any Java
project). |
IJavaProject |
IJavaModel.getJavaProject(String name)
Returns the Java project with the given name.
|
IJavaProject[] |
IJavaModel.getJavaProjects()
Returns the Java projects in this Java model, or an empty array if there
are none.
|
Modifier and Type | Method and Description |
---|---|
boolean |
ClasspathContainerInitializer.canUpdateClasspathContainer(IPath containerPath,
IJavaProject project)
Returns
true if this container initializer can be requested to perform updates
on its own container values. |
static IClasspathContainer |
JavaCore.getClasspathContainer(IPath containerPath,
IJavaProject project)
Answers the project specific value for a given classpath container.
|
Object |
ClasspathContainerInitializer.getComparisonID(IPath containerPath,
IJavaProject project)
Returns an object which identifies a container for comparison purpose.
|
String |
ClasspathContainerInitializer.getDescription(IPath containerPath,
IJavaProject project)
Returns a readable description for a container path.
|
abstract void |
ClasspathContainerInitializer.initialize(IPath containerPath,
IJavaProject project)
Binds a classpath container to a
IClasspathContainer for a given project,
or silently fails if unable to do so. |
ITypeHierarchy |
IType.newTypeHierarchy(IJavaProject project,
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.
|
ITypeHierarchy |
IType.newTypeHierarchy(IJavaProject project,
WorkingCopyOwner owner,
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)
Remove prefix and suffix from an argument name.
|
static String |
NamingConventions.removePrefixAndSuffixForArgumentName(IJavaProject javaProject,
String argumentName)
Remove prefix and suffix from an argument name.
|
static char[] |
NamingConventions.removePrefixAndSuffixForFieldName(IJavaProject javaProject,
char[] fieldName,
int modifiers)
Remove prefix and suffix from a field name.
|
static String |
NamingConventions.removePrefixAndSuffixForFieldName(IJavaProject javaProject,
String fieldName,
int modifiers)
Remove prefix and suffix from a field name.
|
static char[] |
NamingConventions.removePrefixAndSuffixForLocalVariableName(IJavaProject javaProject,
char[] localName)
Remove prefix and suffix from a local variable name.
|
static String |
NamingConventions.removePrefixAndSuffixForLocalVariableName(IJavaProject javaProject,
String localName)
Remove prefix and suffix from a local variable name.
|
void |
ClasspathContainerInitializer.requestClasspathContainerUpdate(IPath containerPath,
IJavaProject project,
IClasspathContainer containerSuggestion)
Request a registered container definition to be updated according to a container suggestion.
|
static void |
JavaCore.setClasspathContainer(IPath containerPath,
IJavaProject[] affectedProjects,
IClasspathContainer[] respectiveContainers,
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)
Suggest names for an argument.
|
static String[] |
NamingConventions.suggestArgumentNames(IJavaProject javaProject,
String packageName,
String qualifiedTypeName,
int dim,
String[] excludedNames)
Suggest names for an argument.
|
static char[][] |
NamingConventions.suggestFieldNames(IJavaProject javaProject,
char[] packageName,
char[] qualifiedTypeName,
int dim,
int modifiers,
char[][] excludedNames)
Suggest names for a field.
|
static String[] |
NamingConventions.suggestFieldNames(IJavaProject javaProject,
String packageName,
String qualifiedTypeName,
int dim,
int modifiers,
String[] excludedNames)
Suggest names for a field.
|
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)
Suggest names for a local variable.
|
static String[] |
NamingConventions.suggestLocalVariableNames(IJavaProject javaProject,
String packageName,
String qualifiedTypeName,
int dim,
String[] excludedNames)
Suggest names for a local variable.
|
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 IJavaModelStatus |
JavaConventions.validateClasspath(IJavaProject javaProject,
IClasspathEntry[] rawClasspath,
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 code
IStatus.OK if the entry is fine (that is, if the
given classpath entry denotes a valid element to be referenced onto a classpath). |
Modifier and Type | Method and Description |
---|---|
int |
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.cleanStarting(IJavaProject project)
Notifies this participant that a clean is about to start and provides it the opportunity to
delete generated source files.
|
boolean |
CompilationParticipant.isActive(IJavaProject project)
Returns whether this participant is active for a given project.
|
Modifier and Type | Method and Description |
---|---|
static CompilationUnit |
AST.parseCompilationUnit(char[] source,
String unitName,
IJavaProject project)
Deprecated.
Use
ASTParser instead. |
void |
ASTParser.setProject(IJavaProject project)
Sets the Java project used when resolving bindings.
|
Modifier and Type | Method and Description |
---|---|
IJavaProject |
IEvaluationContext.getProject()
Returns the Java project this evaluation context was created for.
|
Modifier and Type | Method and Description |
---|---|
IJavaProject |
IEvaluationEngine.getJavaProject()
Returns the Java project in which expressions are
compiled.
|
Modifier and Type | Method and Description |
---|---|
static 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.
|
Constructor and Description |
---|
JavaUISourceLocator(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, if
includeRequired is true . |
Modifier and Type | Method and Description |
---|---|
protected IJavaProject |
JavaJRETab.getJavaProject()
Returns the Java project associated with the current config being edited,
or
null if none. |
Modifier and Type | Method and Description |
---|---|
IJavaProject |
IRuntimeClasspathEntry.getJavaProject()
Returns the Java project associated with this runtime classpath entry
or
null if none. |
static IJavaProject |
JavaRuntime.getJavaProject(ILaunchConfiguration configuration)
Return the
IJavaProject referenced in the specified configuration or
null if none. |
IJavaProject |
AbstractJavaLaunchConfigurationDelegate.getJavaProject(ILaunchConfiguration configuration)
Returns the Java project specified by the given launch configuration, or
null if none. |
IJavaProject |
AbstractJavaLaunchConfigurationDelegate.verifyJavaProject(ILaunchConfiguration configuration)
Verifies a Java project is specified by the given launch configuration,
and returns the Java project.
|
Modifier and Type | Method and Description |
---|---|
static 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's
java.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, or
null if none. |
static IRuntimeClasspathEntry[] |
JavaRuntime.computeUnresolvedRuntimeClasspath(IJavaProject project)
Computes and returns the default unresolved runtime classpath for the
given project.
|
static IVMInstall |
JavaRuntime.getVMInstall(IJavaProject project)
Returns the VM assigned to build the given Java project.
|
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.newRuntimeContainerClasspathEntry(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.
|
static IRuntimeClasspathEntry[] |
JavaRuntime.resolveRuntimeClasspathEntry(IRuntimeClasspathEntry entry,
IJavaProject project)
Returns resolved entries for the given entry in the context of the given
Java project.
|
IRuntimeClasspathEntry[] |
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.
|
Modifier and Type | Method and Description |
---|---|
IJavaProject |
JavaProjectSourceLocation.getJavaProject()
Deprecated.
Returns the Java project associated with this source
location.
|
Modifier and Type | Method and Description |
---|---|
protected static void |
JavaSourceLocator.collectRequiredProjects(IJavaProject proj,
ArrayList res)
Deprecated.
Adds all projects required by
proj to the list
res |
static IJavaSourceLocation[] |
JavaSourceLocator.getDefaultSourceLocations(IJavaProject project)
Deprecated.
Returns a default collection of source locations for
the given Java project.
|
Constructor and Description |
---|
JavaProjectSourceLocation(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, if
includeRequired is true . |
Modifier and Type | Method and Description |
---|---|
IJavaProject |
JavaProjectSourceContainer.getJavaProject()
Returns the Java project associated with this source container.
|
Constructor and Description |
---|
JavaProjectSourceContainer(IJavaProject project)
Constructs a source container on the given Java project.
|
Modifier and Type | Method and Description |
---|---|
static SelectionDialog |
JavaUI.createPackageDialog(Shell parent,
IJavaProject project,
int style)
Creates a selection dialog that lists all packages of the given Java project.
|
static SelectionDialog |
JavaUI.createPackageDialog(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(IPath containerPath,
IJavaProject project)
Returns the label of a classpath container
|
protected Object[] |
StandardJavaElementContentProvider.getPackageFragmentRoots(IJavaProject project)
Note: This method is for internal use only.
|
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 or
null if no
location is available. |
static void |
JavaUI.setProjectJavadocLocation(IJavaProject project,
URL url)
Sets the Javadoc location for a Java project.
|
Modifier and Type | Method and Description |
---|---|
static RenameSupport |
RenameSupport.create(IJavaProject project,
String newName,
int flags)
Creates a new rename support for the given
IJavaProject . |
Modifier and Type | Method and Description |
---|---|
IJavaProject |
JavaContentAssistInvocationContext.getProject()
Returns the project of the compilation unit that content assist is invoked in,
null if none. |
Constructor and Description |
---|
CompletionProposalCollector(IJavaProject project)
Creates a new instance ready to collect proposals.
|
Modifier and Type | Method and Description |
---|---|
IJavaProject |
JavaCapabilityConfigurationPage.getJavaProject()
Returns the Java project that was passed in
JavaCapabilityConfigurationPage.init(IJavaProject, IPath, IClasspathEntry[], boolean) or null if the
page has not been initialized yet. |
IJavaProject |
NewJavaProjectWizardPage.getNewJavaProject()
Returns the Java project handle by converting the result of
getProjectHandle() into a Java project. |
Modifier and Type | Method and Description |
---|---|
static IClasspathEntry[] |
BuildPathDialogAccess.chooseContainerEntries(Shell shell,
IJavaProject project,
IClasspathEntry[] currentClasspath)
Shows the UI to choose new classpath container classpath entries.
|
static IClasspathEntry |
BuildPathDialogAccess.configureContainerEntry(Shell shell,
IClasspathEntry initialEntry,
IJavaProject project,
IClasspathEntry[] currentClasspath)
Shows the UI to configure a classpath container classpath entry.
|
void |
JavaCapabilityConfigurationPage.init(IJavaProject jproject,
IPath defaultOutputLocation,
IClasspathEntry[] defaultEntries,
boolean defaultsOverrideExistingClasspath)
Initializes the page with the project and default classpath.
|
void |
IClasspathContainerPageExtension.initialize(IJavaProject project,
IClasspathEntry[] currentEntries)
Method
initialize() is called before IClasspathContainerPage.setSelection
to give additional information about the context the classpath container entry is configured in. |
Copyright (c) IBM Corp. and others 2000, 2006. All Rights Reserved.