Interface IDocumentProviderExtension4

    • Method Detail

      • getContentType

        IContentType getContentType​(Object element)
                             throws CoreException
        Returns the content type of for the given element or null if none could be determined. If the element's document can be saved, the returned content type is determined by the document's current content.
        Parameters:
        element - the element
        Returns:
        the content type or null
        Throws:
        CoreException - if reading or accessing the underlying store fails