|
Eclipse Platform 2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | 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 if any. |
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
org.eclipse.ui.editors.text.IEncodingSupport
encoding
- the character encodingpublic String getEncoding()
IEncodingSupport
getEncoding
in interface IEncodingSupport
org.eclipse.ui.editors.text.IEncodingSupport
public String getDefaultEncoding()
IEncodingSupport
getDefaultEncoding
in interface IEncodingSupport
org.eclipse.ui.editors.text.IEncodingSupport
public String getStatusHeader(IStatus status)
status
- the statuspublic String getStatusBanner(IStatus status)
status
- the statuspublic String getStatusMessage(IStatus status)
status
- the statusnull
otherwise
|
Eclipse Platform 2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |