Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.parsers
Class ISeriesEditorDDSParser

java.lang.Object
  extended by LpexCommonParser
      extended by com.ibm.etools.iseries.parsers.ISeriesEditorParser
          extended by com.ibm.etools.iseries.parsers.ISeriesEditorDDSParser
All Implemented Interfaces:
IISeriesCompileErrorInfoViewHandler, IISeriesEditorConstants, IISeriesEditorConstantsColors, IISeriesEditorConstantsDDS, IISeriesEditorParser, ISystemEditorConstants, ISystemTextEditorAdapterContributor, ISystemTextEditorContextContributor, ISystemTextEditorDebugContributor, ISystemTextEditorHelpContributor, ISystemTextEditorParser, ISystemTextEditorSourceViewerConfigurationContributor

public class ISeriesEditorDDSParser
extends ISeriesEditorParser
implements IISeriesEditorConstantsDDS

Parser for DDS content.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.ibm.etools.iseries.parsers.ISeriesEditorParser
ISeriesEditorParser.DataLineMarkListener, ISeriesEditorParser.RunnableParseAll
 
Field Summary
protected static ResourceBundle _bundle
          the resource bundle for this parser
protected  SystemTextEditorHelpHandler _helpHandler
           
protected  SystemTextEditorHelpHandler _helpMessageHandler
           
protected  int _iDDSType
           
protected  long _lClassComment
           
protected  long _lClassFileKwd
           
protected  long _lClassFld
           
protected  long _lClassFldKwd
           
protected  long _lClassHelp
           
protected  long _lClassHelpKwd
           
protected  long _lClassJoin
           
protected  long _lClassJoinKwd
           
protected  long _lClassKey
           
protected  long _lClassKeyKwd
           
protected  long _lClassMask
           
protected  long _lClassRec
           
protected  long _lClassRecKwd
           
protected  long _lClassSelo
           
protected  long _lClassSpace
           
protected  ISeriesEditorDDSPrefixProcessor _prefixer
           
protected  ISeriesEditorDDSProgramVerifier _programVerifier
           
protected  ISeriesEditorDDSPrompter _prompter
           
protected  ISeriesEditorDDSFormatLine _ruler
           
protected  ISeriesEditorDDSSyntaxChecker _syntaxChecker
           
protected  ISeriesEditorDDSTokenizer _tokenizer
           
static String copyright
           
static int LAST_DELETED_ELEMENT_UNINITIALIZED
           
 
Fields inherited from class com.ibm.etools.iseries.parsers.ISeriesEditorParser
_action, _bDataElementChanged, _bDebugMode, _bFromStylePreview, _bIgnoreParseExtras, _bIsPrimaryLpexView, _bLocal, _bOutlineViewNeedsResetting, _bParseAll, _bParsing, _compileEditManager, _compileErrorMarkerListener, _compileMarkNames, _dataLineMarkID, _dataLineMarkListener, _editor, _helpResourceBundle, _iCCSID, _iFile, _labelProvider, _member, _menuLanguageHelp, _menuSource, _outlinePage, _strImagePath, _strLocalFileName, _strSpecialChars, _view, DATA_LINE
 
