Interface IResourceValidator

    • Method Detail

      • validate

        java.util.List<Issue> validate​(org.eclipse.emf.ecore.resource.Resource resource,
                                       CheckMode mode,
                                       org.eclipse.xtext.util.CancelIndicator indicator)
                                throws OperationCanceledError
        Validates the given resource according to the mode. An optional CancelIndicator may be provide to allow the method to exit early in case the long running validation was canceled by the user.
        Returns:
        all issues of the underlying resources (includes syntax errors as well as semantic problems)
        Throws:
        OperationCanceledError - if the validation was cancelled, the method may exit with an OperationCanceledError