| java.lang.Object org.eclipse.ui.internal.ide.LineDelimiterEditor
LineDelimiterEditor | public class LineDelimiterEditor (Code) | | A class to handle editing of the Line delimiter preferences in core.
since: 3.1 |
Constructor Summary | |
public | LineDelimiterEditor(Composite composite) Creates a new encoding field editor with the given preference name, label
and parent. | public | LineDelimiterEditor(Composite composite, IProject project) Creates a new encoding field editor with the given preference name, label
and parent. |
Method Summary | |
protected void | createControl(Composite parent) Creates this field editor's main control containing all of its basic
controls. | public void | doLoad() Load the list items from core and update the state of the buttons to
match what the preference is currently set to. | protected String[] | getChoices() Returns the default setting for the object being shown. | public String | getStoredValue() Returns the value that is currently stored for the encoding. | public void | loadDefault() Initializes this field editor with the preference value from the
preference store. | public void | setEnabled(boolean enabled) Set whether or not the controls in the field editor
are enabled. | public void | store() Store the currently selected line delimiter value in the preference
store. |
LineDelimiterEditor | public LineDelimiterEditor(Composite composite)(Code) | | Creates a new encoding field editor with the given preference name, label
and parent.
Parameters: composite - the parent of the field editor's control |
LineDelimiterEditor | public LineDelimiterEditor(Composite composite, IProject project)(Code) | | Creates a new encoding field editor with the given preference name, label
and parent.
Parameters: composite - the parent of the field editor's control Parameters: project - the project to set preferences on |
createControl | protected void createControl(Composite parent)(Code) | | Creates this field editor's main control containing all of its basic
controls.
Parameters: parent - the parent control |
doLoad | public void doLoad()(Code) | | Load the list items from core and update the state of the buttons to
match what the preference is currently set to.
|
getChoices | protected String[] getChoices()(Code) | | Returns the default setting for the object being shown.
the default setting for the object being shown |
getStoredValue | public String getStoredValue()(Code) | | Returns the value that is currently stored for the encoding.
the currently stored encoding |
loadDefault | public void loadDefault()(Code) | | Initializes this field editor with the preference value from the
preference store.
|
setEnabled | public void setEnabled(boolean enabled)(Code) | | Set whether or not the controls in the field editor
are enabled.
Parameters: enabled - The enabled state. |
store | public void store()(Code) | | Store the currently selected line delimiter value in the preference
store.
|
|
|