iSeries Remote Systems
v6.0.0

com.ibm.etools.iseries.editor
Class ISeriesEditorRPGILEFormatLine

java.lang.Object
  extended bycom.ibm.etools.iseries.editor.ISeriesEditorRPGILEFormatLine
All Implemented Interfaces:
IISeriesEditorConstantsColors, IISeriesEditorConstantsRPG, IISeriesEditorConstantsRPGILE, IISeriesEditorFormatLine, com.ibm.lpex.core.LpexCursorListener

public class ISeriesEditorRPGILEFormatLine
extends Object
implements com.ibm.lpex.core.LpexCursorListener, IISeriesEditorConstantsRPGILE, IISeriesEditorFormatLine

This class performs format line and tab processing


Field Summary
protected  ISeriesEditorRPGILEParser _parser
           
protected static String[] _straFieldStrings
           
protected static String[] _straFormatLineNames
           
protected static String[] _straFormatLines
           
protected static String[] _straTabs
           
protected static String _strFieldsC
           
protected static String _strFieldsCF
           
protected static String _strFieldsCFE
           
protected static String _strFieldsCFS
           
protected static String _strFieldsCM
           
protected static String _strFieldsD
           
protected static String _strFieldsData
           
protected static String _strFieldsDC
           
protected static String _strFieldsDX
           
protected static String _strFieldsF
           
protected static String _strFieldsFC
           
protected static String _strFieldsH
           
protected static String _strFieldsIF
           
protected static String _strFieldsIFX
           
protected static String _strFieldsIR
           
protected static String _strFieldsIR2
           
protected static String _strFieldsIRX
           
protected static String _strFieldsMacSql
           
protected static String _strFieldsOD
           
protected static String _strFieldsOF
           
protected static String _strFieldsOFC
           
protected static String _strFieldsOR
           
protected static String _strFieldsOR2
           
protected static String _strFieldsP
           
protected static String _strFieldsPC
           
protected static String _strFieldsSpace
           
protected static String _strFieldsXF2
           
protected static String _strFieldsXF2C
           
protected static Vector _vectorTabArrays
           
protected  com.ibm.lpex.core.LpexView _view
           
static String copyright
           
protected static int[] iaC
           
protected static int[] iaCF
           
protected static int[] iaCFE
           
protected static int[] iaCFS
           
protected static int[] iaCM
           
protected static int[] iaD
           
protected static int[] iaData
           
protected static int[] iaDC
           
protected static int[] iaDX
           
protected static int[] iaF
           
protected static int[] iaFC
           
protected static int[] iaH
           
protected static int[] iaIF
           
protected static int[] iaIFX
           
protected static int[] iaIR
           
protected static int[] iaIR2
           
protected static int[] iaIRX
           
protected static int[] iaMacSql
           
protected static int[] iaOD
           
protected static int[] iaOF
           
protected static int[] iaOFC
           
protected static int[] iaOR
           
protected static int[] iaOR2
           
protected static int[] iaP
           
protected static int[] iaPC
           
protected static int[] iaShownFormatLines
           
protected static int[] iaSpace
           
protected static int[] iaXF2
           
