Eclipse Platform
2.0

org.eclipse.ui.editors.text
Interface IStorageDocumentProvider

All Known Implementing Classes:
StorageDocumentProvider

public interface IStorageDocumentProvider

Document provider for IStorage based domain elements. Basically incorporates the concept of character encoding.

Since:
2.0

Method Summary
 String getDefaultEncoding()
          Returns the default character encoding used by this provider for reading.
 String getEncoding(Object element)
          Returns the character encoding for reading the given element, or null if the element is not managed by this provider.
 void setEncoding(Object element, String encoding)
          Sets the encoding for reading the given element.
 

Method Detail

getDefaultEncoding

public String getDefaultEncoding()
Returns the default character encoding used by this provider for reading.

Returns:
the default character encoding used by this provider for reading

getEncoding

public String getEncoding(Object element)
Returns the character encoding for reading the given element, or null if the element is not managed by this provider.

Parameters:
element - the element
Returns:
the encoding for reading the given element

setEncoding

public void setEncoding(Object element,
                        String encoding)
Sets the encoding for reading the given element. If encoding is null the workbench's character encoding should be used.

Parameters:
element - the element
encoding - the encoding to be used

Eclipse Platform
2.0

Copyright (c) IBM Corp. and others 2000, 2002. All Rights Reserved.