Java Doc for JavaProject.java in  » IDE-Eclipse » jdt » org » eclipse » jdt » internal » core » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Eclipse » jdt » org.eclipse.jdt.internal.core 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.eclipse.jdt.internal.core.JavaElement
   org.eclipse.jdt.internal.core.Openable
      org.eclipse.jdt.internal.core.JavaProject

All known Subclasses:   org.eclipse.jdt.internal.core.ExternalJavaProject,
JavaProject
public class JavaProject extends Openable implements IJavaProject,IProjectNature,SuffixConstants(Code)
Handle for a Java Project.

A Java Project internally maintains a devpath that corresponds to the project's classpath. The classpath may include source folders from the current project; jars in the current project, other projects, and the local file system; and binary folders (output location) of other projects. The Java Model presents source elements corresponding to output .class files in other projects, and thus uses the devpath rather than the classpath (which is really a compilation path). The devpath mimics the classpath, except has source folder entries in place of output locations in external projects.

Each JavaProject has a NameLookup facility that locates elements on by name, based on the devpath.
See Also:   IJavaProject



Field Summary
final public static  StringCLASSPATH_FILENAME
    
final public static  StringDEFAULT_PREFERENCES_DIRNAME
    
final public static  IClasspathEntry[]INVALID_CLASSPATH
     Value of the project's raw classpath if the .classpath file contains invalid entries.
final protected static  booleanIS_CASE_SENSITIVE
     Whether the underlying file system is case sensitive.
final public static  StringJAVA_CORE_PREFS_FILE
    
final protected static  String[]NO_PREREQUISITES
     An empty array of strings indicating that a project doesn't have any prerequesite projects.
protected  IProjectproject
    

Constructor Summary
public  JavaProject()
     Constructor needed for IProject.getNature() and IProject.addNature().
public  JavaProject(IProject project, JavaElement parent)
    

Method Summary
protected  voidaddToBuildSpec(String builderID)
     Adds a builder to the build spec for the given project.
public static  booleanareClasspathsEqual(IClasspathEntry[] firstClasspath, IClasspathEntry[] secondClasspath, IPath firstOutputLocation, IPath secondOutputLocation)
    
protected  booleanbuildStructure(OpenableElementInfo info, IProgressMonitor pm, Map newElements, IResource underlyingResource)
    
public static  IPathcanonicalizedPath(IPath externalPath)
     Returns a canonicalized path from the given external path.
public  voidcomputeChildren(JavaProjectElementInfo info)
     Computes the collection of package fragment roots (local ones) and set it on the given info.
public  IPackageFragmentRoot[]computePackageFragmentRoots(IClasspathEntry resolvedEntry)
     Computes the package fragment roots identified by the given entry.
public  voidcomputePackageFragmentRoots(IClasspathEntry resolvedEntry, ObjectVector accumulatedRoots, HashSet rootIDs, IClasspathEntry referringEntry, boolean checkExistency, boolean retrieveExportedRoots, Map rootToResolvedEntries)
     Returns the package fragment roots identified by the given entry.
public  IPackageFragmentRoot[]computePackageFragmentRoots(IClasspathEntry[] resolvedClasspath, boolean retrieveExportedRoots, Map rootToResolvedEntries)
     Returns (local/all) the package fragment roots identified by the given project's classpath.
public  voidcomputePackageFragmentRoots(IClasspathEntry[] resolvedClasspath, ObjectVector accumulatedRoots, HashSet rootIDs, IClasspathEntry referringEntry, boolean checkExistency, boolean retrieveExportedRoots, Map rootToResolvedEntries)
     Returns (local/all) the package fragment roots identified by the given project's classpath.
public  StringcomputeSharedPropertyFileName(QualifiedName qName)
    
public  voidconfigure()
     Configure the project with Java nature.
public  booleancontains(IResource resource)
    
public  voidcreateClasspathProblemMarker(IJavaModelStatus status)
    
protected  ObjectcreateElementInfo()
     Returns a new element info for this element.
public  IClasspathEntry[]decodeClasspath(String xmlClasspath, Map unknownElements)
    
public  IClasspathEntrydecodeClasspathEntry(String encodedEntry)
    
