Package org.eclipse.ui.texteditor
Interface IDocumentProviderExtension4
- All Known Implementing Classes:
AbstractDocumentProvider
,FileDocumentProvider
,ForwardingDocumentProvider
,StorageDocumentProvider
,TextFileDocumentProvider
,TextFileDocumentProvider.NullProvider
public interface IDocumentProviderExtension4
Extension interface for
IDocumentProvider
.
Extends a document provider with the ability to query the content type
of a given element.
This interface may be implemented by clients.
- Since:
- 3.1
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetContentType
(Object element) Returns the content type of for the given element ornull
if none could be determined.
-
Method Details
-
getContentType
Returns the content type of for the given element ornull
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
-