/** * Possible failures: <ul> * <li>NO_ELEMENTS_TO_PROCESS - at least one of a type or region must * be provided to generate a type hierarchy. * <li>ELEMENT_NOT_PRESENT - the provided type or type's project does not exist * </ul> */ public IJavaModelStatus verify() { IJavaElement elementToProcess= getElementToProcess(); if (elementToProcess == null && !(this.typeHierarchy instanceof RegionBasedTypeHierarchy)) { return new JavaModelStatus(IJavaModelStatusConstants.NO_ELEMENTS_TO_PROCESS); } if (elementToProcess != null && !elementToProcess.exists()) { return new JavaModelStatus(IJavaModelStatusConstants.ELEMENT_DOES_NOT_EXIST, elementToProcess); } IJavaProject project = this.typeHierarchy.javaProject(); if (project != null && !project.exists()) { return new JavaModelStatus(IJavaModelStatusConstants.ELEMENT_DOES_NOT_EXIST, project); } return JavaModelStatus.VERIFIED_OK; } }
/** * Possible failures: <ul> * <li>NO_ELEMENTS_TO_PROCESS - at least one of a type or region must * be provided to generate a type hierarchy. * <li>ELEMENT_NOT_PRESENT - the provided type or type's project does not exist * </ul> */ public IJavaModelStatus verify() { IJavaElement elementToProcess= getElementToProcess(); if (elementToProcess == null && !(this.typeHierarchy instanceof RegionBasedTypeHierarchy)) { return new JavaModelStatus(IJavaModelStatusConstants.NO_ELEMENTS_TO_PROCESS); } if (elementToProcess != null && !elementToProcess.exists()) { return new JavaModelStatus(IJavaModelStatusConstants.ELEMENT_DOES_NOT_EXIST, elementToProcess); } IJavaProject project = this.typeHierarchy.javaProject(); if (project != null && !project.exists()) { return new JavaModelStatus(IJavaModelStatusConstants.ELEMENT_DOES_NOT_EXIST, project); } return JavaModelStatus.VERIFIED_OK; } }
/** * Possible failures: <ul> * <li>NO_ELEMENTS_TO_PROCESS - at least one of a type or region must * be provided to generate a type hierarchy. * <li>ELEMENT_NOT_PRESENT - the provided type or type's project does not exist * </ul> */ public IJavaModelStatus verify() { IJavaElement elementToProcess= getElementToProcess(); if (elementToProcess == null && !(this.typeHierarchy instanceof RegionBasedTypeHierarchy)) { return new JavaModelStatus(IJavaModelStatusConstants.NO_ELEMENTS_TO_PROCESS); } if (elementToProcess != null && !elementToProcess.exists()) { return new JavaModelStatus(IJavaModelStatusConstants.ELEMENT_DOES_NOT_EXIST, elementToProcess); } IJavaProject project = this.typeHierarchy.javaProject(); if (project != null && !project.exists()) { return new JavaModelStatus(IJavaModelStatusConstants.ELEMENT_DOES_NOT_EXIST, project); } return JavaModelStatus.VERIFIED_OK; } }
/** * Possible failures: <ul> * <li>NO_ELEMENTS_TO_PROCESS - at least one of a type or region must * be provided to generate a type hierarchy. * <li>ELEMENT_NOT_PRESENT - the provided type or type's project does not exist * </ul> */ @Override public IJavaModelStatus verify() { IJavaElement elementToProcess= getElementToProcess(); if (elementToProcess == null && !(this.typeHierarchy instanceof RegionBasedTypeHierarchy)) { return new JavaModelStatus(IJavaModelStatusConstants.NO_ELEMENTS_TO_PROCESS); } if (elementToProcess != null && !elementToProcess.exists()) { return new JavaModelStatus(IJavaModelStatusConstants.ELEMENT_DOES_NOT_EXIST, elementToProcess); } IJavaProject project = this.typeHierarchy.javaProject(); if (project != null && !project.exists()) { return new JavaModelStatus(IJavaModelStatusConstants.ELEMENT_DOES_NOT_EXIST, project); } return JavaModelStatus.VERIFIED_OK; } }
/** * Possible failures: <ul> * <li>NO_ELEMENTS_TO_PROCESS - at least one of a type or region must * be provided to generate a type hierarchy. * <li>ELEMENT_NOT_PRESENT - the provided type or type's project does not exist * </ul> */ public IJavaModelStatus verify() { IJavaElement elementToProcess= getElementToProcess(); if (elementToProcess == null && !(this.typeHierarchy instanceof RegionBasedTypeHierarchy)) { return new JavaModelStatus(IJavaModelStatusConstants.NO_ELEMENTS_TO_PROCESS); } if (elementToProcess != null && !elementToProcess.exists()) { return new JavaModelStatus(IJavaModelStatusConstants.ELEMENT_DOES_NOT_EXIST, elementToProcess); } IJavaProject project = this.typeHierarchy.javaProject(); if (project != null && !project.exists()) { return new JavaModelStatus(IJavaModelStatusConstants.ELEMENT_DOES_NOT_EXIST, project); } return JavaModelStatus.VERIFIED_OK; } }
/** * Possible failures: <ul> * <li>NO_ELEMENTS_TO_PROCESS - at least one of a type or region must * be provided to generate a type hierarchy. * <li>ELEMENT_NOT_PRESENT - the provided type or type's project does not exist * </ul> */ public IJavaModelStatus verify() { IJavaElement elementToProcess= getElementToProcess(); if (elementToProcess == null && !(this.typeHierarchy instanceof RegionBasedTypeHierarchy)) { return new JavaModelStatus(IJavaModelStatusConstants.NO_ELEMENTS_TO_PROCESS); } if (elementToProcess != null && !elementToProcess.exists()) { return new JavaModelStatus(IJavaModelStatusConstants.ELEMENT_DOES_NOT_EXIST, elementToProcess); } IJavaProject project = this.typeHierarchy.javaProject(); if (project != null && !project.exists()) { return new JavaModelStatus(IJavaModelStatusConstants.ELEMENT_DOES_NOT_EXIST, project); } return JavaModelStatus.VERIFIED_OK; } }