|
Rational Developer for Power Systems Software V7.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectLpexCommonParser
com.ibm.etools.iseries.parsers.ISeriesEditorParser
com.ibm.etools.iseries.parsers.ISeriesEditorRPGOPMParser
public class ISeriesEditorRPGOPMParser
| 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
|
protected boolean |
_bUpdateView
|
protected ISeriesEditorRPGOPMSourceViewerConfiguration |
_configuration
|
protected SystemTextEditorHelpHandler |
_helpHandler
|
protected 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
the preference store with the OPM RPG preferences |
static String |
copyright
|
| 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.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.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 |
| Constructor Summary | |
|---|---|
ISeriesEditorRPGOPMParser(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 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(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 |
IQSYSFile |
getFieldFile()
b Method getFieldFile. |
LpexFieldsProvider |
getFieldsProvider()
Retrieves the fields provided for the parser. |
IISeriesEditorFormatLine |
getFormatLine()
Returns the format line ruler. |
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. |
IQSYSMember |
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. |
LpexSourceViewerConfiguration |
getSourceViewerConfiguration()
Returns the source viewer configuration. |
IISeriesEditorSyntaxChecker |
getSyntaxChecker()
Returns the syntax checker. |
void |
initializeColors(LpexView view)
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 true if the line is debuggable |
boolean |
isValidFieldAction()
Method isValidFieldAction. |
boolean |
isValidIncludeAction()
Method isValidIncludeAction. |
protected LpexDocumentLocation |
matchToken(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 |
setEditor(LpexTextEditor editor)
Method setEditor. |
protected boolean |
supportsOutlineView()
Returns false by default. |
void |
terminateParser()
When parsing is disabled, turn off document listeners |
| 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 SystemTextEditorHelpHandler _helpHandler
protected 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(LpexView view)
| Method Detail |
|---|
protected void initParser()
initParser in class ISeriesEditorParserpublic void setEditor(LpexTextEditor editor)
IISeriesEditorParser
setEditor in interface IISeriesEditorParsersetEditor in class ISeriesEditorParsereditor - the editor for this parserThe CCSID is set here. If the file CCSID is invalid, the job CCSID is used.
The CCSID is used later to obtain the special translation characters in
getSpecialChars.
IMPORTANT!!!!!!!!
NOTE: if you modify this method, you NEED to propate all changes to all 4 COBOL parsers
protected void contributeMenuItems(IMenuManager menuRoot,
boolean bPopupMenu)
public void contributeToMenu(ITextEditor editor,
IMenuManager menuManager)
contributeToMenu in interface ISystemTextEditorContextContributorcontributeToMenu in class ISeriesEditorParser
public void contributeToPopupMenu(ITextEditor editor,
IMenuManager menuRoot)
contributeToPopupMenu in interface ISystemTextEditorContextContributor
public void contributeToToolBar(ITextEditor editor,
IToolBarManager toolBarManager)
contributeToToolBar in interface ISystemTextEditorContextContributorcontributeToToolBar in class ISeriesEditorParser
public void cleanupToolBar(ITextEditor editor,
IToolBarManager toolBarManager)
ISeriesEditorParsersubclasses which add other toolbar buttons should subclass and call super
cleanupToolBar in interface ISystemTextEditorContextContributorcleanupToolBar in class ISeriesEditorParserISystemTextEditorContextContributor.cleanupToolBar(ITextEditor, IToolBarManager)protected void createActions(ITextEditor editor)
public void documentChanged(LpexView lpexView,
int type,
int line,
int position,
int len)
com.ibm.lpex.core.LpexDocumentListener#documentChanged(LpexView, int, int, int, int)public void finishedSaving(ITextEditor editor)
finishedSaving in interface ISystemTextEditorContextContributorISystemTextEditorContextContributor.finishedSaving(ITextEditor)protected int determineLine(int iLine)
protected int determineElement(int iElement)
public void focusGained(FocusEvent event)
focusGained in class ISeriesEditorParserFocusListenerpublic String getCommentStyleCharacters()
public IQSYSFile getFieldFile()
getFieldFile in interface IISeriesEditorParsergetFieldFile in class ISeriesEditorParsercom.ibm.etools.iseries.editor.IISeriesEditorParser#getFieldFile()public IISeriesEditorFormatLine getFormatLine()
getFormatLine in interface IISeriesEditorParsergetFormatLine in class ISeriesEditorParserpublic SystemTextEditorHelpHandler getHelpHandler()
getHelpHandler in interface IISeriesEditorParserpublic IQSYSMember getIncludeMember()
ISeriesEditorParser
getIncludeMember in interface IISeriesEditorParsergetIncludeMember in class ISeriesEditorParsercom.ibm.etools.iseries.editor.IISeriesEditorParser#getIncludeMember()public String getLanguage()
getLanguage in interface ISystemTextEditorParsergetLanguage 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()
protected boolean supportsOutlineView()
ISeriesEditorParser
supportsOutlineView in class ISeriesEditorParserpublic LanguageModel getModel(boolean bUpdate)
getModel in interface IISeriesEditorParsergetModel in class ISeriesEditorParserpublic String getPopupItems(int popupLocation)
getPopupItems in class ISeriesEditorParsercom.ibm.lpex.core.LpexCommonParser#getPopupItems(int)public ResourceBundle getProfile()
public IISeriesEditorPromptAdapter getPromptAdapter()
getPromptAdapter in interface IISeriesEditorParsergetPromptAdapter in class ISeriesEditorParserpublic String getPromptFormatLine(int iSpecType)
public IISeriesEditorSyntaxChecker getSyntaxChecker()
getSyntaxChecker in interface IISeriesEditorParsergetSyntaxChecker in class ISeriesEditorParserpublic LpexSourceViewerConfiguration getSourceViewerConfiguration()
getSourceViewerConfiguration in interface ISystemTextEditorSourceViewerConfigurationContributorgetSourceViewerConfiguration in class ISeriesEditorParserpublic void initializeColors(LpexView view)
public void initializeElementClassTypes()
public void initializeLpexView(LpexView lpexView)
initializeLpexView in interface IISeriesEditorParserinitializeLpexView in class ISeriesEditorParserpublic boolean isValidFieldAction()
isValidFieldAction in interface IISeriesEditorParserisValidFieldAction in class ISeriesEditorParsercom.ibm.etools.iseries.editor.IISeriesEditorParser#isValidFieldAction()public boolean isValidIncludeAction()
isValidIncludeAction in interface IISeriesEditorParserisValidIncludeAction in class ISeriesEditorParsercom.ibm.etools.iseries.editor.IISeriesEditorParser#isValidIncludeAction()public boolean isLineDebuggable(int iLine)
isLineDebuggable in interface ISystemTextEditorDebugContributorprotected LpexDocumentLocation matchToken(LpexDocumentLocation loc)
loc - the location of the token to match
com.ibm.lpex.core.LpexCommonParser#matchToken(LpexDocumentLocation)
public void parseElements(int iElementFirst,
int iElementLast,
int iElementCurrent)
ISeriesEditorParser
parseElements in class ISeriesEditorParsercom.ibm.etools.iseries.editor.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 ISeriesEditorParserpublic void promptRequest()
promptRequest in class ISeriesEditorParserpublic LpexFieldsProvider getFieldsProvider()
getFieldsProvider in interface IISeriesEditorParsergetFieldsProvider in class ISeriesEditorParserpublic void terminateParser()
terminateParser in class ISeriesEditorParsercom.ibm.lpex.core.LpexCommonParser#terminateParser()
public void cleanupMenu(ITextEditor editor,
IMenuManager menuManager)
ISeriesEditorParsersubclasses which add other menus should subclass and call super
cleanupMenu in interface ISystemTextEditorContextContributorcleanupMenu in class ISeriesEditorParserISystemTextEditorContextContributor.cleanupMenu(ITextEditor, IMenuManager)
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||