Fields inherited from interface com.ibm.etools.iseries.editor.IISeriesEditorConstantsDDS
AS400_DISPLAY_FILE, AS400_ICOMM_FILE, AS400_LOGICAL_FILE, AS400_PHYSICAL_FILE, AS400_PRINTER_FILE, AS400_UNKNOWN_FILE, COLUMN_AND_OR_COMMENT, COLUMN_COMMENT, COLUMN_COND_IND_1, COLUMN_COND_IND_2, COLUMN_COND_IND_3, COLUMN_COND_IND_DSP, COLUMN_CONSTBLNK, COLUMN_DATA_TYPE, COLUMN_DDS_EXTRA, COLUMN_DEC, COLUMN_KEY_ENTRY, COLUMN_LAST, COLUMN_LENGTH, COLUMN_LOCATION_LINE, COLUMN_LOCATION_POS, COLUMN_NAME, COLUMN_NOT_COND_IND_1, COLUMN_NOT_COND_IND_2, COLUMN_NOT_COND_IND_3, COLUMN_REFERENCE, COLUMN_RESERVED, COLUMN_SPEC, COLUMN_USAGE, LENGTH_COND_IND_1, LENGTH_COND_IND_2, LENGTH_COND_IND_3, LENGTH_COND_IND_DSP, LENGTH_CONSTBLNK, LENGTH_DATA_TYPE, LENGTH_KEY_ENTRY, LENGTH_LENGTH, LENGTH_LOCATION_LINE, LENGTH_LOCATION_POS, LENGTH_NAME, LENGTH_NOT_COND_IND, LENGTH_NOT_COND_IND_1, LENGTH_NOT_COND_IND_2, LENGTH_NOT_COND_IND_3, LENGTH_POS17TO44, LENGTH_POS17TO80, LENGTH_POS7TO44, LENGTH_REFERENCE, LENGTH_RESERVED, LENGTH_RESPONSE_INDICATOR, PREF_DDS_PREFIX, PROMPT_ALL, PROMPT_COMMENT, PROMPT_FIELD_HEADING, PROMPT_FIELD_KEYWORD, PROMPT_FILE_KEYWORD, PROMPT_HELP_HEADING, PROMPT_HELP_KEYWORD, PROMPT_JOIN_HEADING, PROMPT_JOIN_KEYWORD, PROMPT_KEY_HEADING, PROMPT_KEY_KEYWORD, PROMPT_LAST, PROMPT_NONE, PROMPT_RECORD_HEADING, PROMPT_RECORD_KEYWORD, PROMPT_SELECT_OMIT_HEADING, PROMPT_SPECIAL, PROMPT_UNDEFINED, SPEC_FIELD, SPEC_HELP, SPEC_JOIN, SPEC_KEYFIELD, SPEC_OMIT, SPEC_RECORD, SPEC_SELECT, STRING_DDS_SPECIAL_COMMENT, STRING_DDS_SPECIAL_FA, STRING_FONT_COMMENT, STRING_FONT_FIELD_HEADING_DT, STRING_FONT_FIELD_HEADING_I, STRING_FONT_FIELD_HEADING_L, STRING_FONT_FIELD_HEADING_P, STRING_FONT_FIELD_KEYWORD_DTI, STRING_FONT_FIELD_KEYWORD_PL, STRING_FONT_FILE_KEYWORD_DTI, STRING_FONT_FILE_KEYWORD_PL, STRING_FONT_HELP_HEADING_D, STRING_FONT_HELP_KEYWORD_D, STRING_FONT_JOIN_HEADING_L, STRING_FONT_JOIN_KEYWORD_L, STRING_FONT_KEY_HEADING_PL, STRING_FONT_KEY_KEYWORD_PL, STRING_FONT_NONE, STRING_FONT_RECORD_HEADING_DTI, STRING_FONT_RECORD_HEADING_PL, STRING_FONT_RECORD_KEYWORD_DTI, STRING_FONT_RECORD_KEYWORD_PL, STRING_FONT_SELECT_OMIT_HEADING_L, STRING_FONT_SPECIAL, STRING_FONT_UNDEFINED, 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, STRING_NOT_COND_IND
 
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.parsers.IISeriesEditorParser
Copyright
 
Fields inherited from interface com.ibm.etools.systems.editor.ISystemTextEditorAdapterContributor
Copyright
 
Fields inherited from interface com.ibm.etools.systems.editor.ISystemTextEditorContextContributor
Copyright
 
Fields inherited from interface com.ibm.etools.systems.editor.ISystemTextEditorDebugContributor
Copyright
 
Fields inherited from interface com.ibm.etools.systems.editor.ISystemTextEditorHelpContributor
Copyright
 
Fields inherited from interface com.ibm.etools.systems.editor.ISystemTextEditorSourceViewerConfigurationContributor
Copyright
 
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
ISeriesEditorDDSParser(LpexView view)
          Constructor
 
