Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.parsers
Class ISeriesEditorRPGOPMFormatLine

java.lang.Object
  extended by com.ibm.etools.iseries.parsers.ISeriesEditorRPGOPMFormatLine
All Implemented Interfaces:
IISeriesEditorConstantsColors, IISeriesEditorConstantsRPG, IISeriesEditorConstantsRPGOPM, IISeriesEditorFormatLine

public class ISeriesEditorRPGOPMFormatLine
extends Object
implements IISeriesEditorConstantsRPGOPM, IISeriesEditorFormatLine

This class performs format line and tab processing


Field Summary
protected  ISeriesEditorRPGOPMParser _parser
           
protected static String[] _straFormatLineNames
           
protected static String[] _straFormatLines
           
protected static String[] _straTabs
           
protected static Vector _vectorTabArrays
           
protected  LpexView _view
           
static String copyright
           
protected static int[] iaC
           
protected static int[] iaCM
           
protected static int[] iaData
           
protected static int[] iaDSS
           
protected static int[] iaDSS2
           
protected static int[] iaE
           
protected static int[] iaF
           
protected static int[] iaFC
           
protected static int[][] iaFieldArrays
           
protected static int[] iaFieldsC
           
protected static int[] iaFieldsCM
           
protected static int[] iaFieldsData
           
protected static int[] iaFieldsDSS
           
protected static int[] iaFieldsDSS2
           
protected static int[] iaFieldsE
           
protected static int[] iaFieldsF
           
protected static int[] iaFieldsFC
           
protected static int[] iaFieldsFK
           
protected static int[] iaFieldsFX
           
protected static int[] iaFieldsH
           
protected static int[] iaFieldsIDS
           
protected static int[] iaFieldsIF
           
protected static int[] iaFieldsIFX
           
protected static int[] iaFieldsIR
           
protected static int[] iaFieldsIR2
           
protected static int[] iaFieldsIRX
           
protected static int[] iaFieldsL
           
protected static int[] iaFieldsLoneI
           
protected static int[] iaFieldsMacSql
           
protected static int[] iaFieldsNC
           
protected static int[] iaFieldsOD
           
protected static int[] iaFieldsOF
           
protected static int[] iaFieldsOR
           
protected static int[] iaFieldsOR2
           
protected static int[] iaFieldsSpace
           
protected static int[] iaFieldsSV
           
protected static int[] iaFieldsU
           
protected static int[] iaFK
           
protected static int[] iaFX
           
protected static int[] iaH
           
protected static int[] iaIDS
           
protected static int[] iaIF
           
protected static int[] iaIFX
           
protected static int[] iaIR
           
protected static int[] iaIR2
           
protected static int[] iaIRX
           
protected static int[] iaL
           
protected static int[] iaLoneI
           
protected static int[] iaMacSql
           
protected static int[] iaNC
           
protected static int[] iaOD
           
protected static int[] iaOF
           
protected static int[] iaOR
           
protected static int[] iaOR2
           
protected static int[] iaShownFormatLines
           
protected static int[] iaSpace
           
protected static int[] iaSV
           
protected static int[] iaU
           
 
Fields inherited from interface com.ibm.etools.iseries.editor.IISeriesEditorConstantsRPGOPM
_straControlWords, _straDataWords, _straMacroWords, _straRPGFonts, COLUMN_C_OPCODE, CSPECCOMMENT_POS, FACTOR2_POS, FIELDLEN_POS, LENGTH_C_OPCODE, PAGE_INDEX_OPM_C_Calculation, PAGE_INDEX_OPM_Comment, PAGE_INDEX_OPM_E_Extension, PAGE_INDEX_OPM_F_File_Description, PAGE_INDEX_OPM_F_File_Description_Continuation, PAGE_INDEX_OPM_F_File_Description_Continuation_SFILE_RENAME, PAGE_INDEX_OPM_F_File_Description_Externally_Described_File, PAGE_INDEX_OPM_Full_Line, PAGE_INDEX_OPM_H_Control, PAGE_INDEX_OPM_I_Input_Data_Structure, PAGE_INDEX_OPM_I_Input_Data_Structure_Subfield, PAGE_INDEX_OPM_I_Input_Field_Description, PAGE_INDEX_OPM_I_Input_Field_Description_Externally_Described_File, PAGE_INDEX_OPM_I_Input_Initialization_Value, PAGE_INDEX_OPM_I_Input_Named_Constant, PAGE_INDEX_OPM_I_Input_Record_Identification, PAGE_INDEX_OPM_I_Input_Record_Identification_Externally_Described_File, PAGE_INDEX_OPM_L_Line_Counter, PAGE_INDEX_OPM_O_Output_Field_Description, PAGE_INDEX_OPM_O_Output_Record_Description, PAGE_INDEX_OPM_O_Output_To_Disk, PROMPT_C, PROMPT_CIND, PROMPT_CM, PROMPT_DATA, PROMPT_DSS, PROMPT_DSS2, PROMPT_E, PROMPT_F, PROMPT_FC, PROMPT_FK, PROMPT_FX, PROMPT_H, PROMPT_IDS, PROMPT_IF, PROMPT_IFX, PROMPT_IR, PROMPT_IR2, PROMPT_IRX, PROMPT_L, PROMPT_LAST, PROMPT_MACRO, PROMPT_NC, PROMPT_NONE, PROMPT_OD, PROMPT_OF, PROMPT_OR, PROMPT_OR2, PROMPT_SPACE, PROMPT_SQL, PROMPT_SV, PROMPT_U, STRING_HELP_DOC_PLUGIN_ID, STRING_HELP_TABLE_FILENAME, STRING_HELP_TABLE_PLUGIN_ID, STRING_MESSAGE_HELP_DOC_PLUGIN_ID, STRING_MESSAGE_HELP_TABLE_FILENAME, STRING_MESSAGE_HELP_TABLE_PLUGIN_ID
 
