public interface IDocumentProviderExtension4
IDocumentProvider
.
Extends a document provider with the ability to query the content type
of a given element.
This interface may be implemented by clients.
IDocumentProvider
Modifier and Type | Method and Description |
---|---|
IContentType |
getContentType(Object element)
Returns the content type of for the given element or
null if none could be determined. |
IContentType getContentType(Object element) throws CoreException
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 elementnull
CoreException
- if reading or accessing the underlying store
fails
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.