Java org.eclipse.jdt.core JavaCore fields, constructors, methods, implement or subclass

Example usage for Java org.eclipse.jdt.core JavaCore fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.eclipse.jdt.core JavaCore.

The text is from its open source code.

Field

StringPLUGIN_ID
The plug-in identifier of the Java core support (value "org.eclipse.jdt.core").
StringBUILDER_ID
The identifier for the Java builder (value "org.eclipse.jdt.core.javabuilder").
StringNATURE_ID
The identifier for the Java nature (value "org.eclipse.jdt.core.javanature").
StringUSER_LIBRARY_CONTAINER_ID
Name of the User Library Container id.
StringCOMPILER_LOCAL_VARIABLE_ATTR
Compiler option ID: Generating Local Variable Debug Attribute.
StringCOMPILER_LINE_NUMBER_ATTR
Compiler option ID: Generating Line Number Debug Attribute.
StringCOMPILER_SOURCE_FILE_ATTR
Compiler option ID: Generating Source Debug Attribute.
StringCOMPILER_CODEGEN_UNUSED_LOCAL
Compiler option ID: Preserving Unused Local Variables.
StringCOMPILER_CODEGEN_TARGET_PLATFORM
Compiler option ID: Defining Target Java Platform.
StringCOMPILER_CODEGEN_INLINE_JSR_BYTECODE
Compiler option ID: Inline JSR Bytecode Instruction.
StringCOMPILER_DOC_COMMENT_SUPPORT
Compiler option ID: Javadoc Comment Support.
StringCOMPILER_PB_UNREACHABLE_CODE
StringCOMPILER_PB_INVALID_IMPORT
StringCOMPILER_PB_OVERRIDING_PACKAGE_DEFAULT_METHOD
Compiler option ID: Reporting Attempt to Override Package Visible Method.
StringCOMPILER_PB_METHOD_WITH_CONSTRUCTOR_NAME
Compiler option ID: Reporting Method With Constructor Name.
StringCOMPILER_PB_DEPRECATION
Compiler option ID: Reporting Deprecation.
StringCOMPILER_PB_DEPRECATION_WHEN_OVERRIDING_DEPRECATED_METHOD
Compiler option ID: Reporting Deprecation When Overriding Deprecated Method.
StringCOMPILER_PB_HIDDEN_CATCH_BLOCK
Compiler option ID: Reporting Hidden Catch Block.
StringCOMPILER_PB_UNUSED_LOCAL
Compiler option ID: Reporting Unused Local.
StringCOMPILER_PB_UNUSED_PARAMETER
Compiler option ID: Reporting Unused Parameter.
StringCOMPILER_PB_UNUSED_PARAMETER_WHEN_IMPLEMENTING_ABSTRACT
Compiler option ID: Reporting Unused Parameter if Implementing Abstract Method.
StringCOMPILER_PB_UNUSED_PARAMETER_WHEN_OVERRIDING_CONCRETE
Compiler option ID: Reporting Unused Parameter if Overriding Concrete Method.
StringCOMPILER_PB_UNUSED_PARAMETER_INCLUDE_DOC_COMMENT_REFERENCE
Compiler option ID: Consider Reference in Doc Comment for Unused Parameter Check.
StringCOMPILER_PB_UNUSED_IMPORT
Compiler option ID: Reporting Unused Import.
StringCOMPILER_PB_SYNTHETIC_ACCESS_EMULATION
Compiler option ID: Reporting Synthetic Access Emulation.
StringCOMPILER_PB_UNUSED_TYPE_PARAMETER
Compiler option ID: Reporting Unused Type Parameter.
StringCOMPILER_PB_NON_NLS_STRING_LITERAL
Compiler option ID: Reporting Non-Externalized String Literal.
StringCOMPILER_PB_ASSERT_IDENTIFIER
Compiler option ID: Reporting Usage of 'assert' Identifier.
StringCOMPILER_PB_ENUM_IDENTIFIER
Compiler option ID: Reporting Usage of 'enum' Identifier.
StringCOMPILER_PB_STATIC_ACCESS_RECEIVER
Compiler option ID: Reporting Non-Static Reference to a Static Member.
StringCOMPILER_PB_INDIRECT_STATIC_ACCESS
Compiler option ID: Reporting Indirect Reference to a Static Member.
StringCOMPILER_PB_NO_EFFECT_ASSIGNMENT
Compiler option ID: Reporting Assignment with no Effect.
StringCOMPILER_PB_INCOMPATIBLE_NON_INHERITED_INTERFACE_METHOD
Compiler option ID: Reporting Interface Method not Compatible with non-Inherited Methods.
StringCOMPILER_PB_UNUSED_PRIVATE_MEMBER
Compiler option ID: Reporting Unused Private Members.
StringCOMPILER_PB_LOCAL_VARIABLE_HIDING
Compiler option ID: Reporting Local Variable Declaration Hiding another Variable.
StringCOMPILER_PB_SPECIAL_PARAMETER_HIDING_FIELD
Compiler option ID: Reporting Special Parameter Hiding another Field.
StringCOMPILER_PB_FIELD_HIDING
Compiler option ID: Reporting Field Declaration Hiding another Variable.
StringCOMPILER_PB_TYPE_PARAMETER_HIDING
Compiler option ID: Reporting Type Declaration Hiding another Type.
StringCOMPILER_PB_POSSIBLE_ACCIDENTAL_BOOLEAN_ASSIGNMENT
Compiler option ID: Reporting Possible Accidental Boolean Assignment.
StringCOMPILER_PB_FALLTHROUGH_CASE
Compiler option ID: Reporting Switch Fall-Through Case.
StringCOMPILER_PB_EMPTY_STATEMENT
Compiler option ID: Reporting Empty Statements and Unnecessary Semicolons.
StringCOMPILER_PB_UNNECESSARY_TYPE_CHECK
Compiler option ID: Reporting Unnecessary Type Check.
StringCOMPILER_PB_UNNECESSARY_ELSE
Compiler option ID: Reporting Unnecessary Else.
StringCOMPILER_PB_UNDOCUMENTED_EMPTY_BLOCK
Compiler option ID: Reporting Undocumented Empty Block.
StringCOMPILER_PB_FINALLY_BLOCK_NOT_COMPLETING
Compiler option ID: Reporting Finally Blocks Not Completing Normally.
StringCOMPILER_PB_UNUSED_DECLARED_THROWN_EXCEPTION
Compiler option ID: Reporting Unused Declared Thrown Exception.
StringCOMPILER_PB_UNUSED_DECLARED_THROWN_EXCEPTION_WHEN_OVERRIDING
Compiler option ID: Reporting Unused Declared Thrown Exception in Overriding Method.
StringCOMPILER_PB_UNUSED_DECLARED_THROWN_EXCEPTION_INCLUDE_DOC_COMMENT_REFERENCE
Compiler option ID: Consider Reference in Doc Comment for Unused Declared Thrown Exception Check.
StringCOMPILER_PB_UNQUALIFIED_FIELD_ACCESS
Compiler option ID: Reporting Unqualified Access to Field.
StringCOMPILER_PB_UNCHECKED_TYPE_OPERATION
Compiler option ID: Reporting Unchecked Type Operation.
StringCOMPILER_PB_RAW_TYPE_REFERENCE
Compiler option ID: Reporting Raw Type Reference.
StringCOMPILER_PB_FINAL_PARAMETER_BOUND
Compiler option ID: Reporting final Bound for Type Parameter.
StringCOMPILER_PB_MISSING_SERIAL_VERSION
Compiler option ID: Reporting Missing Declaration of serialVersionUID Field on Serializable Class.
StringCOMPILER_PB_VARARGS_ARGUMENT_NEED_CAST
Compiler option ID: Reporting Varargs Argument Needing a Cast in Method/Constructor Invocation.
StringCOMPILER_PB_AUTOBOXING
Compiler option ID: Reporting Boxing/Unboxing Conversion.
StringCOMPILER_PB_ANNOTATION_SUPER_INTERFACE
Compiler option ID: Reporting Use of Annotation Type as Super Interface.
StringCOMPILER_PB_MISSING_OVERRIDE_ANNOTATION
Compiler option ID: Reporting Missing @Override Annotation.
StringCOMPILER_PB_MISSING_DEPRECATED_ANNOTATION
Compiler option ID: Reporting Missing @Deprecated Annotation.
StringCOMPILER_PB_MISSING_HASHCODE_METHOD
Compiler option ID: Reporting Missing HashCode Method.
StringCOMPILER_PB_DEAD_CODE
Compiler option ID: Reporting Dead Code.
StringCOMPILER_PB_INCOMPLETE_ENUM_SWITCH
Compiler option ID: Reporting Incomplete Enum Switch.
StringCOMPILER_PB_SWITCH_MISSING_DEFAULT_CASE
Compiler option ID: Reporting Missing Default Case In Switch.
StringCOMPILER_PB_UNUSED_LABEL
Compiler option ID: Reporting Unreferenced Label.
StringCOMPILER_PB_INVALID_JAVADOC
Compiler option ID: Reporting Invalid Javadoc Comment.
StringCOMPILER_PB_INVALID_JAVADOC_TAGS
Compiler option ID: Reporting Invalid Javadoc Tags.
StringCOMPILER_PB_INVALID_JAVADOC_TAGS__DEPRECATED_REF
Compiler option ID: Reporting Invalid Javadoc Tags with Deprecated References.
StringCOMPILER_PB_INVALID_JAVADOC_TAGS__NOT_VISIBLE_REF
Compiler option ID: Reporting Invalid Javadoc Tags with Not Visible References.
StringCOMPILER_PB_INVALID_JAVADOC_TAGS_VISIBILITY
Compiler option ID: Visibility Level For Invalid Javadoc Tags.
StringCOMPILER_PB_MISSING_JAVADOC_TAG_DESCRIPTION
Compiler option ID: Reporting missing tag description.
StringCOMPILER_PB_MISSING_JAVADOC_TAGS
Compiler option ID: Reporting Missing Javadoc Tags.
StringCOMPILER_PB_MISSING_JAVADOC_TAGS_VISIBILITY
Compiler option ID: Visibility Level For Missing Javadoc Tags.
StringCOMPILER_PB_MISSING_JAVADOC_TAGS_OVERRIDING
Compiler option ID: Reporting Missing Javadoc Tags on Overriding Methods.
StringCOMPILER_PB_MISSING_JAVADOC_COMMENTS
Compiler option ID: Reporting Missing Javadoc Comments.
StringCOMPILER_PB_MISSING_JAVADOC_COMMENTS_VISIBILITY
Compiler option ID: Visibility Level For Missing Javadoc Comments.
StringCOMPILER_PB_MISSING_JAVADOC_COMMENTS_OVERRIDING
Compiler option ID: Reporting Missing Javadoc Comments on Overriding Methods.
StringCOMPILER_PB_CHAR_ARRAY_IN_STRING_CONCATENATION
Compiler option ID: Reporting Usage of char[] Expressions in String Concatenations.
StringCOMPILER_PB_MAX_PER_UNIT
Compiler option ID: Maximum Number of Problems Reported per Compilation Unit.
StringCOMPILER_PB_PARAMETER_ASSIGNMENT
Compiler option ID: Reporting Parameter Assignment.
StringCOMPILER_PB_MISSING_STATIC_ON_METHOD
Compiler option ID: Reporting a method that qualifies as static, but not declared static.
StringCOMPILER_PB_POTENTIALLY_MISSING_STATIC_ON_METHOD
Compiler option ID: Reporting a method that may qualify as static, but not declared static.
StringCOMPILER_PB_POTENTIALLY_UNCLOSED_CLOSEABLE
Compiler option ID: Reporting a resource that may not be closed properly.
StringCOMPILER_ANNOTATION_NULL_ANALYSIS
Compiler option ID: Annotation-based Null Analysis.
StringCOMPILER_NULLABLE_ANNOTATION_NAME
Compiler option ID: Name of Annotation Type for Nullable Types.
StringCOMPILER_NONNULL_ANNOTATION_NAME
Compiler option ID: Name of Annotation Type for Non-Null Types.
StringCOMPILER_NONNULL_BY_DEFAULT_ANNOTATION_NAME
Compiler option ID: Name of Annotation Type to specify a nullness default for unannotated types.
StringCOMPILER_SOURCE
Compiler option ID: Setting Source Compatibility Mode.
StringCOMPILER_COMPLIANCE
Compiler option ID: Setting Compliance Level.
StringCOMPILER_TASK_PRIORITIES
Compiler option ID: Defining the Automatic Task Priorities.
StringCOMPILER_TASK_TAGS
Compiler option ID: Defining the Automatic Task Tags.
StringCOMPILER_TASK_CASE_SENSITIVE
Compiler option ID: Determining whether task tags are case-sensitive.
StringCOMPILER_PB_FORBIDDEN_REFERENCE
Compiler option ID: Reporting Forbidden Reference to Type with Restricted Access.
StringCOMPILER_PB_DISCOURAGED_REFERENCE
Compiler option ID: Reporting Discouraged Reference to Type with Restricted Access.
StringCOMPILER_PB_SUPPRESS_WARNINGS
Compiler option ID: Determining Effect of @SuppressWarnings.
StringCOMPILER_PB_SUPPRESS_OPTIONAL_ERRORS
Compiler option ID: Further Determining the Effect of @SuppressWarnings if also #COMPILER_PB_SUPPRESS_WARNINGS is enabled.
StringCOMPILER_PB_UNHANDLED_WARNING_TOKEN
Compiler option ID: Reporting Unhandled Warning Token for @SuppressWarnings.
StringCOMPILER_PB_UNUSED_WARNING_TOKEN
Compiler option ID: Reporting Unnecessary @SuppressWarnings.
StringCOMPILER_PB_NULL_REFERENCE
Compiler option ID: Reporting Null Dereference.
StringCOMPILER_PB_POTENTIAL_NULL_REFERENCE
Compiler option ID: Reporting Potential Null Dereference.
StringCOMPILER_PB_REDUNDANT_NULL_CHECK
Compiler option ID: Reporting Redundant Null Check.
StringCOMPILER_PB_MISSING_SYNCHRONIZED_ON_INHERITED_METHOD
Compiler option ID: Reporting Missing Synchronized Modifier On Inherited Method.
StringCOMPILER_PB_UNUSED_OBJECT_ALLOCATION
Compiler option ID: Reporting Allocation of an Unused Object.
StringCOMPILER_PB_REDUNDANT_TYPE_ARGUMENTS
Compiler option ID: Reporting redundant specification of type arguments in class instance creation expressions.
StringCORE_JAVA_BUILD_ORDER
Core option ID: Computing Project Build Order.
StringCORE_JAVA_BUILD_RESOURCE_COPY_FILTER
Core option ID: Specifying Filters for Resource Copying Control.
StringCORE_JAVA_BUILD_DUPLICATE_RESOURCE
Core option ID: Reporting Duplicate Resources.
StringCORE_JAVA_BUILD_CLEAN_OUTPUT_FOLDER
Core option ID: Cleaning Output Folder(s).
StringCORE_JAVA_BUILD_RECREATE_MODIFIED_CLASS_FILES_IN_OUTPUT_FOLDER
Core option ID: Recreate Modified class files in Output Folder.
StringCORE_INCOMPLETE_CLASSPATH
Core option ID: Reporting Incomplete Classpath.
StringCORE_CIRCULAR_CLASSPATH
Core option ID: Reporting Classpath Cycle.
StringCORE_INCOMPATIBLE_JDK_LEVEL
Core option ID: Reporting Incompatible JDK Level for Required Binaries.
StringCORE_JAVA_BUILD_INVALID_CLASSPATH
Core option ID: Abort if Invalid Classpath.
StringCORE_ENCODING
Core option ID: Default Source Encoding Format.
StringCORE_ENABLE_CLASSPATH_EXCLUSION_PATTERNS
Core option ID: Enabling Usage of Classpath Exclusion Patterns.
StringCORE_ENABLE_CLASSPATH_MULTIPLE_OUTPUT_LOCATIONS
Core option ID: Enabling Usage of Classpath Multiple Output Locations.
StringCORE_OUTPUT_LOCATION_OVERLAPPING_ANOTHER_SOURCE
Core option ID: Reporting an output location overlapping another source location.
StringTIMEOUT_FOR_PARAMETER_NAME_FROM_ATTACHED_JAVADOC
Core option ID: Set the timeout value for retrieving the method's parameter names from javadoc.
StringFORMATTER_LINE_SPLIT
StringFORMATTER_TAB_CHAR
StringFORMATTER_TAB_SIZE
StringCODEASSIST_VISIBILITY_CHECK
Code assist option ID: Activate Visibility Sensitive Completion.
StringCODEASSIST_DEPRECATION_CHECK
Code assist option ID: Activate Deprecation Sensitive Completion.
StringCODEASSIST_CAMEL_CASE_MATCH
Code assist option ID: Activate Camel Case Sensitive Completion.
StringCODEASSIST_IMPLICIT_QUALIFICATION
Code assist option ID: Automatic Qualification of Implicit Members.
StringCODEASSIST_FIELD_PREFIXES
Code assist option ID: Define the Prefixes for Field Name.
StringCODEASSIST_STATIC_FIELD_PREFIXES
Code assist option ID: Define the Prefixes for Static Field Name.
StringCODEASSIST_STATIC_FINAL_FIELD_PREFIXES
Code assist option ID: Define the Prefixes for Static Final Field Name.
StringCODEASSIST_LOCAL_PREFIXES
Code assist option ID: Define the Prefixes for Local Variable Name.
StringCODEASSIST_ARGUMENT_PREFIXES
Code assist option ID: Define the Prefixes for Argument Name.
StringCODEASSIST_FIELD_SUFFIXES
Code assist option ID: Define the Suffixes for Field Name.
StringCODEASSIST_STATIC_FIELD_SUFFIXES
Code assist option ID: Define the Suffixes for Static Field Name.
StringCODEASSIST_STATIC_FINAL_FIELD_SUFFIXES
Code assist option ID: Define the Suffixes for Static Final Field Name.
StringCODEASSIST_LOCAL_SUFFIXES
Code assist option ID: Define the Suffixes for Local Variable Name.
StringCODEASSIST_ARGUMENT_SUFFIXES
Code assist option ID: Define the Suffixes for Argument Name.
StringCODEASSIST_FORBIDDEN_REFERENCE_CHECK
Code assist option ID: Activate Forbidden Reference Sensitive Completion.
StringCODEASSIST_DISCOURAGED_REFERENCE_CHECK
Code assist option ID: Activate Discouraged Reference Sensitive Completion.
StringCODEASSIST_SUGGEST_STATIC_IMPORTS
Code assist option ID: Activate Suggestion of Static Import.
StringDEFAULT_TASK_TAGS
Configurable option value: .
StringDEFAULT_TASK_PRIORITIES
Configurable option value: .
StringGENERATE
Configurable option value: .
StringPRESERVE
Configurable option value: .
StringCOMPILER_TASK_PRIORITY_HIGH
Configurable option value for #COMPILER_TASK_PRIORITIES : .
StringCOMPILER_TASK_PRIORITY_LOW
Configurable option value for #COMPILER_TASK_PRIORITIES : .
StringVERSION_1_1
Configurable option value: .
StringVERSION_1_2
Configurable option value: .
StringVERSION_1_3
Configurable option value: .
StringVERSION_1_4
Configurable option value: .
StringVERSION_1_5
Configurable option value: .
StringVERSION_1_6
Configurable option value: .
StringVERSION_1_7
Configurable option value: .
StringVERSION_1_8
Configurable option value: .
StringVERSION_10
Configurable option value: .
StringVERSION_11
Configurable option value: .
StringVERSION_CLDC_1_1
Configurable option value: .
StringABORT
Configurable option value: .
StringERROR
Configurable option value: .
StringWARNING
Configurable option value: .
StringIGNORE
Configurable option value: .
StringCOMPUTE
Configurable option value: .
StringINSERT
Configurable option value: .
StringDO_NOT_INSERT
Configurable option value: .
StringTAB
Configurable option value: .
StringSPACE
Configurable option value: .
StringENABLED
Configurable option value: .
StringDISABLED
Configurable option value: .
StringCLEAN
Configurable option value: .
StringPUBLIC
Configurable option value: .
StringCOMPILER_PB_MISSING_JAVADOC_TAG_DESCRIPTION_RETURN_TAG
Configurable option value: .
StringJAVA_SOURCE_CONTENT_TYPE
Value of the content-type for Java source files.

