|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.ui.editors.text.DefaultEncodingSupport
The standard implementation of IEncodingSupport
.
Constructor Summary | |
DefaultEncodingSupport()
Creates a new encoding support. |
Method Summary | |
void |
dispose()
Disposes this encoding support. |
String |
getDefaultEncoding()
Returns the default character encoding. |
String |
getEncoding()
Returns the character encoding. |
String |
getStatusBanner(IStatus status)
Returns a banner for the given status |
String |
getStatusHeader(IStatus status)
Returns a status header for the given status. |
String |
getStatusMessage(IStatus status)
Returns a status message for the given status indicating encoding problems or null otherwise. |
void |
initialize(StatusTextEditor textEditor)
Associates this encoding support to the given text editor and initializes this encoding. |
void |
reset()
Resets this encoding support. |
void |
setEncoding(String encoding)
Sets the character encoding. |
protected void |
setEncoding(String encoding,
boolean overwrite)
Sets the encoding of the editor's input to the given value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultEncodingSupport()
Method Detail |
public void initialize(StatusTextEditor textEditor)
textEditor
- the editorpublic void dispose()
public void reset()
protected void setEncoding(String encoding, boolean overwrite)
overwrite
is
true
the value is set even if the encoding is already set.
encoding
- the new encodingoverwrite
- true
if current encoding should be overwrittenpublic void setEncoding(String encoding)
IEncodingSupport
setEncoding
in interface IEncodingSupport
encoding
- the character encodingpublic String getEncoding()
IEncodingSupport
getEncoding
in interface IEncodingSupport
public String getDefaultEncoding()
IEncodingSupport
getDefaultEncoding
in interface IEncodingSupport
public String getStatusHeader(IStatus status)
status
- the status
public String getStatusBanner(IStatus status)
status
- the status
public String getStatusMessage(IStatus status)
null
otherwise.
status
- the status
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |