|
Eclipse Platform Release 3.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ui.editors.text.DefaultEncodingSupport
public class DefaultEncodingSupport
The standard implementation of IEncodingSupport.
| Constructor Summary | |
|---|---|
DefaultEncodingSupport()
Creates a new encoding support. |
|
| Method Summary | |
|---|---|
void |
createStatusEncodingChangeControl(Composite parent,
IStatus status)
Creates the control which allows to change the encoding. |
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. |
boolean |
isEncodingError(IStatus status)
Returns true if the given status is an
encoding error. |
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 IEncodingSupportencoding - the character encodingpublic String getEncoding()
IEncodingSupport
getEncoding in interface IEncodingSupportpublic String getDefaultEncoding()
IEncodingSupport
getDefaultEncoding in interface IEncodingSupportpublic String getStatusHeader(IStatus status)
status - the status
public String getStatusBanner(IStatus status)
status - the status
public String getStatusMessage(IStatus status)
status - the status
null otherwisepublic boolean isEncodingError(IStatus status)
true if the given status is an
encoding error.
status - the status to check
true if the given status is an encoding error
public void createStatusEncodingChangeControl(Composite parent,
IStatus status)
parent - the parent controlstatus - the status
|
Eclipse Platform Release 3.2 |
|||||||||
| 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, 2006. All rights reserved.