Package org.aspectj.org.eclipse.jdt.internal.core.JavaModelManager

Examples of org.aspectj.org.eclipse.jdt.internal.core.JavaModelManager.PerProjectInfo


   * @return IClasspathEntry
   * @throws JavaModelException
   */
  public IClasspathEntry getClasspathEntryFor(IPath path) throws JavaModelException {
    getResolvedClasspath(); // force resolution
    PerProjectInfo perProjectInfo = getPerProjectInfo();
    if (perProjectInfo == null)
      return null;
    Map rootPathToResolvedEntries = perProjectInfo.rootPathToResolvedEntries;
    if (rootPathToResolvedEntries == null)
      return null;
View Full Code Here


 
  /*
   * Returns the cached resolved classpath, or compute it ignoring unresolved entries and cache it.
   */
  public IClasspathEntry[] getResolvedClasspath() throws JavaModelException {
    PerProjectInfo perProjectInfo = getPerProjectInfo();
    if (perProjectInfo.resolvedClasspath == null)
      resolveClasspath(perProjectInfo);
    return perProjectInfo.resolvedClasspath;
  }
View Full Code Here

    if  (JavaModelManager.getJavaModelManager().isClasspathBeingResolved(this)) {
      if (JavaModelManager.CP_RESOLVE_VERBOSE_ADVANCED)
        verbose_reentering_classpath_resolution();
        return RESOLUTION_IN_PROGRESS;
    }
    PerProjectInfo perProjectInfo = getPerProjectInfo();

    // use synchronized block to ensure consistency
    IClasspathEntry[] resolvedClasspath;
    IJavaModelStatus unresolvedEntryStatus;
    synchronized (perProjectInfo) {
View Full Code Here

    if ((modifiers & ClassFileConstants.AccSynthetic) != 0) {
      return this.parameterNames = getRawParameterNames(paramCount);
    }
    String javadocContents = null;
    IType declaringType = this.getDeclaringType();
    PerProjectInfo projectInfo = JavaModelManager.getJavaModelManager().getPerProjectInfoCheckExistence(this.getJavaProject().getProject());
    synchronized (projectInfo.javadocCache) {
      javadocContents = (String) projectInfo.javadocCache.get(declaringType);
      if (javadocContents == null) {
        projectInfo.javadocCache.put(declaringType, BinaryType.EMPTY_JAVADOC);
      }
View Full Code Here

    start = indexOfFirstParagraph;
 
  return contents.substring(start, indexOfNextSummary);
}
public String getJavadocContents(IProgressMonitor monitor) throws JavaModelException {
  PerProjectInfo projectInfo = JavaModelManager.getJavaModelManager().getPerProjectInfoCheckExistence(this.getJavaProject().getProject());
  String cachedJavadoc = null;
  synchronized (projectInfo.javadocCache) {
    cachedJavadoc = (String) projectInfo.javadocCache.get(this);
  }
  if (cachedJavadoc != null && cachedJavadoc != EMPTY_JAVADOC) {
View Full Code Here

}
/*
* @see IJavaElement#getAttachedJavadoc(IProgressMonitor)
*/
public String getAttachedJavadoc(IProgressMonitor monitor) throws JavaModelException {
  PerProjectInfo projectInfo = JavaModelManager.getJavaModelManager().getPerProjectInfoCheckExistence(this.getJavaProject().getProject());
  String cachedJavadoc = null;
  synchronized (projectInfo.javadocCache) {
    cachedJavadoc = (String) projectInfo.javadocCache.get(this);
  }
  if (cachedJavadoc != null) {
View Full Code Here

    DeltaProcessor deltaProcessor = state.getDeltaProcessor();
    IClasspathEntry[] newResolvedClasspath = null;
    IPath newOutputLocation = null;
    int result = NO_DELTA;
    try {
      PerProjectInfo perProjectInfo = this.project.getPerProjectInfo();
     
      // get new info
      this.project.resolveClasspath(perProjectInfo);
      IClasspathEntry[] newRawClasspath;
     
View Full Code Here

TOP

Related Classes of org.aspectj.org.eclipse.jdt.internal.core.JavaModelManager.PerProjectInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.