com.ibm.etools.iseries.editor.preferences
Class AutoIndentFieldEditor
java.lang.Object
org.eclipse.jface.preference.FieldEditor
org.eclipse.jface.preference.StringFieldEditor
org.eclipse.jface.preference.IntegerFieldEditor
com.ibm.etools.iseries.editor.preferences.TIntegerFieldEditor
com.ibm.etools.iseries.editor.preferences.AutoIndentFieldEditor
- All Implemented Interfaces:
- IISeriesEditorConstants
- public class AutoIndentFieldEditor
- extends TIntegerFieldEditor
- implements IISeriesEditorConstants
A field editor which can be used to specify automatic indenting by a parser.
Tooltip and info pop are included.
The preference passed in the contructor is used to store the boolean value of
whether or not indent is enabled.
To retrieve the number of blanks, append the string BLANK_PROPERTY to the
preference string when querying the preference store.
Fields inherited from interface com.ibm.etools.iseries.editor.IISeriesEditorConstants |
ACTION_COMPILE_ID, ACTION_VERIFYPROGRAM_ID, FILE_TYPE_CL, FILE_TYPE_DDS, FILE_TYPE_OTHER, FILE_TYPE_RPGILE, FILE_TYPE_RPGOPM, PREF_AUTO_FORMAT, PREF_AUTO_FORMAT_T, PREF_AUTO_UPPER, PREF_AUTO_UPPER_T, PREF_BASE_PREFIX, PREF_BLANK, PREF_BLANK_SUFFIX, PREF_BLANK_T, PREF_COLSEDIT_T, PREF_COMMAND_POS, PREF_COMMAND_POS_T, PREF_DATE, PREF_DATE_T, PREF_HIGHLIGHT, PREF_HIGHLIGHT_BACKGROUND, PREF_HIGHLIGHT_BACKGROUND_T, PREF_HIGHLIGHT_T, PREF_INDENT, PREF_INDENT_T, PREF_INDENTATION, PREF_INDENTATION_T, PREF_LABEL_ABOVE_CMD, PREF_LABEL_ABOVE_CMD_T, PREF_LABEL_POS, PREF_LABEL_POS_T, PREF_ONE_PARM_PER_LINE, PREF_ONE_PARM_PER_LINE_T, PREF_RESEQ_INCR, PREF_RESEQ_INCR_T, PREF_RESEQ_SAVE, PREF_RESEQ_SAVE_T, PREF_RESEQ_START, PREF_RESEQ_START_T, PREF_SIGNATURE_T, PREF_SQL_SYNTAX_CHECK, PREF_SQL_SYNTAX_CHECK_T, PREF_SYNTAX_CHECK, PREF_SYNTAX_CHECK_T, PREF_TAB, PREF_TAB_GENERAL, PREF_TAB_GENERAL_T, PREF_TAB_T, PREF_TOOLTIP_SUFFIX |
Methods inherited from class org.eclipse.jface.preference.StringFieldEditor |
doCheckState, getErrorMessage, getStringValue, getTextControl, getTextControl, isEmptyStringAllowed, isValid, setEmptyStringAllowed, setEnabled, setErrorMessage, setFocus, setStringValue, setTextLimit, setValidateStrategy, showErrorMessage, valueChanged |
Methods inherited from class org.eclipse.jface.preference.FieldEditor |
applyFont, checkParent, clearErrorMessage, clearMessage, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, createControl, dispose, fillIntoGrid, fireStateChanged, fireValueChanged, getFieldEditorFontName, getLabelControl, getLabelControl, getLabelText, getPreferenceName, getPreferencePage, getPreferenceStore, init, load, loadDefault, presentsDefaultValue, setButtonLayoutData, setLabelText, setPreferenceName, setPreferencePage, setPreferenceStore, setPresentsDefaultValue, setPropertyChangeListener, showErrorMessage, showMessage, store |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
copyright
public static final String copyright
- See Also:
- Constant Field Values
AutoIndentFieldEditor
public AutoIndentFieldEditor(String name,
Composite parent)
- Constructor for AutoIndentFieldEditor.
- Parameters:
name
- the name of the preference to put in the storeparent
- the parent control
adjustForNumColumns
protected void adjustForNumColumns(int numColumns)
- See Also:
FieldEditor.adjustForNumColumns(int)
doFillIntoGrid
protected void doFillIntoGrid(Composite parent,
int numColumns)
- Fills this field editor's basic controls into the given parent.
- See Also:
FieldEditor.doFillIntoGrid(Composite, int)
getNumberOfControls
public int getNumberOfControls()
- See Also:
FieldEditor.getNumberOfControls()
doStore
protected void doStore()
- See Also:
FieldEditor.doStore()
doLoadDefault
protected void doLoadDefault()
- See Also:
FieldEditor.doLoadDefault()
doLoad
protected void doLoad()
- See Also:
FieldEditor.doLoad()
setEnabled
public void setEnabled(boolean enablement)
- Method setEnabled
- Overrides:
setEnabled
in class TIntegerFieldEditor
- Parameters:
enablement
- state
Copyright © 2005 IBM Corp. All Rights Reserved.
Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.