Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.edit.ui.preferences
Class AutoIndentFieldEditor

java.lang.Object
  extended by SystemIntegerFieldEditor
      extended by com.ibm.etools.iseries.edit.ui.preferences.AutoIndentFieldEditor
All Implemented Interfaces:
IISeriesEditorConstants, ISystemEditorConstants
Direct Known Subclasses:
SQLAutoIndentFieldEditor

public class AutoIndentFieldEditor
extends SystemIntegerFieldEditor
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
           
protected  Button indentCheckBox
          the checkbox control for indent
 
Fields inherited from interface com.ibm.etools.iseries.edit.IISeriesEditorConstants
ACTION_VERIFYPROGRAM_ID, APPLICATION_DIAGRAM, COMPILE_ERROR_MESSAGE_STYLE, FILE_TYPE_CL, FILE_TYPE_DDS, FILE_TYPE_OTHER, FILE_TYPE_RPGILE, FILE_TYPE_RPGOPM, MAX_DS_NESTING, OUTLINE_VIEW, 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_COMMAND_POS, PREF_COMMAND_POS_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_LINE_LENGTH, PREF_LINE_LENGTH_T, PREF_ONE_PARM_PER_LINE, PREF_ONE_PARM_PER_LINE_T, PREF_PARSER_ASSOC, PREF_PARSER_STYLES, 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, PROGRAM_VERIFICATION
 
Fields inherited from interface com.ibm.etools.systems.editor.ISystemEditorConstants
COMPILE_ERROR_CLASS_NAME, ICON_EDITOR_COMPILE, ICON_EDITOR_COMPILE_D, ICON_EDITOR_COMPILE_D_ID, ICON_EDITOR_COMPILE_D_ROOT, ICON_EDITOR_COMPILE_ID, ICON_EDITOR_COMPILE_ROOT, ICON_EDITOR_NEXT_ERROR, ICON_EDITOR_NEXT_ERROR_D, ICON_EDITOR_NEXT_ERROR_D_ID, ICON_EDITOR_NEXT_ERROR_D_ROOT, ICON_EDITOR_NEXT_ERROR_ID, ICON_EDITOR_NEXT_ERROR_ROOT, ICON_EDITOR_PREVIOUS_ERROR, ICON_EDITOR_PREVIOUS_ERROR_D, ICON_EDITOR_PREVIOUS_ERROR_D_ID, ICON_EDITOR_PREVIOUS_ERROR_D_ROOT, ICON_EDITOR_PREVIOUS_ERROR_ID, ICON_EDITOR_PREVIOUS_ERROR_ROOT, ICON_EXT, ICON_RELATIVE_PATH_DLCL16, ICON_RELATIVE_PATH_ELCL16, ICON_RELATIVE_PATH_FULL, ICON_SUFFIX, PREFIX, 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
 void setHelp(Composite parent, String helpPrefix)
          Use to override default help
 
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

indentCheckBox

protected Button indentCheckBox
the checkbox control for indent

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

doFillIntoGrid

protected void doFillIntoGrid(Composite parent,
                              int numColumns)
Fills this field editor's basic controls into the given parent.

See Also:
FieldEditor

getNumberOfControls

public int getNumberOfControls()
See Also:
FieldEditor

doStore

protected void doStore()
See Also:
FieldEditor

doLoadDefault

protected void doLoadDefault()
See Also:
FieldEditor

doLoad

protected void doLoad()
See Also:
FieldEditor

setEnabled

public void setEnabled(boolean enablement)
Method setEnabled

Parameters:
enablement - state

setHelp

public void setHelp(Composite parent,
                    String helpPrefix)
Use to override default help

Parameters:
parent - the parent composite
helpPrefix - the help prefix to use
Since:
7.1

Rational Developer for Power Systems Software
V7.6

Copyright © 2011 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.