public  voiddeconfigure()
     /** Removes the Java nature from the project.
protected  IClasspathEntry[]defaultClasspath()
     Returns a default class path.
protected  IPathdefaultOutputLocation()
     Returns a default output location.
protected  StringencodeClasspath(IClasspathEntry[] classpath, IPath outputLocation, boolean indent, Map unknownElements)
     Returns the XML String encoding of the class path.
public  StringencodeClasspathEntry(IClasspathEntry classpathEntry)
    
public  booleanequals(Object o)
     Returns true if this handle represents the same Java project as the given handle.
public  booleanexists()
    
public  IJavaElementfindElement(IPath path)
    
public  IJavaElementfindElement(IPath path, WorkingCopyOwner owner)
    
public  IPackageFragmentfindPackageFragment(IPath path)
    
public  IPackageFragmentRootfindPackageFragmentRoot(IPath path)
    
public  IPackageFragmentRootfindPackageFragmentRoot0(IPath path)
    
public  IPackageFragmentRoot[]findPackageFragmentRoots(IClasspathEntry entry)
    
public  ITypefindType(String fullyQualifiedName)
    
public  ITypefindType(String fullyQualifiedName, IProgressMonitor progressMonitor)
    
 ITypefindType(String fullyQualifiedName, NameLookup lookup, boolean considerSecondaryTypes, IProgressMonitor progressMonitor)
    
public  ITypefindType(String packageName, String typeQualifiedName)
    
public  ITypefindType(String packageName, String typeQualifiedName, IProgressMonitor progressMonitor)
    
 ITypefindType(String packageName, String typeQualifiedName, NameLookup lookup, boolean considerSecondaryTypes, IProgressMonitor progressMonitor)
    
public  ITypefindType(String packageName, String typeQualifiedName, WorkingCopyOwner owner)
    
public  ITypefindType(String packageName, String typeQualifiedName, WorkingCopyOwner owner, IProgressMonitor progressMonitor)
    
public  ITypefindType(String fullyQualifiedName, WorkingCopyOwner owner)
    
public  ITypefindType(String fullyQualifiedName, WorkingCopyOwner owner, IProgressMonitor progressMonitor)
    
protected  voidflushClasspathProblemMarkers(boolean flushCycleMarkers, boolean flushClasspathFormatMarkers)
    
public  IPath[]getAccessRestrictions(String optionName)
    
public  IPackageFragmentRoot[]getAllPackageFragmentRoots()
    
public  IPackageFragmentRoot[]getAllPackageFragmentRoots(Map rootToResolvedEntries)
    
public  IClasspathEntrygetClasspathEntryFor(IPath path)
     Returns the classpath entry that refers to the given path or null if there is no reference to the path.
public  IMarkergetCycleMarker()
    
public  IEclipsePreferencesgetEclipsePreferences()
     Returns the project custom preference pool.
public  StringgetElementName()
    
public  intgetElementType()
    
public  IClasspathEntry[]getExpandedClasspath()
     This is a helper method returning the expanded classpath for the project, as a list of classpath entries, where all classpath variable entries have been resolved and substituted with their final target entries.
public  IPackageFragmentRootgetFolderPackageFragmentRoot(IPath path)
     The path is known to match a source/library folder entry.
public  IJavaElementgetHandleFromMemento(String token, MementoTokenizer memento, WorkingCopyOwner owner)
    
protected  chargetHandleMementoDelimiter()
     Returns the char that marks the start of this handles contribution to a memento.
protected  JavaProjectElementInfogetJavaProjectElementInfo()
     Convenience method that returns the specific type of info for a Java project.
public  Object[]getNonJavaResources()
     Returns an array of non-java resources contained in the receiver.
public  StringgetOption(String optionName, boolean inheritJavaCoreOptions)
    
public  MapgetOptions(boolean inheritJavaCoreOptions)
    
public  IPathgetOutputLocation()
    
public  IPackageFragmentRootgetPackageFragmentRoot(IPath path)
    
Parameters:
  path - IPath A handle to the package fragment root identified by the given path.This method is handle-only and the element may or may not exist.
public  IPackageFragmentRootgetPackageFragmentRoot(IResource resource)
    
public  IPackageFragmentRootgetPackageFragmentRoot(String jarPath)
    
public  IPackageFragmentRootgetPackageFragmentRoot0(IPath jarPath)
    
public  IPackageFragmentRoot[]getPackageFragmentRoots()
    
public  IPackageFragmentRoot[]getPackageFragmentRoots(IClasspathEntry entry)
    
public  IPackageFragment[]getPackageFragments()
    
public  IPackageFragment[]getPackageFragmentsInRoots(IPackageFragmentRoot[] roots)
     Returns all the package fragments found in the specified package fragment roots.
public  IPathgetPath()
    
public  JavaModelManager.PerProjectInfogetPerProjectInfo()
    
public  PreferencesgetPreferences()
     Returns the project custom preference pool.
public  IProjectgetProject()
    
public  ProjectCachegetProjectCache()
    
public  IClasspathEntry[]getRawClasspath()
    
public  String[]getRequiredProjectNames()
    
public  IClasspathEntry[]getResolvedClasspath()
    
public  IClasspathEntry[]getResolvedClasspath(boolean ignoreUnresolvedEntry)
    
public  IResourcegetResource()
    
public  StringgetSharedProperty(String key)
     Retrieve a shared property on a project.
public  SourceMappergetSourceMapper()
    
public  IResourcegetUnderlyingResource()
    
public  booleanhasBuildState()
    
public  booleanhasClasspathCycle(IClasspathEntry[] preferredClasspath)
    
public  booleanhasCycleMarker()
    
public static  booleanhasJavaNature(IProject project)
     Returns true if the given project is accessible and it has a java nature, otherwise false.
public  booleanhasSource()
     Answers true if the project potentially contains any source.
public  inthashCode()
    
public  booleanisOnClasspath(IJavaElement element)
    
public  booleanisOnClasspath(IResource resource)
    
public  IEvaluationContextnewEvaluationContext()
    
public  NameLookupnewNameLookup(ICompilationUnit[] workingCopies)
    
public  NameLookupnewNameLookup(WorkingCopyOwner owner)
    
public  SearchableEnvironmentnewSearchableNameEnvironment(ICompilationUnit[] workingCopies)
    
public  SearchableEnvironmentnewSearchableNameEnvironment(WorkingCopyOwner owner)
    
public  ITypeHierarchynewTypeHierarchy(IRegion region, IProgressMonitor monitor)
    
public  ITypeHierarchynewTypeHierarchy(IRegion region, WorkingCopyOwner owner, IProgressMonitor monitor)
    
public  ITypeHierarchynewTypeHierarchy(IType type, IRegion region, IProgressMonitor monitor)
    
public  ITypeHierarchynewTypeHierarchy(IType type, IRegion region, WorkingCopyOwner owner, IProgressMonitor monitor)
    
public  String[]projectPrerequisites(IClasspathEntry[] entries)
    
public  IClasspathEntry[]readFileEntriesWithException(Map unknownElements)
    
public  IPathreadOutputLocation()
    
public  IClasspathEntry[]readRawClasspath()
    
protected  voidremoveFromBuildSpec(String builderID)
     Removes the given builder from the build spec for the given project.
public  voidresetCaches()
    
public  IClasspathEntry[]resolveClasspath(IClasspathEntry[] rawClasspath)
    
public  voidresolveClasspath(PerProjectInfo perProjectInfo)
    
public  StringrootID()
    
public  booleansaveClasspath(IClasspathEntry[] newClasspath, IPath newOutputLocation)
     Saves the classpath in a shareable format (VCM-wise) only when necessary, that is, if it is semantically different from the existing one in file.
public  voidsetOption(String optionName, String optionValue)
    
public  voidsetOptions(Map newOptions)
    
public  voidsetOutputLocation(IPath path, IProgressMonitor monitor)
    
public  voidsetProject(IProject project)
     Sets the underlying kernel project of this Java project, and fills in its parent and name.
public  voidsetRawClasspath(IClasspathEntry[] entries, boolean canModifyResources, IProgressMonitor monitor)
    
public  voidsetRawClasspath(IClasspathEntry[] newRawClasspath, IPath newOutputLocation, boolean canModifyResources, IProgressMonitor monitor)
    
public  voidsetRawClasspath(IClasspathEntry[] entries, IPath outputLocation, IProgressMonitor monitor)
    
public  voidsetRawClasspath(IClasspathEntry[] entries, IProgressMonitor monitor)
    
public  voidsetSharedProperty(String key, String value)
     Record a shared persistent property onto a project. Note that it is orthogonal to IResource persistent properties, and client code has to decide which form of storage to use appropriately.
public  voidupdateCycleParticipants(ArrayList prereqChain, HashSet cycleParticipants, IWorkspaceRoot workspaceRoot, HashSet traversed, Map preferredClasspaths)
    
public  voidupdatePackageFragmentRoots()
     Reset the collection of package fragment roots (local ones) - only if opened.
public static  voidvalidateCycles(Map preferredClasspaths)
    

Field Detail
CLASSPATH_FILENAME
final public static String CLASSPATH_FILENAME(Code)
Name of file containing project classpath



DEFAULT_PREFERENCES_DIRNAME
final public static String DEFAULT_PREFERENCES_DIRNAME(Code)
Name of directory containing preferences file



INVALID_CLASSPATH
final public static IClasspathEntry[] INVALID_CLASSPATH(Code)
Value of the project's raw classpath if the .classpath file contains invalid entries.



IS_CASE_SENSITIVE
final protected static boolean IS_CASE_SENSITIVE(Code)
Whether the underlying file system is case sensitive.



JAVA_CORE_PREFS_FILE
final public static String JAVA_CORE_PREFS_FILE(Code)
Extension for file containing custom project preferences



NO_PREREQUISITES
final protected static String[] NO_PREREQUISITES(Code)
An empty array of strings indicating that a project doesn't have any prerequesite projects.



project
protected IProject project(Code)
The platform project this IJavaProject is based on




Constructor Detail
JavaProject
public JavaProject()(Code)
Constructor needed for IProject.getNature() and IProject.addNature().
See Also:   JavaProject.setProject(IProject)



JavaProject
public JavaProject(IProject project, JavaElement parent)(Code)




Method Detail
addToBuildSpec
protected void addToBuildSpec(String builderID) throws CoreException(Code)
Adds a builder to the build spec for the given project.



areClasspathsEqual
public static boolean areClasspathsEqual(IClasspathEntry[] firstClasspath, IClasspathEntry[] secondClasspath, IPath firstOutputLocation, IPath secondOutputLocation)(Code)



buildStructure
protected boolean buildStructure(OpenableElementInfo info, IProgressMonitor pm, Map newElements, IResource underlyingResource) throws JavaModelException(Code)

See Also:   Openable



canonicalizedPath
public static IPath canonicalizedPath(IPath externalPath)(Code)
Returns a canonicalized path from the given external path. Note that the return path contains the same number of segments and it contains a device only if the given path contained one.
Parameters:
  externalPath - IPath
See Also:   java.io.File
See Also:    for the definition of a canonicalized path IPath



computeChildren
public void computeChildren(JavaProjectElementInfo info) throws JavaModelException(Code)
Computes the collection of package fragment roots (local ones) and set it on the given info. Need to check *all* package fragment roots in order to reset NameLookup
Parameters:
  info - JavaProjectElementInfo
throws:
  JavaModelException -



computePackageFragmentRoots
public IPackageFragmentRoot[] computePackageFragmentRoots(IClasspathEntry resolvedEntry)(Code)
Computes the package fragment roots identified by the given entry. Only works with resolved entry
Parameters:
  resolvedEntry - IClasspathEntry IPackageFragmentRoot[]



computePackageFragmentRoots
public void computePackageFragmentRoots(IClasspathEntry resolvedEntry, ObjectVector accumulatedRoots, HashSet rootIDs, IClasspathEntry referringEntry, boolean checkExistency, boolean retrieveExportedRoots, Map rootToResolvedEntries) throws JavaModelException(Code)
Returns the package fragment roots identified by the given entry. In case it refers to a project, it will follow its classpath so as to find exported roots as well. Only works with resolved entry
Parameters:
  resolvedEntry - IClasspathEntry
Parameters:
  accumulatedRoots - ObjectVector
Parameters:
  rootIDs - HashSet
Parameters:
  referringEntry - the CP entry (project) referring to this entry, or null if initial project
Parameters:
  checkExistency - boolean
Parameters:
  retrieveExportedRoots - boolean
throws:
  JavaModelException -



computePackageFragmentRoots
public IPackageFragmentRoot[] computePackageFragmentRoots(IClasspathEntry[] resolvedClasspath, boolean retrieveExportedRoots, Map rootToResolvedEntries) throws JavaModelException(Code)
Returns (local/all) the package fragment roots identified by the given project's classpath. Note: this follows project classpath references to find required project contributions, eliminating duplicates silently. Only works with resolved entries
Parameters:
  resolvedClasspath - IClasspathEntry[]
Parameters:
  retrieveExportedRoots - boolean IPackageFragmentRoot[]
throws:
  JavaModelException -



computePackageFragmentRoots
public void computePackageFragmentRoots(IClasspathEntry[] resolvedClasspath, ObjectVector accumulatedRoots, HashSet rootIDs, IClasspathEntry referringEntry, boolean checkExistency, boolean retrieveExportedRoots, Map rootToResolvedEntries) throws JavaModelException(Code)
Returns (local/all) the package fragment roots identified by the given project's classpath. Note: this follows project classpath references to find required project contributions, eliminating duplicates silently. Only works with resolved entries
Parameters:
  resolvedClasspath - IClasspathEntry[]
Parameters:
  accumulatedRoots - ObjectVector
Parameters:
  rootIDs - HashSet
Parameters:
  referringEntry - project entry referring to this CP or null if initial project
Parameters:
  checkExistency - boolean
Parameters:
  retrieveExportedRoots - boolean
throws:
  JavaModelException -



computeSharedPropertyFileName
public String computeSharedPropertyFileName(QualifiedName qName)(Code)
Compute the file name to use for a given shared property
Parameters:
  qName - QualifiedName String



configure
public void configure() throws CoreException(Code)
Configure the project with Java nature.



contains
public boolean contains(IResource resource)(Code)



createClasspathProblemMarker
public void createClasspathProblemMarker(IJavaModelStatus status)(Code)
Record a new marker denoting a classpath problem



createElementInfo
protected Object createElementInfo()(Code)
Returns a new element info for this element.



decodeClasspath
public IClasspathEntry[] decodeClasspath(String xmlClasspath, Map unknownElements) throws IOException, AssertionFailedException(Code)



decodeClasspathEntry
public IClasspathEntry decodeClasspathEntry(String encodedEntry)(Code)



deconfigure
public void deconfigure() throws CoreException(Code)
/** Removes the Java nature from the project.



defaultClasspath
protected IClasspathEntry[] defaultClasspath()(Code)
Returns a default class path. This is the root of the project



defaultOutputLocation
protected IPath defaultOutputLocation()(Code)
Returns a default output location. This is the project bin folder



encodeClasspath
protected String encodeClasspath(IClasspathEntry[] classpath, IPath outputLocation, boolean indent, Map unknownElements) throws JavaModelException(Code)
Returns the XML String encoding of the class path.



encodeClasspathEntry
public String encodeClasspathEntry(IClasspathEntry classpathEntry)(Code)



equals
public boolean equals(Object o)(Code)
Returns true if this handle represents the same Java project as the given handle. Two handles represent the same project if they are identical or if they represent a project with the same underlying resource and occurrence counts.
See Also:   JavaElement.equals(Object)



exists
public boolean exists()(Code)



findElement
public IJavaElement findElement(IPath path) throws JavaModelException(Code)

See Also:   IJavaProject.findElement(IPath)



findElement
public IJavaElement findElement(IPath path, WorkingCopyOwner owner) throws JavaModelException(Code)

See Also:   IJavaProject.findElement(IPathWorkingCopyOwner)



findPackageFragment
public IPackageFragment findPackageFragment(IPath path) throws JavaModelException(Code)

See Also:   IJavaProject



findPackageFragmentRoot
public IPackageFragmentRoot findPackageFragmentRoot(IPath path) throws JavaModelException(Code)

See Also:   IJavaProject



findPackageFragmentRoot0
public IPackageFragmentRoot findPackageFragmentRoot0(IPath path) throws JavaModelException(Code)



findPackageFragmentRoots
public IPackageFragmentRoot[] findPackageFragmentRoots(IClasspathEntry entry)(Code)

See Also:   IJavaProject



findType
public IType findType(String fullyQualifiedName) throws JavaModelException(Code)

See Also:   IJavaProject.findType(String)



findType
public IType findType(String fullyQualifiedName, IProgressMonitor progressMonitor) throws JavaModelException(Code)

See Also:   IJavaProject.findType(StringIProgressMonitor)



findType
IType findType(String fullyQualifiedName, NameLookup lookup, boolean considerSecondaryTypes, IProgressMonitor progressMonitor) throws JavaModelException(Code)



findType
public IType findType(String packageName, String typeQualifiedName) throws JavaModelException(Code)

See Also:   IJavaProject.findType(StringString)



findType
public IType findType(String packageName, String typeQualifiedName, IProgressMonitor progressMonitor) throws JavaModelException(Code)

See Also:   IJavaProject.findType(StringStringIProgressMonitor)



findType
IType findType(String packageName, String typeQualifiedName, NameLookup lookup, boolean considerSecondaryTypes, IProgressMonitor progressMonitor) throws JavaModelException(Code)



findType
public IType findType(String packageName, String typeQualifiedName, WorkingCopyOwner owner) throws JavaModelException(Code)

See Also:   IJavaProject.findType(StringStringWorkingCopyOwner)



findType
public IType findType(String packageName, String typeQualifiedName, WorkingCopyOwner owner, IProgressMonitor progressMonitor) throws JavaModelException(Code)

See Also:   IJavaProject.findType(StringStringWorkingCopyOwnerIProgressMonitor)



findType
public IType findType(String fullyQualifiedName, WorkingCopyOwner owner) throws JavaModelException(Code)

See Also:   IJavaProject.findType(StringWorkingCopyOwner)



findType
public IType findType(String fullyQualifiedName, WorkingCopyOwner owner, IProgressMonitor progressMonitor) throws JavaModelException(Code)

See Also:   IJavaProject.findType(StringWorkingCopyOwnerIProgressMonitor)



flushClasspathProblemMarkers
protected void flushClasspathProblemMarkers(boolean flushCycleMarkers, boolean flushClasspathFormatMarkers)(Code)
Remove all markers denoting classpath problems



getAccessRestrictions
public IPath[] getAccessRestrictions(String optionName)(Code)
Returns the set of patterns corresponding to this project visibility given rules an array of IPath or null if none



getAllPackageFragmentRoots
public IPackageFragmentRoot[] getAllPackageFragmentRoots() throws JavaModelException(Code)

See Also:   IJavaProject



getAllPackageFragmentRoots
public IPackageFragmentRoot[] getAllPackageFragmentRoots(Map rootToResolvedEntries) throws JavaModelException(Code)



getClasspathEntryFor
public IClasspathEntry getClasspathEntryFor(IPath path) throws JavaModelException(Code)
Returns the classpath entry that refers to the given path or null if there is no reference to the path.
Parameters:
  path - IPath IClasspathEntry
throws:
  JavaModelException -



getCycleMarker
public IMarker getCycleMarker()(Code)



getEclipsePreferences
public IEclipsePreferences getEclipsePreferences()(Code)
Returns the project custom preference pool. Project preferences may include custom encoding. IEclipsePreferences or null if the projectdoes not have a java nature.



getElementName
public String getElementName()(Code)



getElementType
public int getElementType()(Code)

See Also:   IJavaElement



getExpandedClasspath
public IClasspathEntry[] getExpandedClasspath() throws JavaModelException(Code)
This is a helper method returning the expanded classpath for the project, as a list of classpath entries, where all classpath variable entries have been resolved and substituted with their final target entries. All project exports have been appended to project entries. IClasspathEntry[]
throws:
  JavaModelException -



getFolderPackageFragmentRoot
public IPackageFragmentRoot getFolderPackageFragmentRoot(IPath path)(Code)
The path is known to match a source/library folder entry.
Parameters:
  path - IPath IPackageFragmentRoot



getHandleFromMemento
public IJavaElement getHandleFromMemento(String token, MementoTokenizer memento, WorkingCopyOwner owner)(Code)



getHandleMementoDelimiter
protected char getHandleMementoDelimiter()(Code)
Returns the char that marks the start of this handles contribution to a memento.



getJavaProjectElementInfo
protected JavaProjectElementInfo getJavaProjectElementInfo() throws JavaModelException(Code)
Convenience method that returns the specific type of info for a Java project.



getNonJavaResources
public Object[] getNonJavaResources() throws JavaModelException(Code)
Returns an array of non-java resources contained in the receiver.



getOption
public String getOption(String optionName, boolean inheritJavaCoreOptions)(Code)

See Also:   org.eclipse.jdt.core.IJavaProject.getOption(Stringboolean)



getOptions
public Map getOptions(boolean inheritJavaCoreOptions)(Code)

See Also:   org.eclipse.jdt.core.IJavaProject.getOptions(boolean)



getOutputLocation
public IPath getOutputLocation() throws JavaModelException(Code)

See Also:   IJavaProject



getPackageFragmentRoot
public IPackageFragmentRoot getPackageFragmentRoot(IPath path)(Code)

Parameters:
  path - IPath A handle to the package fragment root identified by the given path.This method is handle-only and the element may or may not exist. Returnsnull if unable to generate a handle from the path (for example,an absolute path that has less than 1 segment. The path may be relative orabsolute.



getPackageFragmentRoot
public IPackageFragmentRoot getPackageFragmentRoot(IResource resource)(Code)

See Also:   IJavaProject



getPackageFragmentRoot
public IPackageFragmentRoot getPackageFragmentRoot(String jarPath)(Code)

See Also:   IJavaProject



getPackageFragmentRoot0
public IPackageFragmentRoot getPackageFragmentRoot0(IPath jarPath)(Code)



getPackageFragmentRoots
public IPackageFragmentRoot[] getPackageFragmentRoots() throws JavaModelException(Code)

See Also:   IJavaProject



getPackageFragmentRoots
public IPackageFragmentRoot[] getPackageFragmentRoots(IClasspathEntry entry)(Code)

See Also:   IJavaProject



getPackageFragments
public IPackageFragment[] getPackageFragments() throws JavaModelException(Code)

See Also:   IJavaProject



getPackageFragmentsInRoots
public IPackageFragment[] getPackageFragmentsInRoots(IPackageFragmentRoot[] roots)(Code)
Returns all the package fragments found in the specified package fragment roots.
Parameters:
  roots - IPackageFragmentRoot[] IPackageFragment[]



getPath
public IPath getPath()(Code)

See Also:   IJavaElement



getPerProjectInfo
public JavaModelManager.PerProjectInfo getPerProjectInfo() throws JavaModelException(Code)



getPreferences
public Preferences getPreferences()(Code)
Returns the project custom preference pool. Project preferences may include custom encoding. PreferencesJavaProject.getEclipsePreferences()
See Also:    bug 59258
See Also:   TODO (frederic) remove for 3.1...



getProject
public IProject getProject()(Code)

See Also:   IJavaProject.getProject



getProjectCache
public ProjectCache getProjectCache() throws JavaModelException(Code)



getRawClasspath
public IClasspathEntry[] getRawClasspath() throws JavaModelException(Code)

See Also:   IJavaProject



getRequiredProjectNames
public String[] getRequiredProjectNames() throws JavaModelException(Code)

See Also:   IJavaProject.getRequiredProjectNames



getResolvedClasspath
public IClasspathEntry[] getResolvedClasspath() throws JavaModelException(Code)



getResolvedClasspath
public IClasspathEntry[] getResolvedClasspath(boolean ignoreUnresolvedEntry) throws JavaModelException(Code)

See Also:   IJavaProject



getResource
public IResource getResource()(Code)

See Also:   IJavaElement



getSharedProperty
public String getSharedProperty(String key) throws CoreException(Code)
Retrieve a shared property on a project. If the property is not defined, answers null. Note that it is orthogonal to IResource persistent properties, and client code has to decide which form of storage to use appropriately. Shared properties produce real resource files which can be shared through a VCM onto a server. Persistent properties are not shareable.
Parameters:
  key - String
See Also:   JavaProject.setSharedProperty(StringString) String
throws:
  CoreException -



getSourceMapper
public SourceMapper getSourceMapper()(Code)

See Also:   JavaElement



getUnderlyingResource
public IResource getUnderlyingResource() throws JavaModelException(Code)

See Also:   IJavaElement



hasBuildState
public boolean hasBuildState()(Code)

See Also:   IJavaProject



hasClasspathCycle
public boolean hasClasspathCycle(IClasspathEntry[] preferredClasspath)(Code)

See Also:   IJavaProject



hasCycleMarker
public boolean hasCycleMarker()(Code)



hasJavaNature
public static boolean hasJavaNature(IProject project)(Code)
Returns true if the given project is accessible and it has a java nature, otherwise false.
Parameters:
  project - IProject boolean



hasSource
public boolean hasSource()(Code)
Answers true if the project potentially contains any source. A project which has no source is immutable. boolean



hashCode
public int hashCode()(Code)



isOnClasspath
public boolean isOnClasspath(IJavaElement element)(Code)



isOnClasspath
public boolean isOnClasspath(IResource resource)(Code)



newEvaluationContext
public IEvaluationContext newEvaluationContext()(Code)

See Also:   IJavaProject.newEvaluationContext



newNameLookup
public NameLookup newNameLookup(ICompilationUnit[] workingCopies) throws JavaModelException(Code)



newNameLookup
public NameLookup newNameLookup(WorkingCopyOwner owner) throws JavaModelException(Code)



newSearchableNameEnvironment
public SearchableEnvironment newSearchableNameEnvironment(ICompilationUnit[] workingCopies) throws JavaModelException(Code)



newSearchableNameEnvironment
public SearchableEnvironment newSearchableNameEnvironment(WorkingCopyOwner owner) throws JavaModelException(Code)



newTypeHierarchy
public ITypeHierarchy newTypeHierarchy(IRegion region, IProgressMonitor monitor) throws JavaModelException(Code)

See Also:   IJavaProject



newTypeHierarchy
public ITypeHierarchy newTypeHierarchy(IRegion region, WorkingCopyOwner owner, IProgressMonitor monitor) throws JavaModelException(Code)

See Also:   IJavaProject



newTypeHierarchy
public ITypeHierarchy newTypeHierarchy(IType type, IRegion region, IProgressMonitor monitor) throws JavaModelException(Code)

See Also:   IJavaProject



newTypeHierarchy
public ITypeHierarchy newTypeHierarchy(IType type, IRegion region, WorkingCopyOwner owner, IProgressMonitor monitor) throws JavaModelException(Code)

See Also:   IJavaProject



projectPrerequisites
public String[] projectPrerequisites(IClasspathEntry[] entries) throws JavaModelException(Code)



readFileEntriesWithException
public IClasspathEntry[] readFileEntriesWithException(Map unknownElements) throws CoreException, IOException, AssertionFailedException(Code)



readOutputLocation
public IPath readOutputLocation()(Code)

See Also:   IJavaProject



readRawClasspath
public IClasspathEntry[] readRawClasspath()(Code)

See Also:   IJavaProject



removeFromBuildSpec
protected void removeFromBuildSpec(String builderID) throws CoreException(Code)
Removes the given builder from the build spec for the given project.



resetCaches
public void resetCaches()(Code)



resolveClasspath
public IClasspathEntry[] resolveClasspath(IClasspathEntry[] rawClasspath) throws JavaModelException(Code)



resolveClasspath
public void resolveClasspath(PerProjectInfo perProjectInfo) throws JavaModelException(Code)



rootID
public String rootID()(Code)
Answers an ID which is used to distinguish project/entries during package fragment root computations String



saveClasspath
public boolean saveClasspath(IClasspathEntry[] newClasspath, IPath newOutputLocation) throws JavaModelException(Code)
Saves the classpath in a shareable format (VCM-wise) only when necessary, that is, if it is semantically different from the existing one in file. Will never write an identical one.
Parameters:
  newClasspath - IClasspathEntry[]
Parameters:
  newOutputLocation - IPath boolean Return whether the .classpath file was modified.
throws:
  JavaModelException -



setOption
public void setOption(String optionName, String optionValue)(Code)

See Also:   org.eclipse.jdt.core.IJavaProject.setOption(java.lang.Stringjava.lang.String)



setOptions
public void setOptions(Map newOptions)(Code)

See Also:   org.eclipse.jdt.core.IJavaProject.setOptions(Map)



setOutputLocation
public void setOutputLocation(IPath path, IProgressMonitor monitor) throws JavaModelException(Code)

See Also:   IJavaProject



setProject
public void setProject(IProject project)(Code)
Sets the underlying kernel project of this Java project, and fills in its parent and name. Called by IProject.getNature().
See Also:   IProjectNature.setProject(IProject)



setRawClasspath
public void setRawClasspath(IClasspathEntry[] entries, boolean canModifyResources, IProgressMonitor monitor) throws JavaModelException(Code)

See Also:   IJavaProject.setRawClasspath(IClasspathEntry[]booleanIProgressMonitor)



setRawClasspath
public void setRawClasspath(IClasspathEntry[] newRawClasspath, IPath newOutputLocation, boolean canModifyResources, IProgressMonitor monitor) throws JavaModelException(Code)

See Also:   IJavaProject.setRawClasspath(IClasspathEntry[]IPathbooleanIProgressMonitor)



setRawClasspath
public void setRawClasspath(IClasspathEntry[] entries, IPath outputLocation, IProgressMonitor monitor) throws JavaModelException(Code)

See Also:   IJavaProject.setRawClasspath(IClasspathEntry[]IPathIProgressMonitor)



setRawClasspath
public void setRawClasspath(IClasspathEntry[] entries, IProgressMonitor monitor) throws JavaModelException(Code)

See Also:   IJavaProject



setSharedProperty
public void setSharedProperty(String key, String value) throws CoreException(Code)
Record a shared persistent property onto a project. Note that it is orthogonal to IResource persistent properties, and client code has to decide which form of storage to use appropriately. Shared properties produce real resource files which can be shared through a VCM onto a server. Persistent properties are not shareable. shared properties end up in resource files, and thus cannot be modified during delta notifications (a CoreException would then be thrown).
Parameters:
  key - String
Parameters:
  value - String
See Also:   JavaProject.getSharedProperty(String key)
throws:
  CoreException -



updateCycleParticipants
public void updateCycleParticipants(ArrayList prereqChain, HashSet cycleParticipants, IWorkspaceRoot workspaceRoot, HashSet traversed, Map preferredClasspaths)(Code)
If a cycle is detected, then cycleParticipants contains all the paths of projects involved in this cycle (directly and indirectly), no cycle if the set is empty (and started empty)
Parameters:
  prereqChain - ArrayList
Parameters:
  cycleParticipants - HashSet
Parameters:
  workspaceRoot - IWorkspaceRoot
Parameters:
  traversed - HashSet
Parameters:
  preferredClasspaths - Map



updatePackageFragmentRoots
public void updatePackageFragmentRoots()(Code)
Reset the collection of package fragment roots (local ones) - only if opened.



validateCycles
public static void validateCycles(Map preferredClasspaths) throws JavaModelException(Code)



Methods inherited from org.eclipse.jdt.internal.core.Openable
public void bufferChanged(BufferChangedEvent event)(Code)(Java Doc)
abstract protected boolean buildStructure(OpenableElementInfo info, IProgressMonitor pm, Map newElements, IResource underlyingResource) throws JavaModelException(Code)(Java Doc)
public boolean canBeRemovedFromCache()(Code)(Java Doc)
public boolean canBufferBeRemovedFromCache(IBuffer buffer)(Code)(Java Doc)
protected void closeBuffer()(Code)(Java Doc)
protected void closing(Object info)(Code)(Java Doc)
protected void codeComplete(org.eclipse.jdt.internal.compiler.env.ICompilationUnit cu, org.eclipse.jdt.internal.compiler.env.ICompilationUnit unitToSkip, int position, CompletionRequestor requestor, WorkingCopyOwner owner) throws JavaModelException(Code)(Java Doc)
protected IJavaElement[] codeSelect(org.eclipse.jdt.internal.compiler.env.ICompilationUnit cu, int offset, int length, WorkingCopyOwner owner) throws JavaModelException(Code)(Java Doc)
protected Object createElementInfo()(Code)(Java Doc)
public boolean exists()(Code)(Java Doc)
public String findRecommendedLineSeparator() throws JavaModelException(Code)(Java Doc)
protected void generateInfos(Object info, HashMap newElements, IProgressMonitor monitor) throws JavaModelException(Code)(Java Doc)
public IBuffer getBuffer() throws JavaModelException(Code)(Java Doc)
public IBufferFactory getBufferFactory()(Code)(Java Doc)
protected BufferManager getBufferManager()(Code)(Java Doc)
public IResource getCorrespondingResource() throws JavaModelException(Code)(Java Doc)
public IOpenable getOpenable()(Code)(Java Doc)
public PackageFragmentRoot getPackageFragmentRoot()(Code)(Java Doc)
public IResource getUnderlyingResource() throws JavaModelException(Code)(Java Doc)
protected boolean hasBuffer()(Code)(Java Doc)
public boolean hasUnsavedChanges() throws JavaModelException(Code)(Java Doc)
public boolean isConsistent()(Code)(Java Doc)
public boolean isOpen()(Code)(Java Doc)
protected boolean isSourceElement()(Code)(Java Doc)
public boolean isStructureKnown() throws JavaModelException(Code)(Java Doc)
public void makeConsistent(IProgressMonitor monitor) throws JavaModelException(Code)(Java Doc)
public void open(IProgressMonitor pm) throws JavaModelException(Code)(Java Doc)
protected IBuffer openBuffer(IProgressMonitor pm, Object info) throws JavaModelException(Code)(Java Doc)
protected void openParent(Object childInfo, HashMap newElements, IProgressMonitor pm) throws JavaModelException(Code)(Java Doc)
protected boolean parentExists()(Code)(Java Doc)
protected boolean resourceExists()(Code)(Java Doc)
public void save(IProgressMonitor pm, boolean force) throws JavaModelException(Code)(Java Doc)

Fields inherited from org.eclipse.jdt.internal.core.JavaElement
final public static char JEM_CLASSFILE(Code)(Java Doc)
final public static char JEM_COMPILATIONUNIT(Code)(Java Doc)
final public static char JEM_COUNT(Code)(Java Doc)
final public static char JEM_ESCAPE(Code)(Java Doc)
final public static char JEM_FIELD(Code)(Java Doc)
final public static char JEM_IMPORTDECLARATION(Code)(Java Doc)
final public static char JEM_INITIALIZER(Code)(Java Doc)
final public static char JEM_JAVAPROJECT(Code)(Java Doc)
final public static char JEM_LOCALVARIABLE(Code)(Java Doc)
final public static char JEM_METHOD(Code)(Java Doc)
final public static char JEM_PACKAGEDECLARATION(Code)(Java Doc)
final public static char JEM_PACKAGEFRAGMENT(Code)(Java Doc)
final public static char JEM_PACKAGEFRAGMENTROOT(Code)(Java Doc)
final public static char JEM_TYPE(Code)(Java Doc)
final public static char JEM_TYPE_PARAMETER(Code)(Java Doc)
final protected static JavaElement[] NO_ELEMENTS(Code)(Java Doc)
final protected static Object NO_INFO(Code)(Java Doc)
protected JavaElement parent(Code)(Java Doc)

Methods inherited from org.eclipse.jdt.internal.core.JavaElement
public void close() throws JavaModelException(Code)(Java Doc)
abstract protected void closing(Object info) throws JavaModelException(Code)(Java Doc)
abstract protected Object createElementInfo()(Code)(Java Doc)
public boolean equals(Object o)(Code)(Java Doc)
protected void escapeMementoName(StringBuffer buffer, String mementoName)(Code)(Java Doc)
public boolean exists()(Code)(Java Doc)
public ASTNode findNode(CompilationUnit ast)(Code)(Java Doc)
abstract protected void generateInfos(Object info, HashMap newElements, IProgressMonitor pm) throws JavaModelException(Code)(Java Doc)
public IJavaElement getAncestor(int ancestorType)(Code)(Java Doc)
public String getAttachedJavadoc(IProgressMonitor monitor) throws JavaModelException(Code)(Java Doc)
public IJavaElement[] getChildren() throws JavaModelException(Code)(Java Doc)
public ArrayList getChildrenOfType(int type) throws JavaModelException(Code)(Java Doc)
public IClassFile getClassFile()(Code)(Java Doc)
public ICompilationUnit getCompilationUnit()(Code)(Java Doc)
public Object getElementInfo() throws JavaModelException(Code)(Java Doc)
public Object getElementInfo(IProgressMonitor monitor) throws JavaModelException(Code)(Java Doc)
public String getElementName()(Code)(Java Doc)
abstract public IJavaElement getHandleFromMemento(String token, MementoTokenizer memento, WorkingCopyOwner owner)(Code)(Java Doc)
public IJavaElement getHandleFromMemento(MementoTokenizer memento, WorkingCopyOwner owner)(Code)(Java Doc)
public String getHandleIdentifier()(Code)(Java Doc)
public String getHandleMemento()(Code)(Java Doc)
protected void getHandleMemento(StringBuffer buff)(Code)(Java Doc)
abstract protected char getHandleMementoDelimiter()(Code)(Java Doc)
int getIndexOf(byte[] array, byte[] toBeFound, int start)(Code)(Java Doc)
public IJavaModel getJavaModel()(Code)(Java Doc)
public IJavaProject getJavaProject()(Code)(Java Doc)
protected URL getJavadocBaseLocation() throws JavaModelException(Code)(Java Doc)
protected static URL getLibraryJavadocLocation(IClasspathEntry entry) throws JavaModelException(Code)(Java Doc)
public IOpenable getOpenable()(Code)(Java Doc)
public IOpenable getOpenableParent()(Code)(Java Doc)
public IJavaElement getParent()(Code)(Java Doc)
public IJavaElement getPrimaryElement()(Code)(Java Doc)
public IJavaElement getPrimaryElement(boolean checkOwner)(Code)(Java Doc)
public ISchedulingRule getSchedulingRule()(Code)(Java Doc)
protected IJavaElement getSourceElementAt(int position) throws JavaModelException(Code)(Java Doc)
public SourceMapper getSourceMapper()(Code)(Java Doc)
protected String getURLContents(String docUrlValue) throws JavaModelException(Code)(Java Doc)
public boolean hasChildren() throws JavaModelException(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public boolean isAncestorOf(IJavaElement e)(Code)(Java Doc)
public boolean isReadOnly()(Code)(Java Doc)
public JavaModelException newJavaModelException(IStatus status)(Code)(Java Doc)
public JavaModelException newNotPresentException()(Code)(Java Doc)
protected Object openWhenClosed(Object info, IProgressMonitor monitor) throws JavaModelException(Code)(Java Doc)
public String readableName()(Code)(Java Doc)
public JavaElement resolved(Binding binding)(Code)(Java Doc)
protected String tabString(int tab)(Code)(Java Doc)
public String toDebugString()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
protected void toString(int tab, StringBuffer buffer)(Code)(Java Doc)
protected void toStringAncestors(StringBuffer buffer)(Code)(Java Doc)
protected void toStringChildren(int tab, StringBuffer buffer, Object info)(Code)(Java Doc)
public Object toStringInfo(int tab, StringBuffer buffer)(Code)(Java Doc)
protected void toStringInfo(int tab, StringBuffer buffer, Object info, boolean showResolvedInfo)(Code)(Java Doc)
protected void toStringName(StringBuffer buffer)(Code)(Java Doc)
public String toStringWithAncestors()(Code)(Java Doc)
public String toStringWithAncestors(boolean showResolvedInfo)(Code)(Java Doc)
public JavaElement unresolved()(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.