|
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.Object LpexCommonParser com.ibm.etools.iseries.parsers.ISeriesEditorParser
public abstract class ISeriesEditorParser
Nested Class Summary | |
---|---|
protected class |
ISeriesEditorParser.DataLineMarkListener
Used to handle parsing of deleted compile time data elements |
protected class |
ISeriesEditorParser.RunnableParseAll
Inner class to parser all in a different thread |
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 | |
---|---|
ISeriesEditorParser(LpexView lpexView)
Constructor |
Method Summary | |
---|---|
void |
addCompileError(int iElement,
String strError)
adds specified verify/compile error after the last error for iElement |
void |
addError(int iElement,
String strError,
char cMessageStyle)
adds specified syntax error after the last error for iElement |
void |
cleanupMenu(ITextEditor editor,
IMenuManager menuManager)
Removes the Source and Compile menu items |
void |
cleanupPopupMenu(ITextEditor editor,
IMenuManager menuManager)
There are no common popup menu items. |
void |
cleanupToolBar(ITextEditor editor,
IToolBarManager toolBarManager)
removes the next and previous error toolbar buttons |
void |
contributeToMenu(ITextEditor editor,
IMenuManager menuManager)
Contributes basic actions to source menu bar Subclasses should override to contribute menu bar items and call super. |
void |
contributeToToolBar(ITextEditor editor,
IToolBarManager toolBarManager)
Subclasses override to contribute tool bar items. |
void |
copyCompileErrorInfo(LpexView secondaryView)
Used to copy the compile message markers from the primary view to the newly opened secondary view. |
protected IContentOutlinePage |
createOutlineView()
|
protected void |
doLpexAction(LpexView view,
String action)
|
void |
doPromptAction()
Displays the prompt view as a result of a F4 key press. |
void |
doRefresh()
The default implementation does nothing. |
void |
elementChanged(LpexView lpexView)
Called for ALL lpex documents, the lpexView is for the current document v6.0.0 - ES - removed highlight line, use LPEX's version instead |
void |
focusGained(FocusEvent event)
when focus is gained, refresh any settings which may have been set in the preferences Also check the needs for local file connection prompting v6.0.0 - ES - removed highlight line, use LPEX's version instead Called for ALL lpex documents, the lpexView is for the current document |
void |
focusLost(FocusEvent event)
v6.0.0 - ES - removed highlight line, use LPEX's version instead |
Object |
getAdapter(LpexTextEditor editor,
Class classRequired)
Returns the requested adapter. |
AS400 |
getAS400()
Method getAS400. |
boolean |
getAutoUppercase()
Tells whether or not the parser should auto-uppercase text. |
LpexTextEditor |
getEditor()
The parser returns the editor (if known) |
IQSYSFile |
getFieldFile()
Method getFieldFile Always returns null. |
LpexFieldsProvider |
getFieldsProvider()
Retrieves the fields provider for the parser. |
IISeriesEditorFormatLine |
getFormatLine()
Returns the format line ruler. |
IFile |
getIFile()
gets the IFile for the source in the editor |
Image |
getImage(String strImageName)
Subclasses may override to provide images for the given image name. |
IQSYSMember |
getIncludeMember()
Subclasses should override if implementing the action ActionOpenInclude |
IBMiConnection |
getISeriesConnection(boolean bPromptAllowed)
This method returns an ISeries connection object. |
IQSYSMember |
getISeriesMember()
Method getISeriesMember. |
abstract String |
getLanguage()
Return the parser's language. |
String |
getLocalFileName()
Get the local file name. |
LpexLanguageHelp |
getLpexLanguageHelpHandler()
Declared in ISystemTextEditorHelpContributor |
LpexView |
getLpexView()
Get the lpexView associated with the parser |
String |
getLshToken()
Declared in LpexLanguageHelp. |
LanguageModel |
getModel(boolean bUpdate)
Subclasses to return a model if it exists. |
protected String |
getPopupItems(int popupLocation)
56708 Returns the items to show in the popup menu All parsers can filter by Date. |
IISeriesEditorProgramVerifier |
getProgramVerifier()
Returns the program verifier. |
abstract IISeriesEditorPromptAdapter |
getPromptAdapter()
Subclasses need to implement this method to return an adapter used to communicate between the editor and a prompt view. |
String |
getProperty(String key)
|
IPropertySheetPage |
getPropertySheet()
Get property sheet |
LpexSourceViewerConfiguration |
getSourceViewerConfiguration()
Returns the source viewer configuration. |
String |
getSpecialChars()
Method getSpecialChars. |
IISeriesEditorSyntaxChecker |
getSyntaxChecker()
Returns the syntax checker. |
int |
getTextLimit()
Returns the save text limit set by the editor into the LpexView, or -1 |
boolean |
hasSequenceNumbers()
Returns true if the file has sequence numbers |
void |
initializeLpexView(LpexView lpexView)
Does base initialization for the parsers. |
protected void |
initParser()
initialize parser |
boolean |
isDebugMode()
Returns whether the state is in debug mode. |
boolean |
isElementAboveDataRegion(int iElement)
Returns whether the given element number is above an existing data region. |
protected boolean |
isLineAboveDataRegion(int iLine)
Deprecated. |
boolean |
isLocal()
Returns whether the input resource is local. |
boolean |
isReadOnly()
Returns whether the editor is in read only mode. |
boolean |
isValidFieldAction()
Method isValidFieldAction. |
boolean |
isValidIncludeAction()
Method isValidIncludeAction. |
LpexDocumentLocation |
match(LpexDocumentLocation loc)
|
boolean |
modelBuiltAsynchronous()
Whether or not the parser supports building of the model asynchronously. |
void |
parseAll()
Parse the entire document using a progress monitor. |
void |
parseElement(int iElement)
Declared in LpexCommonParser. |
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. |
abstract void |
parseLine(int iLine)
Subclasses must subclass. |
protected abstract void |
parseRegion(int iLineFirst,
int iLineLast,
IProgressMonitor progressMonitor)
Subclasses must subclass. |
void |
prompt()
Called by the editor whenever F4 is pressed. |
abstract void |
promptRequest()
Called by the editor whenever F4 is pressed. |
int |
queryDataLine()
Returns the element number of the compile time data |
void |
removeErrors(int iElement)
Removes all the error messages from the specifed line number. |
void |
removeErrors(int iStartElement,
int iEndElement)
Removes the errors from the specified range of elements |
protected void |
resetOutlineView()
Resets the outline view |
void |
saving(ITextEditor editor)
Method saving. |
void |
selectionLinesChanged(int iLineOrigin,
int iLineExtent)
Called when the selection has changed in the content outline view. |
void |
selectionLinesChanged(int iLineOrigin,
int iLineExtent,
int startPosition,
int selectedLength)
Called when the selection has changed in the content outline view. |
void |
selectionLinesChanged(int iLineOrigin,
int iLineExtent,
int iLineCursor,
int startPosition,
int selectedLength)
Called when the selection has changed in the content outline view. |
void |
setAS400(AS400 as400)
Called by the editor to set the AS400 object. |
void |
setCompileErrorInfo(ISeriesCompileEditManager compileEditManager,
String markNames,
QSYSErrorMarkerListener errorMarkerListener)
Used to set the compile information to be used when splitting a view so that errors appear in the splits. |
void |
setDebugMode(boolean bDebugMode)
Sets the debug state. |
void |
setEditor(LpexTextEditor editor)
Method setEditor. |
void |
setEnableParseExtras(boolean bEnable)
Method setEnableParseExtras. |
void |
setLocal(boolean bLocal)
Sets whether the input resource is local. |
protected boolean |
supportsOutlineView()
Returns false by default. |
void |
terminateParser()
When parsing is disabled, turn off cursor and focus listeners |
protected void |
updateProfileForActions(LpexView lpexView)
Updates the Lpex profile for F4 Prompt. |
protected void |
updateProfileForTabbing(LpexView lpexView)
Overrides for the commands 'insertToTab' and 'prevTabStop'. |
String |
upperCase(String line)
returns the upper cased version of the line passed in. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.etools.iseries.parsers.IISeriesEditorParser |
---|
getHelpHandler |
Methods inherited from interface com.ibm.etools.systems.editor.ISystemTextEditorContextContributor |
---|
contributeToPopupMenu, finishedSaving |
Methods inherited from interface com.ibm.etools.systems.editor.ISystemTextEditorDebugContributor |
---|
isLineDebuggable |
Field Detail |
---|
public static final String copyright
protected static final String _strImagePath
protected boolean _bDataElementChanged
protected boolean _bDebugMode
protected boolean _bLocal
protected boolean _bParseAll
protected int _iCCSID
protected IMenuManager _menuSource
protected IMenuManager _menuLanguageHelp
protected IContentOutlinePage _outlinePage
protected ISeriesEditorLabelProvider _labelProvider
protected ISeriesEditorParserAction _action
protected IQSYSMember _member
protected LpexTextEditor _editor
protected LpexView _view
protected PropertyResourceBundle _helpResourceBundle
protected String _strLocalFileName
protected String _strSpecialChars
protected IFile _iFile
protected boolean _bIsPrimaryLpexView
protected boolean _bOutlineViewNeedsResetting
protected boolean _bFromStylePreview
protected ISeriesEditorParser.DataLineMarkListener _dataLineMarkListener
protected int _dataLineMarkID
protected boolean _bIgnoreParseExtras
protected boolean _bParsing
protected String _compileMarkNames
protected QSYSErrorMarkerListener _compileErrorMarkerListener
protected ISeriesCompileEditManager _compileEditManager
protected final String DATA_LINE
Constructor Detail |
---|
public ISeriesEditorParser(LpexView lpexView)
Method Detail |
---|
protected void initParser()
public LpexTextEditor getEditor()
IISeriesEditorParser
getEditor
in interface IISeriesEditorParser
public void addError(int iElement, String strError, char cMessageStyle)
addError
in interface IISeriesEditorParser
iElement
- the element number where the error is to be insertederror
- the error textthe
- character which represents the message style
*** NOTE if you modify this method, you should also modify the COBOL parsers!public void addCompileError(int iElement, String strError)
addCompileError
in interface IISeriesEditorParser
iElement
- the element number where the error is to be insertedstrError
- the error text
*** NOTE if you modify this method, you should also modify the COBOL parsers!public void cleanupMenu(ITextEditor editor, IMenuManager menuManager)
subclasses which add other menus should subclass and call super
cleanupMenu
in interface ISystemTextEditorContextContributor
ISystemTextEditorContextContributor.cleanupMenu(ITextEditor, IMenuManager)
public void cleanupPopupMenu(ITextEditor editor, IMenuManager menuManager)
subclasses which add other popup menu items should subclass and call super
cleanupPopupMenu
in interface ISystemTextEditorContextContributor
ISystemTextEditorContextContributor.cleanupPopupMenu(ITextEditor, IMenuManager)
public void cleanupToolBar(ITextEditor editor, IToolBarManager toolBarManager)
subclasses which add other toolbar buttons should subclass and call super
cleanupToolBar
in interface ISystemTextEditorContextContributor
ISystemTextEditorContextContributor.cleanupToolBar(ITextEditor, IToolBarManager)
public void contributeToMenu(ITextEditor editor, IMenuManager menuManager)
contributeToMenu
in interface ISystemTextEditorContextContributor
public void contributeToToolBar(ITextEditor editor, IToolBarManager toolBarManager)
contributeToToolBar
in interface ISystemTextEditorContextContributor
protected void doLpexAction(LpexView view, String action)
public void doPromptAction()
doPromptAction
in interface IISeriesEditorParser
public void elementChanged(LpexView lpexView)
com.ibm.lpex.core.LpexCursorListener#elementChanged(LpexView)
public void focusGained(FocusEvent event)
FocusListener
public void focusLost(FocusEvent event)
FocusListener
public Object getAdapter(LpexTextEditor editor, Class classRequired)
getAdapter
in interface ISystemTextEditorAdapterContributor
protected IContentOutlinePage createOutlineView()
protected boolean supportsOutlineView()
public AS400 getAS400()
public boolean getAutoUppercase()
public IQSYSFile getFieldFile()
getFieldFile
in interface IISeriesEditorParser
com.ibm.etools.iseries.editor.IISeriesEditorParser#getFieldFile()
public IISeriesEditorFormatLine getFormatLine()
getFormatLine
in interface IISeriesEditorParser
public Image getImage(String strImageName)
getImage
in interface IISeriesEditorParser
public IQSYSMember getIncludeMember()
getIncludeMember
in interface IISeriesEditorParser
com.ibm.etools.iseries.editor.IISeriesEditorParser#getIncludeMember()
public IQSYSMember getISeriesMember()
IISeriesEditorParser
getISeriesMember
in interface IISeriesEditorParser
com.ibm.etools.iseries.editor.IISeriesEditorParser#getISeriesMember()
public IFile getIFile()
IISeriesEditorParser
getIFile
in interface IISeriesEditorParser
com.ibm.etools.iseries.editor.IISeriesEditorParser#getIFile()
public IBMiConnection getISeriesConnection(boolean bPromptAllowed)
getISeriesConnection
in interface IISeriesEditorParser
bPromptAllowed
- true if the user is allowed to be prompted, false otherwise
NOTE: If you change this method, you need to propagate the changes to all 4 COBOL parsers.
public abstract String getLanguage()
getLanguage
in interface ISystemTextEditorParser
public String getLocalFileName()
ISystemTextEditorParser
getLocalFileName
in interface ISystemTextEditorParser
com.ibm.etools.iseries.editor.IISeriesEditorParser#getFileName()
public LpexLanguageHelp getLpexLanguageHelpHandler()
getLpexLanguageHelpHandler
in interface ISystemTextEditorHelpContributor
public String getLshToken()
public LanguageModel getModel(boolean bUpdate)
getModel
in interface IISeriesEditorParser
public boolean modelBuiltAsynchronous()
protected String getPopupItems(int popupLocation)
com.ibm.lpex.core.LpexCommonParser#getPopupItems(int)
public IISeriesEditorProgramVerifier getProgramVerifier()
getProgramVerifier
in interface IISeriesEditorParser
public abstract IISeriesEditorPromptAdapter getPromptAdapter()
getPromptAdapter
in interface IISeriesEditorParser
public IPropertySheetPage getPropertySheet()
getPropertySheet
in interface IISeriesEditorParser
public LpexSourceViewerConfiguration getSourceViewerConfiguration()
getSourceViewerConfiguration
in interface ISystemTextEditorSourceViewerConfigurationContributor
public String getSpecialChars()
public IISeriesEditorSyntaxChecker getSyntaxChecker()
getSyntaxChecker
in interface IISeriesEditorParser
public int getTextLimit()
public boolean hasSequenceNumbers()
public void initializeLpexView(LpexView lpexView)
initializeLpexView
in interface IISeriesEditorParser
public boolean isDebugMode()
public boolean isReadOnly()
isReadOnly
in interface IISeriesEditorParser
public boolean isValidFieldAction()
isValidFieldAction
in interface IISeriesEditorParser
com.ibm.etools.iseries.editor.IISeriesEditorParser#isValidFieldAction()
public boolean isValidIncludeAction()
isValidIncludeAction
in interface IISeriesEditorParser
com.ibm.etools.iseries.editor.IISeriesEditorParser#isValidFieldAction()
protected boolean isLineAboveDataRegion(int iLine)
public boolean isElementAboveDataRegion(int iElement)
public boolean isLocal()
ISystemTextEditorParser
isLocal
in interface ISystemTextEditorParser
ISystemTextEditorParser.isLocal()
public void parseAll()
public void parseElement(int iElement)
public void parseElements(int iElementFirst, int iElementLast, int iElementCurrent)
public abstract void parseLine(int iLine)
protected abstract void parseRegion(int iLineFirst, int iLineLast, IProgressMonitor progressMonitor)
public void prompt()
public abstract void promptRequest()
public void removeErrors(int iElement)
removeErrors
in interface ISystemTextEditorParser
iLineNum
- the line number where you want to remove all the messages*** NOTE if you modify this method, you should also modify the COBOL parsers!
public void removeErrors(int iStartElement, int iEndElement)
removeErrors
in interface ISystemTextEditorParser
*** NOTE if you modify this method, you should also modify the COBOL parsers!
public void saving(ITextEditor editor)
saving
in interface ISystemTextEditorContextContributor
public void selectionLinesChanged(int iLineOrigin, int iLineExtent)
selectionLinesChanged
in interface IISeriesEditorParser
public void selectionLinesChanged(int iLineOrigin, int iLineExtent, int iLineCursor, int startPosition, int selectedLength)
iLineOrigin
- - begin of higlighted rangeiLineExtent
- - number of lines in highlighted rangeiLineCursor
- - cursored linestartPosition
- - column of begin of selectionpublic void selectionLinesChanged(int iLineOrigin, int iLineExtent, int startPosition, int selectedLength)
public void setAS400(AS400 as400)
public void setDebugMode(boolean bDebugMode)
setDebugMode
in interface ISystemTextEditorDebugContributor
public void setLocal(boolean bLocal)
ISystemTextEditorParser
setLocal
in interface ISystemTextEditorParser
ISystemTextEditorParser.setLocal(boolean)
public void setEditor(LpexTextEditor editor)
IISeriesEditorParser
setEditor
in interface IISeriesEditorParser
editor
- 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
public void setEnableParseExtras(boolean bEnable)
IISeriesEditorParser
setEnableParseExtras
in interface IISeriesEditorParser
bEnable
- whether or not the parsers should ignore the extra features they may havecom.ibm.etools.iseries.editor.IISeriesEditorParser#setEnableParseExtras(boolean)
protected void updateProfileForActions(LpexView lpexView)
protected void updateProfileForTabbing(LpexView lpexView)
public String upperCase(String line)
line
- the line to uppercase
public String getProperty(String key)
public void terminateParser()
com.ibm.lpex.core.LpexCommonParser#terminateParser()
public void setCompileErrorInfo(ISeriesCompileEditManager compileEditManager, String markNames, QSYSErrorMarkerListener errorMarkerListener)
IISeriesCompileErrorInfoViewHandler
setCompileErrorInfo
in interface IISeriesCompileErrorInfoViewHandler
markNames
- the list of names of marks in the primary viewpublic void copyCompileErrorInfo(LpexView secondaryView)
IISeriesCompileErrorInfoViewHandler
copyCompileErrorInfo
in interface IISeriesCompileErrorInfoViewHandler
public LpexView getLpexView()
getLpexView
in interface IISeriesEditorParser
public int queryDataLine()
public LpexFieldsProvider getFieldsProvider()
getFieldsProvider
in interface IISeriesEditorParser
protected void resetOutlineView()
public LpexDocumentLocation match(LpexDocumentLocation loc)
public void doRefresh()
doRefresh
in interface ISystemTextEditorParser
ISystemTextEditorParser.doRefresh()
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |