Encodings

org.eclipse.ui.encodings

3.1

A list of encodings that will be made available to the user for selection of file encodings. This list corresponds to the values of Charset#getName() for a series of Charsets. Those that are specified but not avaiable will be indicated as such in the workbench and will not be selectable by the user.

<!ELEMENT extension (encoding*)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT encoding EMPTY>

<!ATTLIST encoding

name CDATA #REQUIRED>


The following is an example of an encodings extension:

   

<extension point=

"org.eclipse.ui.encodings"

>

<encoding name=

"ISO-8859-1"

/>

<encoding name=

"UTF-8"

/>

<encoding name=

"US-ASCII"

/>

</extension>

Use method org.eclipse.ui.WorkbenchEncoding.getDefinedEncodings to retrieve the encodings defined by this extension point. Use method org.eclipse.ui.WorkbenchEncoding.getWorkbenchDefaultEncoding to retrieve the default encoding from the virtual machine.

The workbench provides some commonly used encodings.