protected static int[] iaXF2C
           
 
Fields inherited from interface com.ibm.etools.iseries.editor.IISeriesEditorConstantsRPGILE
_straControlWords, _straDataWords, _straMacroWords, _straRPGFonts, _straXF2_opcodes, _straXF2_possible_opcodes, CLASS_COMMENT, CLASS_CONTROL, CLASS_PROCEDURE, CLASS_SPACE, CLASS_SQL, CLASS_SUBROUTINE, CLEVEL_LEN, CLEVEL_POS, COMMENT_POS, CONDIND_LEN, CONDIND_POS, CONTINUATION_INDENT, DECPOS_LEN, DECPOS_POS, DIRECTIVE_POS, EOLCOMMENT_POS, EXTFACTOR2_LEN, EXTFACTOR2_POS, FACTOR1_LEN, FACTOR1_POS, FACTOR2_LEN, FACTOR2_POS, FIELDDEF_LEN, FIELDDEF_POS, FIELDLEN_LEN, FIELDLEN_POS, FONT_COMMENT, FONT_DEFAULT, FREE_LEN, FREE_POS, IND_LEN, INDENT_LIMIT, LENGTH_C_OPCODE, MAX_NEST, NUM_OF_OPCODES, OPCODE_LEN, OPCODE_POS, PAGE_INDEX_ILE_C_Calculation, PAGE_INDEX_ILE_C_Calculation_Extended_Factor_2, PAGE_INDEX_ILE_C_Calculation_Extended_Factor_2_Continuation, PAGE_INDEX_ILE_C_Calculation_Free_Form, PAGE_INDEX_ILE_Comment, PAGE_INDEX_ILE_D_Definition, PAGE_INDEX_ILE_D_Definition_Continuation, PAGE_INDEX_ILE_D_Definition_Continued_Name_Line, PAGE_INDEX_ILE_F_File_Description, PAGE_INDEX_ILE_F_File_Description_Continuation, PAGE_INDEX_ILE_Full_Line, PAGE_INDEX_ILE_H_Control, PAGE_INDEX_ILE_I_Input_Field_Description, PAGE_INDEX_ILE_I_Input_Field_Description_Externally_Described_File, PAGE_INDEX_ILE_I_Input_Record_Identification, PAGE_INDEX_ILE_I_Input_Record_Identification_Externally_Described_File, PAGE_INDEX_ILE_I_Input_Record_Identification_Logical_Relationship, PAGE_INDEX_ILE_O_Output_Field_Description, PAGE_INDEX_ILE_O_Output_Field_Description_Continuation, PAGE_INDEX_ILE_O_Output_Record_Identification, PAGE_INDEX_ILE_O_Output_Record_Identification_AND_OR, PAGE_INDEX_ILE_O_Output_to_Disk, PAGE_INDEX_ILE_P_Procedure, PAGE_INDEX_ILE_P_Procedure_Continued_Name_Line, PREF_COLUMN_CFIXED_MAX, PREF_COLUMN_CFREE_MAX, PREF_COLUMN_CFREE_MIN, PREF_COLUMN_CFREE_START, PROMPT_C, PROMPT_CF, PROMPT_CFE, PROMPT_CFS, PROMPT_CM, PROMPT_D, PROMPT_DATA, PROMPT_DC, PROMPT_DX, PROMPT_F, PROMPT_FC, PROMPT_H, PROMPT_IF, PROMPT_IFX, PROMPT_IR, PROMPT_IR2, PROMPT_IRX, PROMPT_LAST, PROMPT_MACRO, PROMPT_NONE, PROMPT_OD, PROMPT_OF, PROMPT_OFC, PROMPT_OR, PROMPT_OR2, PROMPT_P, PROMPT_PC, PROMPT_SPACE, PROMPT_SQL, PROMPT_XF2, PROMPT_XF2C, RESINDEQ_POS, RESINDER_POS, RESINDNR_POS, RESINDS_LEN, RESINDS_POS, RESULTFIELD_LEN, RESULTFIELD_POS, RPGSPEC_C, RPGSPEC_CF, RPGSPEC_D, RPGSPEC_E, RPGSPEC_F, RPGSPEC_H, RPGSPEC_I, RPGSPEC_L, RPGSPEC_O, RPGSPEC_P, RPGSPEC_U, SIGNIFICANT_LEN, SLASHSLASHEOL_POS, SPECTYPE_POS, SRCRECLEN, 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, XACQ, XADD, XADDDUR, XALLOC, XANDEQ, XANDGE, XANDGT, XANDLE, XANDLT, XANDNE, XBEGSR, XBITOFF, XBITON, XBLANK, XCAB, XCABEQ, XCABGE, XCABGT, XCABLE, XCABLT, XCABNE, XCALL, XCALLB, XCALLP, XCAS, XCASEQ, XCASGE, XCASGT, XCASLE, XCASLT, XCASNE, XCAT, XCHAIN, XCHECK, XCHECKR, XCLEAR, XCLOSE, XCOMMIT, XCOMP, XDEALLOC, XDEFINE, XDELETE, XDIV, XDO, XDOU, XDOUEQ, XDOUGE, XDOUGT, XDOULE, XDOULT, XDOUNE, XDOW, XDOWEQ, XDOWGE, XDOWGT, XDOWLE, XDOWLT, XDOWNE, XDSPLY, XDUMP, XELSE, XELSEIF, XEND, XENDCS, XENDDO, XENDFOR, XENDIF, XENDMON, XENDSL, XENDSR, XEVAL, XEVALR, XEXCEPT, XEXFMT, XEXSR, XEXTRCT, XFEOD, XFOR, XFORCE, XGOTO, XIF, XIFEQ, XIFGE, XIFGT, XIFLE, XIFLT, XIFNE, XIN, XITER, XKFLD, XKLIST, XLEAVE, XLEAVESR, XLOOKUP, XMHHZO, XMHLZO, XMLHZO, XMLLZO, XMONITOR, XMOVE, XMOVEA, XMOVEL, XMULT, XMVR, XNEXT, XOCCUR, XON_ERROR, XOPEN, XOREQ, XORGE, XORGT, XORLE, XORLT, XORNE, XOTHER, XOUT, XPARM, XPLIST, XPOST, XREAD, XREADC, XREADE, XREADP, XREADPE, XREALLOC, XREL, XRESET, XRETURN, XROLBK, XSCAN, XSELECT, XSETGT, XSETLL, XSETOFF, XSETON, XSHTDN, XSORTA, XSQRT, XSUB, XSUBDUR, XSUBST, XTAG, XTEST, XTESTB, XTESTN, XTESTZ, XTIME, XUNLOCK, XUPDATE, XWHEN, XWHENEQ, XWHENGE, XWHENGT, XWHENLE, XWHENLT, XWHENNE, XWRITE, XXFOOT, XXLATE, XZ_ADD, XZ_SUB
 