Method Summary
 void cleanupMenu(ITextEditor editor, IMenuManager menuManager)
          Removes the Source and Compile menu items
 void cleanupToolBar(ITextEditor editor, IToolBarManager toolBarManager)
          removes the next and previous error toolbar buttons
protected  void contributeMenuItems(IMenuManager menuRoot, boolean bPopupMenu)
          Adds common menu items to the top of the root menu.
 void contributeToMenu(ITextEditor editor, IMenuManager menuRoot)
          Contributes menu bar items.
 void contributeToPopupMenu(ITextEditor editor, IMenuManager menuRoot)
          Contributes popup menu bar items.
 void contributeToToolBar(ITextEditor editor, IToolBarManager toolBarManager)
          Contributes tool bar items.
protected  void createActions(ITextEditor editor)
          Creates menubar and toolbar actions.
protected  IContentOutlinePage createOutlineView()
          Return DDS EMF.Edit Outline View
protected  int determineElement(int iElement)
          Sets the line class bits, and returns the opcode type.
protected  int determineLine(int iLine)
          Deprecated.  
 void finishedSaving(ITextEditor editor)
          Method finishedSaving Does nothing for the DDS Parser
 String getCommentStyleCharacters()
          Returns the style characters used for styling comments ("cs").
protected  int getCommentType(String strLine)
          Port of evfslxld.c, IsCommentLine
 int getDDSType()
           
 int getElementSpecType(int iElement, String strElement)
          Returns the spec type of a Element.
 LpexFieldsProvider getFieldsProvider()
          Retrieves the fields provided for the parser.
protected  int getHeadingKeywordType(int iHeadingSpecType)
          Returns the keyword type that corresponds to the heading line type.
protected  int getHeadingType(int iElement, String strElement)
          Port of evfslxld.c, IsHeadingLine
protected  int getHeadingTypePrevious(int iElement)
          Port of evfslxld.c, FindPreviousHeadingElement
 SystemTextEditorHelpHandler getHelpHandler()
          Returns the help handler for this parser.
 String getLanguage()
          Declared in ISystemEditorParser
protected  long getLineClassTypes(int iSpecType)
          Given spectype return long with all of the class types bits or-ed in.
 int getLineSpecType(int iLine, String strLine)
          Deprecated.  
 ISeriesEditorDDSContentOutlinePage getOutlineView()
          Retrieve DDS model corresponding to the source in the editor
 String getPopupItems(int popupLocation)
          56708 Return the popup menu items
 ResourceBundle getProfile()
           
 IISeriesEditorProgramVerifier getProgramVerifier()
          Returns the program verifier.
 IISeriesEditorPromptAdapter getPromptAdapter()
          Method declared on ISeriesEditorParser.
 String getPromptFormatLine(int iSpecType)
          Returns the format string of the line spec type.
 IISeriesEditorSyntaxChecker getSyntaxChecker()
          Returns the syntax checker.
protected  void initializeColors()
          Initializes the display colors.
 void initializeElementClassTypes()
          Registers the element class types with Lpex
 void initializeLpexView(LpexView lpexView)
          Declared in IISeriesEditorParser Update lpex profile with tabbing support.
