320321322323324325326
} /** * 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())); }
46474849505152
* <code>IJavaModelStatusConstants</code> * @see IJavaModelStatusConstants * @see org.eclipse.core.runtime.IStatus#ERROR */ public JavaModelException(Throwable e, int code) { this(new JavaModelStatus(code, e)); }
93949596979899100
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); } }
285286287288289290291
public IStatus getAccessRulesStatus(IPath containerPath, IJavaProject project) { if (canUpdateClasspathContainer(containerPath, project)) { return Status.OK_STATUS; } return new JavaModelStatus(ATTRIBUTE_READ_ONLY); }
323324325326327328329
public IStatus getAttributeStatus(IPath containerPath, IJavaProject project, String attributeKey) { if (canUpdateClasspathContainer(containerPath, project)) { return Status.OK_STATUS; } return new JavaModelStatus(ATTRIBUTE_READ_ONLY); }
359360361362363364365
public IStatus getSourceAttachmentStatus(IPath containerPath, IJavaProject project) { if (canUpdateClasspathContainer(containerPath, project)) { return Status.OK_STATUS; } return new JavaModelStatus(ATTRIBUTE_READ_ONLY); }
48495051525354
9596979899100101102