Examples of PerProjectInfo


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

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

 
  /*
   * 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

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

    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

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

    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

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

    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

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

}
/*
* @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

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

    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

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

  }

  private void readRawClasspath(JavaProject javaProject) {
    // force to (re)read the .classpath file
    try {
      PerProjectInfo perProjectInfo = javaProject.getPerProjectInfo();
      if (!perProjectInfo.writtingRawClasspath) // to avoid deadlock, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=221680
        perProjectInfo.readAndCacheClasspath(javaProject);
    } catch (JavaModelException e) {
      if (VERBOSE) {
        e.printStackTrace();
      }
    }
View Full Code Here

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

  JavadocContents javadocContents = getJavadocContents(monitor);
  if (javadocContents == null) return null;
  return javadocContents.getTypeDoc();
}
public JavadocContents getJavadocContents(IProgressMonitor monitor) throws JavaModelException {
  PerProjectInfo projectInfo = JavaModelManager.getJavaModelManager().getPerProjectInfoCheckExistence(getJavaProject().getProject());
  JavadocContents cachedJavadoc = null;
  synchronized (projectInfo.javadocCache) {
    cachedJavadoc = (JavadocContents) projectInfo.javadocCache.get(this);
  }
 
View Full Code Here

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

    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, false/*don't use previous session values*/, addClasspathChange);
      IClasspathEntry[] newRawClasspath;

      // use synchronized block to ensure consistency
      synchronized (perProjectInfo) {
        newRawClasspath = perProjectInfo.rawClasspath;
        newResolvedClasspath = perProjectInfo.getResolvedClasspath();
        newOutputLocation = perProjectInfo.outputLocation;
      }

      if (newResolvedClasspath == null) {
        // another thread reset the resolved classpath, use a temporary PerProjectInfo
        PerProjectInfo temporaryInfo = this.project.newTemporaryInfo();
        this.project.resolveClasspath(temporaryInfo, false/*don't use previous session values*/, addClasspathChange);
        newRawClasspath = temporaryInfo.rawClasspath;
        newResolvedClasspath = temporaryInfo.getResolvedClasspath();
        newOutputLocation = temporaryInfo.outputLocation;
      }

      // check if raw classpath has changed
      if (this.oldRawClasspath != null && !JavaProject.areClasspathsEqual(this.oldRawClasspath, newRawClasspath, this.oldOutputLocation, newOutputLocation)) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.