Fields inherited from interface com.ibm.etools.iseries.editor.IISeriesEditorConstantsRPG
_straSQLWords, _straSQLWordsWithComment, CMD_SETFORMATLINETEXT, CMD_SETTABS, COLUMN_C_FREE, COLUMN_COMMENT, COLUMN_FACTOR1, COLUMN_FACTOR2, COLUMN_KEYWORDS, COLUMN_PROC_NAME_BEGIN, COLUMN_PROC_NAME_END, COLUMN_PROC_SPEC, COLUMN_SPEC, FIELD_FACTOR1, FIELD_FACTOR2, FIELD_FROM, FIELD_OPCODE, FIELD_TOLENGTH, OPM_COLUMN_FACTOR1
 
Fields inherited from interface com.ibm.etools.iseries.edit.IISeriesEditorConstantsColors
COLOR_BLACK_WHITE, COLOR_BLUE_WHITE, COLOR_BRIGHTBLUE_WHITE, COLOR_BRIGHTGREEN_WHITE, COLOR_BRIGHTGREY_WHITE, COLOR_BRIGHTPINK_WHITE, COLOR_BRIGHTRED_WHITE, COLOR_BRIGHTRED_WHITE_SQUIGGLE, COLOR_BROWN_WHITE, COLOR_CYAN_WHITE, COLOR_DARK_BROWN_WHITE, COLOR_ERROR_HIGHLIGHT, COLOR_GREEN_WHITE, COLOR_GREY_WHITE, COLOR_HIGHLIGHT, COLOR_MAGENTA_WHITE, COLOR_PINK_WHITE, COLOR_RED_WHITE, COLOR_WHITE_BRIGHTRED
 
Fields inherited from interface com.ibm.etools.iseries.editor.IISeriesEditorFormatLine
Copyright
 
Constructor Summary
ISeriesEditorRPGOPMFormatLine(LpexView view, ISeriesEditorRPGOPMParser parser)
           
 
Method Summary
 void doFormatLine(int iSpecType)
          Update the format line based on the line spec type.
protected  void doTabs(int iSpecType)
          Create a string of the format "set tabs 5 6 10 20..."
 void doUpdate(int iSpecType)
          Update the current element's format line and tabs based on the given spec type
 void elementChanged(LpexView view)
          Called when the editor cursor changes to a different element.
 int[] getFields(LpexView view, int iElement)
          Returns the fields to be used for column sensitive editing
protected  String getFormatLine(int iSpecType)
          Returns the format line given the spec type.
static String[] getFormatLineNames()
          Returns the format line names
static String[] getFormatLines()
          Returns the format lines
static String[] getShownFormatLineNames()
          Returns the shown format lines names
static int[] getShownFormatLines()
          Returns the shown format lines spec types
static String[] getTabs()
          Returns the tab settings
 
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

_straFormatLines

protected static String[] _straFormatLines

_straFormatLineNames

protected static String[] _straFormatLineNames

_straTabs

protected static String[] _straTabs

_vectorTabArrays

protected static Vector _vectorTabArrays

iaFieldArrays

protected static int[][] iaFieldArrays

_view

protected LpexView _view

_parser

protected ISeriesEditorRPGOPMParser _parser

iaH

