protected IStatus validateExistence(IResource underlyingResource) { // check whether the class file can be opened IStatus status = validateClassFile(); if (!status.isOK()) return status; if (underlyingResource != null) { if (!underlyingResource.isAccessible()) return newDoesNotExistStatus(); PackageFragmentRoot root; if ((underlyingResource instanceof IFolder) && (root = getPackageFragmentRoot()).isArchive()) { // see https://bugs.eclipse.org/bugs/show_bug.cgi?id=204652 return root.newDoesNotExistStatus(); } } return JavaModelStatus.VERIFIED_OK; } public ISourceRange getNameRange() {
protected IStatus validateExistence(IResource underlyingResource) { // check whether the class file can be opened IStatus status = validateClassFile(); if (!status.isOK()) return status; if (underlyingResource != null) { if (!underlyingResource.isAccessible()) return newDoesNotExistStatus(); PackageFragmentRoot root; if ((underlyingResource instanceof IFolder) && (root = getPackageFragmentRoot()).isArchive()) { // see https://bugs.eclipse.org/bugs/show_bug.cgi?id=204652 return root.newDoesNotExistStatus(); } } return JavaModelStatus.VERIFIED_OK; } public ISourceRange getNameRange() {
protected IStatus validateExistence(IResource underlyingResource) { // check whether the class file can be opened IStatus status = validateClassFile(); if (!status.isOK()) return status; if (underlyingResource != null) { if (!underlyingResource.isAccessible()) return newDoesNotExistStatus(); PackageFragmentRoot root; if ((underlyingResource instanceof IFolder) && (root = getPackageFragmentRoot()).isArchive()) { // see https://bugs.eclipse.org/bugs/show_bug.cgi?id=204652 return root.newDoesNotExistStatus(); } } return JavaModelStatus.VERIFIED_OK; } public ISourceRange getNameRange() {
protected IStatus validateExistence(IResource underlyingResource) { // check whether the class file can be opened IStatus status = validateClassFile(); if (!status.isOK()) return status; if (underlyingResource != null) { if (!underlyingResource.isAccessible()) return newDoesNotExistStatus(); PackageFragmentRoot root; if ((underlyingResource instanceof IFolder) && (root = getPackageFragmentRoot()).isArchive()) { // see https://bugs.eclipse.org/bugs/show_bug.cgi?id=204652 return root.newDoesNotExistStatus(); } } return JavaModelStatus.VERIFIED_OK; } public ISourceRange getNameRange() {