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.
        element - the element
        the content type or null
        CoreException - if reading or accessing the underlying store fails