Constructor

JavaCore()
Creates the Java core plug-in.

Method

voidaddElementChangedListener(IElementChangedListener listener, int eventMask)
Adds the given listener for changes to Java elements.
voidaddElementChangedListener(IElementChangedListener listener)
Adds the given listener for changes to Java elements.
voidaddJavaElementMarkerAttributes(Map attributes, IJavaElement element)
Configures the given marker attribute map for the given Java element.
voidaddPreProcessingResourceChangedListener(IResourceChangeListener listener, int eventMask)
Adds the given listener for resource change events of the given types to the Java core.
intcompareJavaVersions(String first, String second)
Compares two given versions of the Java platform.
IJavaElementcreate(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.
IJavaElementcreate(IFile file)
Returns the Java element corresponding to the given file, or null if unable to associate the given file with a Java element.
IJavaElementcreate(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.
IJavaProjectcreate(IProject project)
Returns the Java project corresponding to the given project.
IJavaElementcreate(IResource resource)
Returns the Java element corresponding to the given resource, or null if unable to associate the given resource with a Java element.
IJavaModelcreate(IWorkspaceRoot root)
Returns the Java model.
IJavaElementcreate(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.
IJavaElementcreate(IResource resource, IJavaProject project)
Returns the Java element corresponding to the given file, its project being the given project.
IClassFilecreateClassFileFrom(IFile file)
Creates and returns a class file element for the given .class file.
ICompilationUnitcreateCompilationUnitFrom(IFile file)
Creates and returns a compilation unit element for the given source file (i.e.
IPackageFragmentRootcreateJarPackageFragmentRootFrom(IFile file)
Creates and returns a handle for the given JAR file.
IClasspathContainergetClasspathContainer(IPath containerPath, IJavaProject project)
Answers the project specific value for a given classpath container.
ClasspathContainerInitializergetClasspathContainerInitializer(String containerID)
Helper method finding the classpath container initializer registered for a given classpath container ID or null if none was found while iterating over the contributions to extension point to the extension point "org.eclipse.jdt.core.classpathContainerInitializer".
IPathgetClasspathVariable(final String variableName)
Returns the path held in the given classpath variable.
StringgetClasspathVariableDeprecationMessage(String variableName)
Returns deprecation message of a given classpath variable.
String[]getClasspathVariableNames()
Returns the names of all known classpath variables.
HashtablegetDefaultOptions()
Returns a table of all known configurable options with their default values.
StringgetEncoding()
Returns the workspace root default charset encoding.
IResource[]getGeneratedResources(IRegion region, boolean includesNonJavaResources)
Returns an array that contains the resources generated by the Java builder when building the compilation units contained in the given region.
JavaCoregetJavaCore()
Returns the single instance of the Java core plug-in runtime class.
String[]getJavaLikeExtensions()
Returns the list of known Java-like extensions.
StringgetOption(String optionName)
Helper method for returning one option value only.
StringgetOptionForConfigurableSeverity(int problemID)
Returns the option that can be used to configure the severity of the compiler problem identified by problemID if any, null otherwise.
HashtablegetOptions()
Returns the table of the current options.
PlugingetPlugin()
Returns the single instance of the Java core plug-in runtime class.
IClasspathEntrygetResolvedClasspathEntry(IClasspathEntry entry)
This is a helper method, which returns the resolved classpath entry denoted by a given entry (if it is a variable entry).
IPathgetResolvedVariablePath(IPath variablePath)
Resolve a variable path (helper method).
String[]getUserLibraryNames()
Returns the names of all defined user libraries.
ICompilationUnit[]getWorkingCopies(WorkingCopyOwner owner)
Returns the working copies that have the given owner.
voidinitializeAfterLoad(IProgressMonitor monitor)
Initializes JavaCore internal structures to allow subsequent operations (such as the ones that need a resolved classpath) to run full speed.
booleanisJavaLikeFileName(String fileName)
Returns whether the given file name's extension is a Java-like extension.
booleanisReferencedBy(IJavaElement element, IMarker marker)
Returns whether the given marker references the given Java element.
booleanisReferencedBy(IJavaElement element, IMarkerDelta markerDelta)
Returns whether the given marker delta references the given Java element.
IAccessRulenewAccessRule(IPath filePattern, int kind)
Creates and returns a new access rule with the given file pattern and kind.
IClasspathAttributenewClasspathAttribute(String name, String value)
Creates and returns a new classpath attribute with the given name and the given value.
IClasspathEntrynewContainerEntry(IPath containerPath)
Creates and returns a new classpath entry of kind CPE_CONTAINER for the given path.
IClasspathEntrynewContainerEntry(IPath containerPath, IAccessRule[] accessRules, IClasspathAttribute[] extraAttributes, boolean isExported)
Creates and returns a new classpath entry of kind CPE_CONTAINER for the given path.
IClasspathEntrynewContainerEntry(IPath containerPath, boolean isExported)
Creates and returns a new classpath entry of kind CPE_CONTAINER for the given path.
IClasspathEntrynewLibraryEntry(IPath path, IPath sourceAttachmentPath, IPath sourceAttachmentRootPath)
Creates and returns a new non-exported classpath entry of kind CPE_LIBRARY for the JAR or folder identified by the given absolute path.
IClasspathEntrynewLibraryEntry(IPath path, IPath sourceAttachmentPath, IPath sourceAttachmentRootPath, IAccessRule[] accessRules, IClasspathAttribute[] extraAttributes, boolean isExported)
Creates and returns a new classpath entry of kind CPE_LIBRARY for the JAR or folder identified by the given absolute path.
IClasspathEntrynewLibraryEntry(IPath path, IPath sourceAttachmentPath, IPath sourceAttachmentRootPath, boolean isExported)
Creates and returns a new classpath entry of kind CPE_LIBRARY for the JAR or folder identified by the given absolute path.
IClasspathEntrynewProjectEntry(IPath path, IAccessRule[] accessRules, boolean combineAccessRules, IClasspathAttribute[] extraAttributes, boolean isExported)
Creates and returns a new classpath entry of kind CPE_PROJECT for the project identified by the given absolute path.
IClasspathEntrynewProjectEntry(IPath path, boolean isExported)
Creates and returns a new classpath entry of kind CPE_PROJECT for the project identified by the given absolute path.
IClasspathEntrynewProjectEntry(IPath path)
Creates and returns a new non-exported classpath entry of kind CPE_PROJECT for the project identified by the given absolute path.
IRegionnewRegion()
Returns a new empty region.
IClasspathEntrynewSourceEntry(IPath path)
Creates and returns a new classpath entry of kind CPE_SOURCE for all files in the project's source folder identified by the given absolute workspace-relative path.
IClasspathEntrynewSourceEntry(IPath path, IPath[] inclusionPatterns, IPath[] exclusionPatterns, IPath specificOutputLocation, IClasspathAttribute[] extraAttributes)
Creates and returns a new classpath entry of kind CPE_SOURCE for the project's source folder identified by the given absolute workspace-relative path using the given inclusion and exclusion patterns to determine which source files are included, and the given output path to control the output location of generated files.
IClasspathEntrynewSourceEntry(IPath path, IPath[] exclusionPatterns, IPath specificOutputLocation)
Creates and returns a new classpath entry of kind CPE_SOURCE for the project's source folder identified by the given absolute workspace-relative path but excluding all source files with paths matching any of the given patterns, and associated with a specific output location (that is, ".class" files are not going to the project default output location).
IClasspathEntrynewSourceEntry(IPath path, IPath[] exclusionPatterns)
Creates and returns a new classpath entry of kind CPE_SOURCE for the project's source folder identified by the given absolute workspace-relative path but excluding all source files with paths matching any of the given patterns.
IClasspathEntrynewSourceEntry(IPath path, IPath[] inclusionPatterns, IPath[] exclusionPatterns, IPath specificOutputLocation)
Creates and returns a new classpath entry of kind CPE_SOURCE for the project's source folder identified by the given absolute workspace-relative path but excluding all source files with paths matching any of the given patterns, and associated with a specific output location (that is, ".class" files are not going to the project default output location).
ITypeHierarchynewTypeHierarchy(IRegion region, WorkingCopyOwner owner, IProgressMonitor monitor)
Creates and returns a type hierarchy for all types in the given region, considering subtypes within that region and considering types in the working copies with the given owner.
IClasspathEntrynewVariableEntry(IPath variablePath, IPath variableSourceAttachmentPath, IPath sourceAttachmentRootPath)
Creates and returns a new non-exported classpath entry of kind CPE_VARIABLE for the given path.
IClasspathEntrynewVariableEntry(IPath variablePath, IPath variableSourceAttachmentPath, IPath variableSourceAttachmentRootPath, IAccessRule[] accessRules, IClasspathAttribute[] extraAttributes, boolean isExported)
Creates and returns a new classpath entry of kind CPE_VARIABLE for the given path.
IClasspathEntrynewVariableEntry(IPath variablePath, IPath variableSourceAttachmentPath, IPath variableSourceAttachmentRootPath, boolean isExported)
Creates and returns a new classpath entry of kind CPE_VARIABLE for the given path.
voidremoveClasspathVariable(String variableName, IProgressMonitor monitor)
Removed the given classpath variable.
voidremoveElementChangedListener(IElementChangedListener listener)
Removes the given element changed listener.
StringremoveJavaLikeExtension(String fileName)
Removes the file extension from the given file name, if it has a Java-like file extension.
voidremovePreProcessingResourceChangedListener(IResourceChangeListener listener)
Removes the given pre-processing resource changed listener.
voidrun(IWorkspaceRunnable action, ISchedulingRule rule, IProgressMonitor monitor)
Runs the given action as an atomic Java model operation.
voidrun(IWorkspaceRunnable action, IProgressMonitor monitor)
Runs the given action as an atomic Java model operation.
voidsetClasspathContainer(IPath containerPath, IJavaProject[] affectedProjects, IClasspathContainer[] respectiveContainers, IProgressMonitor monitor)
Bind a container reference path to some actual containers (IClasspathContainer).
voidsetClasspathVariable(String variableName, IPath path, IProgressMonitor monitor)
Sets the value of the given classpath variable.
voidsetClasspathVariable(String variableName, IPath path)
Sets the value of the given classpath variable.
voidsetClasspathVariables(String[] variableNames, IPath[] paths, IProgressMonitor monitor)
Sets the values of all the given classpath variables at once.
voidsetComplianceOptions(String compliance, Map options)
Sets the default compiler options inside the given options map according to the given compliance.
voidsetOptions(Hashtable newOptions)
Sets the current table of options.