48495051525354
* <code>IJavaModelStatusConstants</code> * @see IJavaModelStatusConstants * @see org.eclipse.core.runtime.IStatus#ERROR */ public JavaModelException(Throwable e, int code) { this(new JavaModelStatus(code, e)); }
9596979899100101102
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); }