Package org.eclipse.ui.editors.text
Interface IStorageDocumentProvider
-
- All Known Implementing Classes:
FileDocumentProvider,ForwardingDocumentProvider,StorageDocumentProvider,TextFileDocumentProvider,TextFileDocumentProvider.NullProvider
public interface IStorageDocumentProviderDocument provider forIStoragebased domain elements. Basically incorporates the concept of character encoding.- Since:
- 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetDefaultEncoding()Returns the default character encoding used by this provider.StringgetEncoding(Object element)Returns the character encoding for the given element, ornullif the element is not managed by this provider.voidsetEncoding(Object element, String encoding)Sets the encoding for the given element.
-
-
-
Method Detail
-
getDefaultEncoding
String getDefaultEncoding()
Returns the default character encoding used by this provider.- Returns:
- the default character encoding used by this provider
-
getEncoding
String getEncoding(Object element)
Returns the character encoding for the given element, ornullif the element is not managed by this provider.- Parameters:
element- the element- Returns:
- the encoding for the given element
-
-