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

Examples of org.aspectj.org.eclipse.jdt.internal.core.JavaModelStatus


}
/**
* Handles an install exception by throwing a Java Model exception.
*/
protected void handleInstallException(InstallException e) throws JavaModelException {
  throw new JavaModelException(new JavaModelStatus(IJavaModelStatusConstants.EVALUATION_ERROR, e.toString()));
}
View Full Code Here


*   <code>IJavaModelStatusConstants</code>
* @see IJavaModelStatusConstants
* @see org.eclipse.core.runtime.IStatus#ERROR
*/
public JavaModelException(Throwable e, int code) {
  this(new JavaModelStatus(code, e));
}
View Full Code Here

  if (status instanceof IJavaModelStatus) {
    return (IJavaModelStatus)status;
  } else {
    // A regular IStatus is created only in the case of a CoreException.
    // See bug 13492 Should handle JavaModelExceptions that contains CoreException more gracefully 
    return new JavaModelStatus(this.nestedCoreException);
  }
}
View Full Code Here

  public IStatus getAccessRulesStatus(IPath containerPath, IJavaProject project) {

    if (canUpdateClasspathContainer(containerPath, project)) {
      return Status.OK_STATUS;
    }
    return new JavaModelStatus(ATTRIBUTE_READ_ONLY);
  }
View Full Code Here

  public IStatus getAttributeStatus(IPath containerPath, IJavaProject project, String attributeKey) {

    if (canUpdateClasspathContainer(containerPath, project)) {
      return Status.OK_STATUS;
    }
    return new JavaModelStatus(ATTRIBUTE_READ_ONLY);
  }
View Full Code Here

  public IStatus getSourceAttachmentStatus(IPath containerPath, IJavaProject project) {

    if (canUpdateClasspathContainer(containerPath, project)) {
      return Status.OK_STATUS;
    }
    return new JavaModelStatus(ATTRIBUTE_READ_ONLY);
  }
View Full Code Here

TOP

Related Classes of org.aspectj.org.eclipse.jdt.internal.core.JavaModelStatus

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.