|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ui.ide.IDEEncoding
IDEEncoding is a utility class for managing encoding information that includes user preferences from the IDE and core resources.
This class provides all its functionality via static methods. It is not intended to be instantiated or subclassed.
WorkbenchEncoding
,
ResourcesPlugin
Field Summary | |
---|---|
static String |
BOM_UTF_16BE
Display constant for the UTF 16 big endian byte order marker for resources. |
static String |
BOM_UTF_16LE
Display constant for the UTF 16 little endian byte order marker for resources. |
static String |
BOM_UTF_8
Display constant for the UTF 8 byte order marker for resources. |
Method Summary | |
---|---|
static void |
addIDEEncoding(String value)
Add value to the list of workbench encodings. |
static void |
clearUserEncodings()
Clear the IDE encodings preference. |
static String |
getByteOrderMarkLabel(IContentDescription description)
Get the displayable string for the byte order marking from the supplied file description. |
static List |
getIDEEncodings()
Get all of the available encodings including any that were saved as a preference in the IDE or in core resources. |
static String |
getResourceEncoding()
Get the current value of the encoding preference. |
static void |
setResourceEncoding(String value)
Deprecated. Use IWorkspaceRoot#setDefaultCharset and add the encoding using #addEncoding. This API will be deleted before 3.1 M3. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static String BOM_UTF_8
public static String BOM_UTF_16BE
public static String BOM_UTF_16LE
Method Detail |
public static List getIDEEncodings()
public static String getResourceEncoding()
null
.
public static void setResourceEncoding(String value)
value
- String or null
if the preference is to be reset
to the default.public static void addIDEEncoding(String value)
value
- public static void clearUserEncodings()
public static String getByteOrderMarkLabel(IContentDescription description)
description
- The description to query. May be null
.
null
if the byte order mark cannot be
found or the description is null
.IContentDescription.getProperty(org.eclipse.core.runtime.QualifiedName)
|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.