protected static final int[] iaH

iaF

protected static final int[] iaF

iaFX

protected static final int[] iaFX

iaFK

protected static final int[] iaFK

iaFC

protected static final int[] iaFC

iaE

protected static final int[] iaE

iaL

protected static final int[] iaL

iaIR

protected static final int[] iaIR

iaIR2

protected static final int[] iaIR2

iaIRX

protected static final int[] iaIRX

iaIF

protected static final int[] iaIF

iaIFX

protected static final int[] iaIFX

iaIDS

protected static final int[] iaIDS

iaDSS

protected static final int[] iaDSS

iaDSS2

protected static final int[] iaDSS2

iaSV

protected static final int[] iaSV

iaNC

protected static final int[] iaNC

iaC

protected static final int[] iaC

iaOR

protected static final int[] iaOR

iaOR2

protected static final int[] iaOR2

iaOF

protected static final int[] iaOF

iaOD

protected static final int[] iaOD

iaU

protected static final int[] iaU

iaCM

protected static final int[] iaCM

iaData

protected static final int[] iaData

iaMacSql

protected static final int[] iaMacSql

iaLoneI

protected static final int[] iaLoneI

iaSpace

protected static final int[] iaSpace

iaFieldsH

protected static final int[] iaFieldsH

iaFieldsF

protected static final int[] iaFieldsF

iaFieldsFX

protected static final int[] iaFieldsFX

iaFieldsFK

protected static final int[] iaFieldsFK

iaFieldsFC

protected static final int[] iaFieldsFC

iaFieldsE

protected static final int[] iaFieldsE

iaFieldsL

protected static final int[] iaFieldsL

iaFieldsIR

protected static final int[] iaFieldsIR

iaFieldsIR2

protected static final int[] iaFieldsIR2

iaFieldsIRX

protected static final int[] iaFieldsIRX

iaFieldsIF

protected static final int[] iaFieldsIF

iaFieldsIFX

protected static final int[] iaFieldsIFX

iaFieldsIDS

protected static final int[] iaFieldsIDS

iaFieldsDSS

protected static final int[] iaFieldsDSS

iaFieldsDSS2

protected static final int[] iaFieldsDSS2

iaFieldsSV

protected static final int[] iaFieldsSV

iaFieldsNC

protected static final int[] iaFieldsNC

iaFieldsC

protected static final int[] iaFieldsC

iaFieldsOR

protected static final int[] iaFieldsOR

iaFieldsOR2

protected static final int[] iaFieldsOR2

iaFieldsOF

protected static final int[] iaFieldsOF

iaFieldsOD

protected static final int[] iaFieldsOD

iaFieldsU

protected static final int[] iaFieldsU

iaFieldsCM

protected static final int[] iaFieldsCM

iaFieldsData

protected static final int[] iaFieldsData

iaFieldsMacSql

protected static final int[] iaFieldsMacSql

iaFieldsLoneI

protected static final int[] iaFieldsLoneI

iaFieldsSpace

protected static final int[] iaFieldsSpace

iaShownFormatLines

protected static final int[] iaShownFormatLines
Constructor Detail

ISeriesEditorRPGOPMFormatLine

public ISeriesEditorRPGOPMFormatLine(LpexView view,
                                     ISeriesEditorRPGOPMParser parser)
Method Detail

doFormatLine

public void doFormatLine(int iSpecType)
Update the format line based on the line spec type.

Specified by:
doFormatLine in interface IISeriesEditorFormatLine

getFormatLine

protected String getFormatLine(int iSpecType)
Returns the format line given the spec type.


doTabs

protected void doTabs(int iSpecType)
Create a string of the format "set tabs 5 6 10 20..."


doUpdate

public void doUpdate(int iSpecType)
Update the current element's format line and tabs based on the given spec type


elementChanged

public void elementChanged(LpexView view)
Called when the editor cursor changes to a different element.


getFormatLineNames

public static String[] getFormatLineNames()
Returns the format line names


getFormatLines

public static String[] getFormatLines()
Returns the format lines


getShownFormatLines

public static int[] getShownFormatLines()
Returns the shown format lines spec types


getShownFormatLineNames

public static String[] getShownFormatLineNames()
Returns the shown format lines names


getTabs

public static String[] getTabs()
Returns the tab settings


getFields

public int[] getFields(LpexView view,
                       int iElement)
Returns the fields to be used for column sensitive editing

Since:
6.0.1 //SE23218
See Also:
com.ibm.lpex.core.LpexFieldsProvider#getFields(com.ibm.lpex.core.LpexView, int)

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.