| org.eclipse.ui.ide.dialogs.AbstractEncodingFieldEditor
All known Subclasses: org.eclipse.ui.ide.dialogs.ResourceEncodingFieldEditor, org.eclipse.ui.ide.dialogs.EncodingFieldEditor,
AbstractEncodingFieldEditor | abstract public class AbstractEncodingFieldEditor extends FieldEditor (Code) | | The abstract superclass of field editors used to set an encoding. Any user
entered encodings will be added to the list of encodings available via
org.eclipse.ui.ide.IDEEncoding .
Subclasses may extend, but must call createEncodingGroup
during doFillIntoGrid .
See Also: org.eclipse.ui.ide.IDEEncoding since: 3.1 |
Constructor Summary | |
protected | AbstractEncodingFieldEditor() Creates a new encoding field editor with no settings set. | protected | AbstractEncodingFieldEditor(String name, String labelText, Composite parent) Creates a new encoding field editor with the given preference name, label
and parent. | protected | AbstractEncodingFieldEditor(String name, String labelText, String groupTitle, Composite parent) Creates a new encoding field editor with the given preference name, label
and parent.
Parameters: name - the name of the preference this field editor works on Parameters: labelText - the label text of the field editor Parameters: groupTitle - the title for the field editor's control. |
AbstractEncodingFieldEditor | protected AbstractEncodingFieldEditor()(Code) | | Creates a new encoding field editor with no settings set.
|
AbstractEncodingFieldEditor | protected AbstractEncodingFieldEditor(String name, String labelText, Composite parent)(Code) | | Creates a new encoding field editor with the given preference name, label
and parent.
Parameters: name - the name of the preference this field editor works on Parameters: labelText - the label text of the field editor Parameters: parent - the parent of the field editor's control |
AbstractEncodingFieldEditor | protected AbstractEncodingFieldEditor(String name, String labelText, String groupTitle, Composite parent)(Code) | | Creates a new encoding field editor with the given preference name, label
and parent.
Parameters: name - the name of the preference this field editor works on Parameters: labelText - the label text of the field editor Parameters: groupTitle - the title for the field editor's control. If groupTitle is null the control will be unlabelled(by default a Composite instead of a Group. Parameters: parent - the parent of the field editor's control See Also: AbstractEncodingFieldEditor.setGroupTitle(String) since: 3.3 |
adjustForNumColumns | protected void adjustForNumColumns(int numColumns)(Code) | | |
createEncodingGroup | protected Composite createEncodingGroup(Composite parent, int numColumns)(Code) | | Creates a composite with all the encoding controls.
Subclasses may extend.
Parameters: parent - the parent widget Parameters: numColumns - the number of columns in the parent the group control |
defaultButtonText | protected String defaultButtonText()(Code) | | Returns the text for the default encoding button.
the text for the default encoding button |
doFillIntoGrid | protected void doFillIntoGrid(Composite parent, int numColumns)(Code) | | |
doLoad | protected void doLoad()(Code) | | |
doLoadDefault | protected void doLoadDefault()(Code) | | |
findDefaultEncoding | protected String findDefaultEncoding()(Code) | | Returns the default encoding for the object being shown.
the default encoding for the object being shown |
getDefaultEnc | protected String getDefaultEnc()(Code) | | Returns the default encoding.
the default encoding |
getNumberOfControls | public int getNumberOfControls()(Code) | | |
getSelectedEncoding | protected String getSelectedEncoding()(Code) | | Returns the currently selected encoding.
the currently selected encoding |
getStoredValue | abstract protected String getStoredValue()(Code) | | Returns the value that is currently stored for the encoding.
the currently stored encoding |
hasSameEncoding | protected boolean hasSameEncoding(String encodingSetting)(Code) | | Returns whether or not the encoding setting changed.
Parameters: encodingSetting - the setting from the page. boolean true if the resource encoding is the sameas before. |
isDefaultSelected | boolean isDefaultSelected()(Code) | | Return whether or not the default has been selected.
true if the default button has been selected. |
isValid | public boolean isValid()(Code) | | |
refreshValidState | protected void refreshValidState()(Code) | | |
setEnabled | public void setEnabled(boolean enabled, Composite parent)(Code) | | |
setGroupTitle | public void setGroupTitle(String groupTitle)(Code) | | Set the title of the group to groupTitle. If this is not called a default
title is used. If groupTitle is null the control will be
unlabelled (by default a
Composite instead of a
Group .
NOTE this value must be set before
AbstractEncodingFieldEditor.createControl(Composite) is called or it will be ignored.
Parameters: groupTitle - The groupTitle to set. since: 3.3 |
setPreferenceStore | public void setPreferenceStore(IPreferenceStore store)(Code) | | |
|
|