Fields inherited from interface com.ibm.etools.iseries.editor.IISeriesEditorConstantsRPG
_straSQLWords, CMD_SETFIELDS, CMD_SETFIELDSBLANK, CMD_SETFORMATLINETEXT, CMD_SETTABS, COLUMN_C_FREE, COLUMN_C_OPCODE, 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.editor.IISeriesEditorConstantsColors
COLOR_BLACK_WHITE, COLOR_BLUE_WHITE, COLOR_BRIGHTBLUE_WHITE, COLOR_BRIGHTGREEN_WHITE, COLOR_BRIGHTGREY_WHITE, COLOR_BRIGHTPINK_WHITE, COLOR_BRIGHTRED_WHITE, COLOR_BROWN_WHITE, COLOR_CYAN_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
ISeriesEditorRPGILEFormatLine(com.ibm.lpex.core.LpexView view, ISeriesEditorRPGILEParser parser)
          Constructor
 
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(com.ibm.lpex.core.LpexView view)
          Called when the editor cursor changes to a different element.
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

_straFieldStrings

protected static String[] _straFieldStrings

_vectorTabArrays

protected static Vector _vectorTabArrays

_view

protected com.ibm.lpex.core.LpexView _view

_parser

protected ISeriesEditorRPGILEParser _parser

iaH

protected static final int[] iaH

iaF

protected static final int[] iaF

iaFC

protected static final int[] iaFC

iaD

protected static final int[] iaD

iaDC

protected static final int[] iaDC

iaDX

protected static final int[] iaDX

iaP

protected static final int[] iaP

iaPC

protected static final int[] iaPC

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

iaC

protected static final int[] iaC

