iSeries Remote Systems
v6.0.1

com.ibm.etools.iseries.editor.preferences
Class AutoIndentFieldEditor

java.lang.Object
  extended byorg.eclipse.jface.preference.FieldEditor
      extended byorg.eclipse.jface.preference.StringFieldEditor
          extended byorg.eclipse.jface.preference.IntegerFieldEditor
              extended bycom.ibm.etools.iseries.editor.preferences.TIntegerFieldEditor
                  extended bycom.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.


Field Summary
static String copyright
           
 
Fields inherited from class com.ibm.etools.iseries.editor.preferences.TIntegerFieldEditor
composite_parent, Copyright
 
Fields inherited from class org.eclipse.jface.preference.StringFieldEditor
UNLIMITED, VALIDATE_ON_FOCUS_LOST, VALIDATE_ON_KEY_STROKE
 
Fields inherited from class org.eclipse.jface.preference.FieldEditor
HORIZONTAL_GAP, IS_VALID, VALUE
 
Fields inherited from interface com.ibm.etools.iseries.editor.IISeriesEditorConstants
ACTION_COMPILE_ID, ACTION_VERIFYPROGRAM_ID, COMPILE_ERROR_CLASS_NAME, COMPILE_ERROR_MESSAGE_STYLE, FILE_TYPE_CL, FILE_TYPE_DDS, FILE_TYPE_OTHER, FILE_TYPE_RPGILE, FILE_TYPE_RPGOPM, MAX_DS_NESTING, 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, SYNTAX_ERROR_CLASS_NAME
 
Constructor Summary
AutoIndentFieldEditor(String name, Composite parent)
          Constructor for AutoIndentFieldEditor.
 
Method Summary
protected  void adjustForNumColumns(int numColumns)
           
protected  void doFillIntoGrid(Composite parent, int numColumns)
          Fills this field editor's basic controls into the given parent.
protected  void doLoad()
           
protected  void doLoadDefault()
           
protected  void doStore()
           
 int getNumberOfControls()
           
 void setEnabled(boolean enablement)
          Method setEnabled
 
Methods inherited from class com.ibm.etools.iseries.editor.preferences.TIntegerFieldEditor
refreshValidState, setHelp, setToolTipText, setValidRange
 
Methods inherited from class org.eclipse.jface.preference.IntegerFieldEditor
checkState, getIntValue
 
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
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values
Constructor Detail

AutoIndentFieldEditor

public AutoIndentFieldEditor(String name,
                             Composite parent)
Constructor for AutoIndentFieldEditor.

Parameters:
name - the name of the preference to put in the store
parent - the parent control
Method Detail

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

iSeries Remote Systems
v6.0.1

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.