protected  void initParser()
          initialize parser
 boolean isLineDebuggable(int iLine)
          Returns false to let the super class know that this parser does not support debugging.
 void parseElements(int iElementFirst, int iElementLast, int iElementCurrent)
          Parse range of elements This just calls parseLine(i) for each element, subclasses can handle it differently if they want (e.g.
 void parseLine(int iElement)
          Port of evfslxss.c, LineParse
protected  void parseRegion(int iElementFirst, int iElementLast, IProgressMonitor progressMonitor)
          Parses a contiguous set of Elements given the first and last Element numbers.
 void promptRequest()
          Called when the F4 key was just pressed, before the focus is given to the prompter.
 void setDDSType(String strName)
          Sets the DDS type from the file name extension.
 void setEditor(LpexTextEditor editor)
          Need to overwrite because we do not have the editor reference at construction time Once the SystemTextEditor has an adapter factory this method can be deleted
 
Methods inherited from class com.ibm.etools.iseries.parsers.ISeriesEditorParser
addCompileError, addError, cleanupPopupMenu, copyCompileErrorInfo, doLpexAction, doPromptAction, doRefresh, elementChanged, focusGained, focusLost, getAdapter, getAS400, getAutoUppercase, getEditor, getFieldFile, getFormatLine, getIFile, getImage, getIncludeMember, getISeriesConnection, getISeriesMember, getLocalFileName, getLpexLanguageHelpHandler, getLpexView, getLshToken, getModel, getProperty, getPropertySheet, getSourceViewerConfiguration, getSpecialChars, getTextLimit, hasSequenceNumbers, isDebugMode, isElementAboveDataRegion, isLineAboveDataRegion, isLocal, isReadOnly, isValidFieldAction, isValidIncludeAction, match, modelBuiltAsynchronous, parseAll, parseElement, prompt, queryDataLine, removeErrors, removeErrors, resetOutlineView, saving, selectionLinesChanged, selectionLinesChanged, selectionLinesChanged, setAS400, setCompileErrorInfo, setDebugMode, setEnableParseExtras, setLocal, supportsOutlineView, terminateParser, updateProfileForActions, updateProfileForTabbing, upperCase
 
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

_bundle

protected static ResourceBundle _bundle
the resource bundle for this parser


_tokenizer

protected ISeriesEditorDDSTokenizer _tokenizer

_ruler

protected ISeriesEditorDDSFormatLine _ruler

_prefixer

protected ISeriesEditorDDSPrefixProcessor _prefixer

_programVerifier

protected ISeriesEditorDDSProgramVerifier _programVerifier

_prompter

protected ISeriesEditorDDSPrompter _prompter

_syntaxChecker

protected ISeriesEditorDDSSyntaxChecker _syntaxChecker

_helpHandler

protected SystemTextEditorHelpHandler _helpHandler

_helpMessageHandler

protected SystemTextEditorHelpHandler _helpMessageHandler

_iDDSType

protected int _iDDSType

_lClassComment

protected long _lClassComment

_lClassFileKwd

protected long _lClassFileKwd

_lClassFld

protected long _lClassFld

_lClassFldKwd

protected long _lClassFldKwd

_lClassHelp

protected long _lClassHelp

_lClassHelpKwd

protected long _lClassHelpKwd

_lClassJoin

protected long _lClassJoin

_lClassJoinKwd

protected long _lClassJoinKwd

_lClassKey

protected long _lClassKey

_lClassKeyKwd

protected long _lClassKeyKwd

_lClassMask

protected long _lClassMask

_lClassRec

protected long _lClassRec

_lClassRecKwd

protected long _lClassRecKwd

_lClassSelo

protected long _lClassSelo

_lClassSpace

protected long _lClassSpace

LAST_DELETED_ELEMENT_UNINITIALIZED

public static final int LAST_DELETED_ELEMENT_UNINITIALIZED
See Also:
Constant Field Values
Constructor Detail

ISeriesEditorDDSParser

public ISeriesEditorDDSParser(LpexView view)
Constructor

Method Detail

initParser

protected void initParser()
initialize parser

Overrides:
initParser in class ISeriesEditorParser

setEditor

public void setEditor(LpexTextEditor editor)
Need to overwrite because we do not have the editor reference at construction time Once the SystemTextEditor has an adapter factory this method can be deleted

Specified by:
setEditor in interface IISeriesEditorParser
Overrides:
setEditor in class ISeriesEditorParser
Parameters:
editor - the editor for this parser
See Also:
com.ibm.etools.iseries.editor.ISeriesEditorParser#setEditor(com.ibm.lpex.alef.LpexTextEditor)

contributeMenuItems

protected void contributeMenuItems(IMenuManager menuRoot,
                                   boolean bPopupMenu)
Adds common menu items to the top of the root menu.


contributeToMenu

public void contributeToMenu(ITextEditor editor,
                             IMenuManager menuRoot)
Contributes menu bar items.

Specified by:
contributeToMenu in interface ISystemTextEditorContextContributor
Overrides:
contributeToMenu in class ISeriesEditorParser

contributeToPopupMenu

public void contributeToPopupMenu(ITextEditor editor,
                                  IMenuManager menuRoot)
Contributes popup menu bar items.

Specified by:
contributeToPopupMenu in interface ISystemTextEditorContextContributor

contributeToToolBar

public void contributeToToolBar(ITextEditor editor,
                                IToolBarManager toolBarManager)
Contributes tool bar items.

Specified by:
contributeToToolBar in interface ISystemTextEditorContextContributor
Overrides:
contributeToToolBar in class ISeriesEditorParser

cleanupToolBar

public void cleanupToolBar(ITextEditor editor,
                           IToolBarManager toolBarManager)
Description copied from class: ISeriesEditorParser
removes the next and previous error toolbar buttons

subclasses which add other toolbar buttons should subclass and call super

Specified by:
cleanupToolBar in interface ISystemTextEditorContextContributor
Overrides:
cleanupToolBar in class ISeriesEditorParser
See Also:
ISystemTextEditorContextContributor.cleanupToolBar(ITextEditor, IToolBarManager)

createActions

protected void createActions(ITextEditor editor)
Creates menubar and toolbar actions.


determineLine

protected int determineLine(int iLine)
Deprecated. 

Sets the line class bits, and returns the opcode type. Port of evfslxld.c, DetermineLine


determineElement

protected int determineElement(int iElement)
Sets the line class bits, and returns the opcode type. Port of evfslxld.c, DetermineElement


finishedSaving

public void finishedSaving(ITextEditor editor)
Method finishedSaving Does nothing for the DDS Parser

Specified by:
finishedSaving in interface ISystemTextEditorContextContributor
See Also:
ISystemTextEditorContextContributor.finishedSaving(ITextEditor)

getCommentStyleCharacters

public String getCommentStyleCharacters()
Returns the style characters used for styling comments ("cs"). This is used by compare sessions when the compare.ignoreComments option is in effect.


getCommentType

protected int getCommentType(String strLine)
Port of evfslxld.c, IsCommentLine


getDDSType

public int getDDSType()

getHeadingKeywordType

protected int getHeadingKeywordType(int iHeadingSpecType)
Returns the keyword type that corresponds to the heading line type. Port of evfslxld.c, DetermineKeywordSpec


getHeadingType

protected int getHeadingType(int iElement,
                             String strElement)
Port of evfslxld.c, IsHeadingLine


getHeadingTypePrevious

protected int getHeadingTypePrevious(int iElement)
Port of evfslxld.c, FindPreviousHeadingElement


getHelpHandler

public SystemTextEditorHelpHandler getHelpHandler()
Returns the help handler for this parser.

Specified by:
getHelpHandler in interface IISeriesEditorParser

getLanguage

public String getLanguage()
Declared in ISystemEditorParser

Specified by:
getLanguage in interface ISystemTextEditorParser
Specified by:
getLanguage in class ISeriesEditorParser

getLineClassTypes

protected long getLineClassTypes(int iSpecType)
Given spectype return long with all of the class types bits or-ed in. Port of evfslxld.c, ClassOfLine.


getLineSpecType

public int getLineSpecType(int iLine,
                           String strLine)
Deprecated. 

Returns the spec type of a line. Port of evfslxld.c, SpecTypeOfLine.


getElementSpecType

public int getElementSpecType(int iElement,
                              String strElement)
Returns the spec type of a Element. Port of evfslxld.c, SpecTypeOfLine.


getPopupItems

public String getPopupItems(int popupLocation)
56708 Return the popup menu items

Overrides:
getPopupItems in class ISeriesEditorParser
See Also:
com.ibm.lpex.core.LpexCommonParser#getPopupItems(int)

getProgramVerifier

public IISeriesEditorProgramVerifier getProgramVerifier()
Returns the program verifier.

Specified by:
getProgramVerifier in interface IISeriesEditorParser
Overrides:
getProgramVerifier in class ISeriesEditorParser

getProfile

public ResourceBundle getProfile()

getPromptAdapter

public IISeriesEditorPromptAdapter getPromptAdapter()
Method declared on ISeriesEditorParser. Returns an adapter used to communicate between the editor and a prompt view.

Specified by:
getPromptAdapter in interface IISeriesEditorParser
Specified by:
getPromptAdapter in class ISeriesEditorParser

getPromptFormatLine

public String getPromptFormatLine(int iSpecType)
Returns the format string of the line spec type.


getSyntaxChecker

public IISeriesEditorSyntaxChecker getSyntaxChecker()
Returns the syntax checker.

Specified by:
getSyntaxChecker in interface IISeriesEditorParser
Overrides:
getSyntaxChecker in class ISeriesEditorParser

initializeColors

protected void initializeColors()
Initializes the display colors.


initializeElementClassTypes

public void initializeElementClassTypes()
Registers the element class types with Lpex


initializeLpexView

public void initializeLpexView(LpexView lpexView)
Declared in IISeriesEditorParser Update lpex profile with tabbing support.

Specified by:
initializeLpexView in interface IISeriesEditorParser
Overrides:
initializeLpexView in class ISeriesEditorParser

isLineDebuggable

public boolean isLineDebuggable(int iLine)
Returns false to let the super class know that this parser does not support debugging.

Specified by:
isLineDebuggable in interface ISystemTextEditorDebugContributor

parseElements

public void parseElements(int iElementFirst,
                          int iElementLast,
                          int iElementCurrent)
Description copied from class: ISeriesEditorParser
Parse range of elements This just calls parseLine(i) for each element, subclasses can handle it differently if they want (e.g. only calling a syntax checker once for the whole range of lines instead of once per line).

Overrides:
parseElements in class ISeriesEditorParser
See Also:
com.ibm.etools.iseries.editor.ISeriesEditorParser#parseElements(int, int, int)

parseLine

public void parseLine(int iElement)
Port of evfslxss.c, LineParse

Specified by:
parseLine in class ISeriesEditorParser

parseRegion

protected void parseRegion(int iElementFirst,
                           int iElementLast,
                           IProgressMonitor progressMonitor)
Parses a contiguous set of Elements given the first and last Element numbers. Port of evfslxss.c PartParse

Specified by:
parseRegion in class ISeriesEditorParser

setDDSType

public void setDDSType(String strName)
Sets the DDS type from the file name extension. The input name is a fully qualified file name.


promptRequest

public void promptRequest()
Called when the F4 key was just pressed, before the focus is given to the prompter. Parse and tokenize the line and notify the prompter. This is done in case the user has changed the line.

Specified by:
promptRequest in class ISeriesEditorParser

createOutlineView

protected IContentOutlinePage createOutlineView()
Return DDS EMF.Edit Outline View

Overrides:
createOutlineView in class ISeriesEditorParser
Returns:
See Also:
com.ibm.etools.iseries.editor.ISeriesEditorParser#createOutlineView()

getOutlineView

public ISeriesEditorDDSContentOutlinePage getOutlineView()
Retrieve DDS model corresponding to the source in the editor

Parameters:
createIfDoesNotExist - - parse and create model if it does not exist
Returns:

getFieldsProvider

public LpexFieldsProvider getFieldsProvider()
Retrieves the fields provided for the parser. Returns null if there is no fields provider

Specified by:
getFieldsProvider in interface IISeriesEditorParser
Overrides:
getFieldsProvider in class ISeriesEditorParser
Since:
6.0.1 //SE23218

cleanupMenu

public void cleanupMenu(ITextEditor editor,
                        IMenuManager menuManager)
Description copied from class: ISeriesEditorParser
Removes the Source and Compile menu items

subclasses which add other menus should subclass and call super

Specified by:
cleanupMenu in interface ISystemTextEditorContextContributor
Overrides:
cleanupMenu in class ISeriesEditorParser
See Also:
ISystemTextEditorContextContributor.cleanupMenu(ITextEditor, IMenuManager)

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.