Package org.eclipse.ui.editors.text
Interface IStorageDocumentProvider
- All Known Implementing Classes:
FileDocumentProvider
,ForwardingDocumentProvider
,StorageDocumentProvider
,TextFileDocumentProvider
,TextFileDocumentProvider.NullProvider
public interface IStorageDocumentProvider
Document provider for
IStorage
based domain elements.
Basically incorporates the concept of character encoding.- Since:
- 2.0
-
Method Summary
Modifier and TypeMethodDescriptionReturns the default character encoding used by this provider.getEncoding
(Object element) Returns the character encoding for the given element, ornull
if the element is not managed by this provider.void
setEncoding
(Object element, String encoding) Sets the encoding for the given element.
-
Method Details
-
getDefaultEncoding
String getDefaultEncoding()Returns the default character encoding used by this provider.- Returns:
- the default character encoding used by this provider
-
getEncoding
Returns the character encoding for the given element, ornull
if the element is not managed by this provider.- Parameters:
element
- the element- Returns:
- the encoding for the given element
-
setEncoding
Sets the encoding for the given element. Ifencoding
isnull
the workbench's character encoding should be used.- Parameters:
element
- the elementencoding
- the encoding to be used
-