iaXF2

protected static final int[] iaXF2

iaXF2C

protected static final int[] iaXF2C

iaCFS

protected static final int[] iaCFS

iaCF

protected static final int[] iaCF

iaCFE

protected static final int[] iaCFE

iaOR

protected static final int[] iaOR

iaOR2

protected static final int[] iaOR2

iaOF

protected static final int[] iaOF

iaOFC

protected static final int[] iaOFC

iaOD

protected static final int[] iaOD

iaCM

protected static final int[] iaCM

iaData

protected static final int[] iaData

iaMacSql

protected static final int[] iaMacSql

iaSpace

protected static final int[] iaSpace

_strFieldsH

protected static final String _strFieldsH
See Also:
Constant Field Values

_strFieldsF

protected static final String _strFieldsF
See Also:
Constant Field Values

_strFieldsFC

protected static final String _strFieldsFC
See Also:
Constant Field Values

_strFieldsD

protected static final String _strFieldsD
See Also:
Constant Field Values

_strFieldsDC

protected static final String _strFieldsDC
See Also:
Constant Field Values

_strFieldsDX

protected static final String _strFieldsDX
See Also:
Constant Field Values

_strFieldsP

protected static final String _strFieldsP
See Also:
Constant Field Values

_strFieldsPC

protected static final String _strFieldsPC
See Also:
Constant Field Values

_strFieldsIR

protected static final String _strFieldsIR
See Also:
Constant Field Values

_strFieldsIR2

protected static final String _strFieldsIR2
See Also:
Constant Field Values

_strFieldsIRX

protected static final String _strFieldsIRX
See Also:
Constant Field Values

_strFieldsIF

protected static final String _strFieldsIF
See Also:
Constant Field Values

_strFieldsIFX

protected static final String _strFieldsIFX
See Also:
Constant Field Values

_strFieldsC

protected static final String _strFieldsC
See Also:
Constant Field Values

_strFieldsXF2

protected static final String _strFieldsXF2
See Also:
Constant Field Values

_strFieldsXF2C

protected static final String _strFieldsXF2C
See Also:
Constant Field Values

_strFieldsCFS

protected static final String _strFieldsCFS
See Also:
Constant Field Values

_strFieldsCF

protected static final String _strFieldsCF
See Also:
Constant Field Values

_strFieldsCFE

protected static final String _strFieldsCFE
See Also:
Constant Field Values

_strFieldsOR

protected static final String _strFieldsOR
See Also:
Constant Field Values

_strFieldsOR2

protected static final String _strFieldsOR2
See Also:
Constant Field Values

_strFieldsOF

protected static final String _strFieldsOF
See Also:
Constant Field Values

_strFieldsOFC

protected static final String _strFieldsOFC
See Also:
Constant Field Values

_strFieldsOD

protected static final String _strFieldsOD
See Also:
Constant Field Values

_strFieldsCM

protected static final String _strFieldsCM
See Also:
Constant Field Values

_strFieldsData

protected static final String _strFieldsData
See Also:
Constant Field Values

_strFieldsMacSql

protected static final String _strFieldsMacSql
See Also:
Constant Field Values

_strFieldsSpace

protected static final String _strFieldsSpace
See Also:
Constant Field Values

iaShownFormatLines

protected static final int[] iaShownFormatLines
Constructor Detail

ISeriesEditorRPGILEFormatLine

public ISeriesEditorRPGILEFormatLine(com.ibm.lpex.core.LpexView view,
                                     ISeriesEditorRPGILEParser parser)
Constructor

Method Detail

doFormatLine

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

Specified by:
doFormatLine in interface IISeriesEditorFormatLine

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(com.ibm.lpex.core.LpexView view)
Called when the editor cursor changes to a different element.

Specified by:
elementChanged in interface com.ibm.lpex.core.LpexCursorListener

getFormatLine

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


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


iSeries Remote Systems
v6.0.0

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.