|
iSeries Remote Systems v6.0.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.lpex.core.LpexCommonParser
com.ibm.etools.iseries.editor.ISeriesEditorParser
com.ibm.etools.iseries.editor.ISeriesEditorRPGOPMParser
Nested Class Summary |
---|
Nested classes inherited from class com.ibm.etools.iseries.editor.ISeriesEditorParser |
---|
ISeriesEditorParser.DataLineMarkListener, ISeriesEditorParser.RunnableParseAll |
Field Summary | |
---|---|
protected static ResourceBundle |
_bundle
|
protected boolean |
_bUpdateView
|
protected ISeriesEditorRPGOPMSourceViewerConfiguration |
_configuration
|
protected com.ibm.etools.systems.editor.SystemTextEditorHelpHandler |
_helpHandler
|
protected com.ibm.etools.systems.editor.SystemTextEditorHelpHandler |
_helpMessageHandler
|
protected long |
_lClassComment
|
protected long |
_lClassControl
|
protected long |
_lClassMask
|
protected long |
_lClassSpace
|
protected long |
_lClassSql
|
protected long |
_lClassSubroutine
|
protected ISeriesEditorRPGOPMModel |
_model
|
protected ISeriesEditorRPGOPMPrefixProcessor |
_prefixer
|
protected ISeriesEditorRPGOPMPrompter |
_prompter
|
protected ISeriesEditorRPGOPMFormatLine |
_ruler
|
protected ISeriesEditorRPGOPMSyntaxChecker |
_syntaxChecker
|
protected ISeriesEditorRPGOPMTokenizer |
_tokenizer
|
static String |
copyright
|
Fields inherited from class com.ibm.etools.iseries.editor.ISeriesEditorParser |
---|
_action, _bDataElementChanged, _bDebugMode, _bIgnoreDatePreference, _bIgnoreParseExtras, _bIsPrimaryLpexView, _bLocal, _bOutlineViewNeedsResetting, _bParseAll, _bParsing, _compileEditManager, _compileErrorMarkerListener, _compileMarkNames, _editor, _helpResourceBundle, _iCCSID, _iFile, _labelProvider, _member, _menuCompile, _menuLanguageHelp, _menuSource, _outlinePage, _strImagePath, _strLocalFileName, _strSpecialChars, _view, DATA_LINE |
Fields inherited from class com.ibm.lpex.core.LpexCommonParser |
---|
ATTRIBUTES_COMMENT, ATTRIBUTES_COMMENT_KEYWORD, ATTRIBUTES_COMMENT1, ATTRIBUTES_DEFAULT, ATTRIBUTES_DIRECTIVE, ATTRIBUTES_ERROR, ATTRIBUTES_KEYWORD, ATTRIBUTES_KEYWORD1, ATTRIBUTES_LIBRARY, ATTRIBUTES_NONSOURCE, ATTRIBUTES_NUMERAL, ATTRIBUTES_STRING, ATTRIBUTES_STRING1, BACKGROUND_COLOR, CLASS_MESSAGE, LANGUAGE_CCPP, LANGUAGE_CICS, LANGUAGE_CL, LANGUAGE_COBOL, LANGUAGE_DDS, LANGUAGE_DLI, LANGUAGE_FORTRAN, LANGUAGE_HLASM, LANGUAGE_HTML, LANGUAGE_JAVA, LANGUAGE_JCL, LANGUAGE_LISP, LANGUAGE_PERL, LANGUAGE_PLI, LANGUAGE_REXX, LANGUAGE_RPG, LANGUAGE_SABRETALK, LANGUAGE_SQL, LANGUAGE_XMI, LANGUAGE_XML, LANGUAGE_XSL, LEXER_RC_END, LEXER_RC_EOF, LEXER_RC_MORE, LEXER_RC_OK, POPUP_END, POPUP_FILTERVIEW, POPUP_SOURCE, POPUP_TOP, PROTOKEY_EMPTY, STYLE_MESSAGE, STYLE_NAME, view |
Fields inherited from interface com.ibm.etools.iseries.editor.IISeriesEditorConstantsRPG |
---|
_straSQLWords, 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.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.lpex.core.LpexDocumentListener |
---|
ELEMENT_INSERTED, ELEMENT_REMOVED, ELEMENT_REPLACED, END_CHANGES, START_CHANGES, TEXT_INSERTED, TEXT_REMOVED, TEXT_REPLACED |
Fields inherited from interface com.ibm.etools.iseries.editor.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.lpex.core.LpexConstants |
---|
HELP_COMMAND_MAP, LPEX_VERSION, MSG_POPUP_ERRORS, MSG_POPUP_EXCLUDESELECTION, MSG_POPUP_FILTERVIEWMENU, MSG_POPUP_INSERTMENU, MSG_POPUP_SELECTEDMENU, MSG_POPUP_SHOWALL, MSG_POPUP_SOURCEMENU, PARSE_PENDING_CHANGE_MASK, PARSE_PENDING_INSERT_MASK, PARSE_PENDING_NEXT_DELETED_MASK, PARSE_PENDING_NEXT_SHOW_DELETED_MASK, PARSE_PENDING_PREV_DELETED_MASK, PARSE_PENDING_PREV_SHOW_DELETED_MASK, PLATFORM_AWT, PLATFORM_SWT, PLATFORM_SWT_KEY, STATUS_FILE_ERRORREADING, STATUS_FILE_INCORRECTENCODING, STATUS_FILE_NOTFOUND, STATUS_FINDTEXT_INVALIDPATTERN, STATUS_FINDTEXT_NOTFOUND, STATUS_FINDTEXT_ONLYOCCURRENCE, STATUS_FINDTEXT_READONLY, STATUS_FINDTEXT_WRAPPED, STATUS_LOCATE_NOSEQUENCETEXT, STATUS_LOCATE_NOTFOUND, STATUS_LOCATE_WRAPPED, STATUS_SAVE_CANCELLED, STATUS_SAVE_FAILED, STATUS_TEXTLIMIT_ENFORCED |
Constructor Summary | |
---|---|
ISeriesEditorRPGOPMParser(com.ibm.lpex.core.LpexView view)
Constructor |
Method Summary | |
---|---|
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 menuManager)
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 int |
determineElement(int iElement)
Sets the line class bits, and returns the opcode type. |
protected int |
determineLine(int iLine)
Deprecated. |
void |
documentChanged(com.ibm.lpex.core.LpexView lpexView,
int type,
int line,
int position,
int len)
Used by the parser to determine the element where the compile data is |
void |
finishedSaving(ITextEditor editor)
Method finishedSaving Does nothing for the OPM RPG Parser |
void |
focusGained(FocusEvent event)
when focus is gained, reset the tabs |
String |
getCommentStyleCharacters()
Returns the style characters used for styling comments ("cs"). |
protected long |
getElementClassTypes(String strElement,
int iSpecType,
int iElement)
Port of evferppa.cpp, ClassOfLine |
ISeriesFile |
getFieldFile()
b Method getFieldFile. |
com.ibm.lpex.core.LpexFieldsProvider |
getFieldsProvider()
Retrieves the fields provided for the parser. |
IISeriesEditorFormatLine |
getFormatLine()
Returns the format line ruler. |
com.ibm.etools.systems.editor.SystemTextEditorHelpHandler |
getHelpHandler()
Returns the help handler for this parser. |
String |
getHelpPluginID()
Returns the name of the plugin that contains the help files. |
String |
getHelpTableFileName()
Returns the name of the properties file that has the mapping between help resource ID to Html filename. |
ISeriesMember |
getIncludeMember()
Subclasses should override if implementing the action ActionOpenInclude |
String |
getLanguage()
Declared in ISystemEditorParser |
protected long |
getLineClassTypes(String strLine,
int iSpecType,
int iLine)
Deprecated. |
protected int |
getLineSpecType(String strLine)
Port of evferppa.cpp, ParseLine |
protected int |
getLineSpecTypeF(String strLine)
|
protected int |
getLineSpecTypeI(String strLine)
|
protected int |
getLineSpecTypeO(String strLine)
|
LanguageModel |
getModel(boolean bUpdate)
Returns the element tree model for the outline view. |
String |
getPopupItems(int popupLocation)
56708 Return the popup menu items |
ResourceBundle |
getProfile()
|
IISeriesEditorPromptAdapter |
getPromptAdapter()
Method declared on ISeriesEditorParser. |
String |
getPromptFormatLine(int iSpecType)
Returns the format string of the spec type. |
com.ibm.lpex.alef.LpexSourceViewerConfiguration |
getSourceViewerConfiguration()
Returns the source viewer configuration. |
IISeriesEditorSyntaxChecker |
getSyntaxChecker()
Returns the syntax checker. |
void |
initializeColors(com.ibm.lpex.core.LpexView view)
Initializes the display colors. |
void |
initializeElementClassTypes()
Registers the element class types with Lpex |
void |
initializeLpexView(com.ibm.lpex.core.LpexView lpexView)
Declared in IISeriesEditorParser Update lpex profile with tabbing support. |
boolean |
isLineDebuggable(int iLine)
Returns true if the line is debuggable |
boolean |
isValidFieldAction()
Method isValidFieldAction. |
boolean |
isValidIncludeAction()
Method isValidIncludeAction. |
protected com.ibm.lpex.core.LpexDocumentLocation |
matchToken(com.ibm.lpex.core.LpexDocumentLocation loc)
Match tokens Matches the token that the location specifies. |
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 evferppp.cpp, LineParse |
protected void |
parseRegion(int iElementFirst,
int iElementLast,
IProgressMonitor progressMonitor)
Parses a contiguous set of lines given the first and last line numbers. |
void |
promptRequest()
Called when the F4 key was just pressed, before the focus is given to the prompter. |
void |
terminateParser()
When parsing is disabled, turn off document listeners |
Methods inherited from class com.ibm.lpex.core.LpexCommonParser |
---|
addDocumentMessage, addMessage, addMessage, addMessage, blockMarkWord, copyDocumentMessages, cursorIndent, defineFilterAction, expandProtoKeyword, getInstallStyleAttributes, getLanguage, getPopupParserItems, getPopupViewItems, getStyleName, getStyles, getTextIndent, getToken, getTokenLocation, indentText, indentText, indentText, isDebuggable, isTokenDelimiter, lineComment, lpexView, newLine, openLine, parse, propertySet, removeDocumentMessages, removeMessages, removeMessages, resetParser, setProperty, setStyle, splitLine, styleString, tokenBegin, tokenEnd, totalParse |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String copyright
protected static ResourceBundle _bundle
protected ISeriesEditorRPGOPMTokenizer _tokenizer
protected ISeriesEditorRPGOPMFormatLine _ruler
protected ISeriesEditorRPGOPMPrefixProcessor _prefixer
protected ISeriesEditorRPGOPMPrompter _prompter
protected ISeriesEditorRPGOPMSyntaxChecker _syntaxChecker
protected com.ibm.etools.systems.editor.SystemTextEditorHelpHandler _helpHandler
protected com.ibm.etools.systems.editor.SystemTextEditorHelpHandler _helpMessageHandler
protected ISeriesEditorRPGOPMModel _model
protected ISeriesEditorRPGOPMSourceViewerConfiguration _configuration
protected long _lClassComment
protected long _lClassControl
protected long _lClassMask
protected long _lClassSpace
protected long _lClassSql
protected long _lClassSubroutine
protected boolean _bUpdateView
Constructor Detail |
public ISeriesEditorRPGOPMParser(com.ibm.lpex.core.LpexView view)
Method Detail |
protected void contributeMenuItems(IMenuManager menuRoot, boolean bPopupMenu)
public void contributeToMenu(ITextEditor editor, IMenuManager menuManager)
contributeToMenu
in interface com.ibm.etools.systems.editor.ISystemTextEditorContextContributor
contributeToMenu
in class ISeriesEditorParser
public void contributeToPopupMenu(ITextEditor editor, IMenuManager menuRoot)
contributeToPopupMenu
in interface com.ibm.etools.systems.editor.ISystemTextEditorContextContributor
public void contributeToToolBar(ITextEditor editor, IToolBarManager toolBarManager)
contributeToToolBar
in interface com.ibm.etools.systems.editor.ISystemTextEditorContextContributor
contributeToToolBar
in class ISeriesEditorParser
public void cleanupToolBar(ITextEditor editor, IToolBarManager toolBarManager)
ISeriesEditorParser
subclasses which add other toolbar buttons should subclass and call super
cleanupToolBar
in interface com.ibm.etools.systems.editor.ISystemTextEditorContextContributor
cleanupToolBar
in class ISeriesEditorParser
ISystemTextEditorContextContributor.cleanupToolBar(ITextEditor, IToolBarManager)
protected void createActions(ITextEditor editor)
public void documentChanged(com.ibm.lpex.core.LpexView lpexView, int type, int line, int position, int len)
documentChanged
in interface com.ibm.lpex.core.LpexDocumentListener
LpexDocumentListener.documentChanged(LpexView, int, int, int, int)
public void finishedSaving(ITextEditor editor)
finishedSaving
in interface com.ibm.etools.systems.editor.ISystemTextEditorContextContributor
ISystemTextEditorContextContributor.finishedSaving(ITextEditor)
protected int determineLine(int iLine)
protected int determineElement(int iElement)
public void focusGained(FocusEvent event)
focusGained
in interface FocusListener
focusGained
in class ISeriesEditorParser
FocusListener.focusGained(FocusEvent)
public String getCommentStyleCharacters()
public ISeriesFile getFieldFile()
getFieldFile
in interface IISeriesEditorParser
getFieldFile
in class ISeriesEditorParser
IISeriesEditorParser.getFieldFile()
public IISeriesEditorFormatLine getFormatLine()
getFormatLine
in interface IISeriesEditorParser
getFormatLine
in class ISeriesEditorParser
public com.ibm.etools.systems.editor.SystemTextEditorHelpHandler getHelpHandler()
getHelpHandler
in interface IISeriesEditorParser
public ISeriesMember getIncludeMember()
ISeriesEditorParser
getIncludeMember
in interface IISeriesEditorParser
getIncludeMember
in class ISeriesEditorParser
IISeriesEditorParser.getIncludeMember()
public String getLanguage()
getLanguage
in interface com.ibm.etools.systems.editor.ISystemTextEditorParser
getLanguage
in class ISeriesEditorParser
protected long getLineClassTypes(String strLine, int iSpecType, int iLine)
protected long getElementClassTypes(String strElement, int iSpecType, int iElement)
protected int getLineSpecType(String strLine)
protected int getLineSpecTypeF(String strLine)
protected int getLineSpecTypeI(String strLine)
protected int getLineSpecTypeO(String strLine)
public String getHelpPluginID()
public String getHelpTableFileName()
public LanguageModel getModel(boolean bUpdate)
getModel
in interface IISeriesEditorParser
getModel
in class ISeriesEditorParser
public String getPopupItems(int popupLocation)
getPopupItems
in class ISeriesEditorParser
LpexCommonParser.getPopupItems(int)
public ResourceBundle getProfile()
public IISeriesEditorPromptAdapter getPromptAdapter()
getPromptAdapter
in interface IISeriesEditorParser
getPromptAdapter
in class ISeriesEditorParser
public String getPromptFormatLine(int iSpecType)
public IISeriesEditorSyntaxChecker getSyntaxChecker()
getSyntaxChecker
in interface IISeriesEditorParser
getSyntaxChecker
in class ISeriesEditorParser
public com.ibm.lpex.alef.LpexSourceViewerConfiguration getSourceViewerConfiguration()
getSourceViewerConfiguration
in interface com.ibm.etools.systems.editor.ISystemTextEditorSourceViewerConfigurationContributor
getSourceViewerConfiguration
in class ISeriesEditorParser
public void initializeColors(com.ibm.lpex.core.LpexView view)
public void initializeElementClassTypes()
public void initializeLpexView(com.ibm.lpex.core.LpexView lpexView)
initializeLpexView
in interface IISeriesEditorParser
initializeLpexView
in class ISeriesEditorParser
public boolean isValidFieldAction()
isValidFieldAction
in interface IISeriesEditorParser
isValidFieldAction
in class ISeriesEditorParser
IISeriesEditorParser.isValidFieldAction()
public boolean isValidIncludeAction()
isValidIncludeAction
in interface IISeriesEditorParser
isValidIncludeAction
in class ISeriesEditorParser
IISeriesEditorParser.isValidIncludeAction()
public boolean isLineDebuggable(int iLine)
isLineDebuggable
in interface com.ibm.etools.systems.editor.ISystemTextEditorDebugContributor
protected com.ibm.lpex.core.LpexDocumentLocation matchToken(com.ibm.lpex.core.LpexDocumentLocation loc)
loc
- the location of the token to match
LpexCommonParser.matchToken(LpexDocumentLocation)
public void parseElements(int iElementFirst, int iElementLast, int iElementCurrent)
ISeriesEditorParser
parseElements
in class ISeriesEditorParser
ISeriesEditorParser.parseElements(int, int, int)
public void parseLine(int iElement)
parseLine
in class ISeriesEditorParser
protected void parseRegion(int iElementFirst, int iElementLast, IProgressMonitor progressMonitor)
parseRegion
in class ISeriesEditorParser
public void promptRequest()
promptRequest
in class ISeriesEditorParser
public com.ibm.lpex.core.LpexFieldsProvider getFieldsProvider()
getFieldsProvider
in interface IISeriesEditorParser
getFieldsProvider
in class ISeriesEditorParser
public void terminateParser()
terminateParser
in class ISeriesEditorParser
LpexCommonParser.terminateParser()
|
iSeries Remote Systems v6.0.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |