|
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 Cobol400SqlCicsParser com.ibm.etools.iseries.parsers.ISeriesEditorCobol400SqlCicsParser
public class ISeriesEditorCobol400SqlCicsParser
Extension of the base parser for debug support.
Constructor Summary | |
---|---|
ISeriesEditorCobol400SqlCicsParser(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 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)
Cleanup the popup menu. |
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. |
void |
copyCompileErrorInfo(LpexView secondaryView)
Used to copy the compile message markers from the primary view to the newly opened secondary view. |
protected void |
createActions(ITextEditor editor)
Creates menubar and toolbar actions. |
protected void |
doLpexAction(LpexView view,
String action)
|
void |
doPromptAction()
Now supported. |
void |
doRefresh()
The implementation does nothing. |
protected void |
doShowErrorsAction(LpexView view)
Filter view>Errors action |
void |
elementChanged(LpexView lpexView)
v6.0.0 - ES - removed highlight line, use LPEX's version instead |
void |
finishedSaving(ITextEditor editor)
Method finishedSaving Does nothing for this Parser |
void |
focusGained(FocusEvent event)
when focus is gained, refresh and settings which may have been set in the preferences v6.0.0 - ES - removed highlight line, use LPEX's version instead NOTE: any changes in the following block must be propagated to all other COBOL parsers and ISeriesEditorParser |
void |
focusLost(FocusEvent event)
v6.0.0 - ES - removed highlight line, use LPEX's version instead NOTE: any changes in the following block must be propagated to all other COBOL parsers and ISeriesEditorParser |
Object |
getAdapter(LpexTextEditor editor,
Class classRequired)
Called by the editor to return an adapter. |
long |
getCommentClass()
|
LpexTextEditor |
getEditor()
The parser returns the editor (if known) |
IQSYSFile |
getFieldFile()
Method getFieldFile. |
LpexFieldsProvider |
getFieldsProvider()
Retrieves the fields provider for the parser. |
IISeriesEditorFormatLine |
getFormatLine()
Returns the format line ruler. |
SystemTextEditorHelpHandler |
getHelpHandler()
Returns the help handler for this parser. |
IFile |
getIFile()
gets the IFile for the source in the editor |
Image |
getImage(String strImageName)
The parser returns an image given the image name, or null if there is no image. |
IQSYSMember |
getIncludeMember()
Method getIncludeMember. |
IBMiConnection |
getISeriesConnection(boolean bPromptAllowed)
This method returns an ISeries connection object. |
IQSYSMember |
getISeriesMember()
Method getISeriesMember. |
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)
Called by the editor to return an adapter. |
protected String |
getPopupItems(int popupLocation)
|
IISeriesEditorProgramVerifier |
getProgramVerifier()
Returns the program verifier. |
IISeriesEditorPromptAdapter |
getPromptAdapter()
Returns the prompt adapter. |
IPropertySheetPage |
getPropertySheet()
Get property sheet |
IISeriesEditorSyntaxChecker |
getSyntaxChecker()
Returns the syntax checker. |
void |
initializeLpexView(LpexView lpexView)
Same as for iSeriesEditorParser, must always be in sync. |
protected void |
initializeTabs()
Initializes tab stops. |
protected void |
initParser()
initialize parser |
boolean |
isLineDebuggable(int iLine)
Returns true to let the super class know that this parser supports debugging. |
boolean |
isLocal()
Returns whether the input resource is local. |
boolean |
isOverrideDatePreference()
|
boolean |
isReadOnly()
Returns whether the editor is in read only state. |
boolean |
isValidFieldAction()
Method isValidFieldAction. |
boolean |
isValidIncludeAction()
Method isValidIncludeAction. |
void |
parseElement(int iElement)
Performs automatic syntax checking after parsing. |
void |
prompt()
Called by the editor whenever F4 is pressed. |
void |
promptRequest()
Called when the shift-F4 key was just pressed, before the focus is given to the prompter. |
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 iOrigin,
int iExtent)
Called when user clicks on an entry in the outline view. |
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. |
void |
setOverrideDatePreference()
|
void |
terminateParser()
When parsing is disabled, turn on autoCheck |
protected void |
updateProfileForActions(LpexView lpexView)
Same as for iSeriesEditorParser, must always be in sync. |
protected void |
upperCaseElement(int _startElement,
int _endElement)
Performs uppercasing of Elements if requested |
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.systems.editor.ISystemTextEditorParser |
---|
getLanguage |
Field Detail |
---|
public static final String Copyright
protected ISeriesEditorCobolSyntaxChecker _syntaxChecker
protected IBMiEditorCobolProgramVerifier _programVerifier
protected LpexView _view
protected PropertyResourceBundle _helpResourceBundle
protected SystemTextEditorHelpHandler _helpHandler
protected SystemTextEditorHelpHandler _helpMessageHandler
protected IMenuManager _menuLanguageHelp
protected boolean _bIgnoreDatePreference
protected boolean _bIsPrimaryLpexView
protected boolean _bOutlineViewNeedsResetting
protected ISeriesEditorCobolILEContentOutlinePage _page
protected boolean _bDebugMode
protected boolean _bLocal
protected String _strLocalFileName
protected LpexTextEditor _editor
protected IQSYSMember _member
protected IFile _iFile
protected int _iCCSID
protected IMenuManager _menuSource
protected boolean bIgnoreParseExtras
protected boolean _bIgnoreParseExtras
protected ISeriesEditorCOBOLPrompter _prompter
protected String _compileMarkNames
protected QSYSErrorMarkerListener _compileErrorMarkerListener
protected ISeriesCompileEditManager _compileEditManager
Constructor Detail |
---|
public ISeriesEditorCobol400SqlCicsParser(LpexView lpexView)
Method Detail |
---|
protected void initParser()
protected void doShowErrorsAction(LpexView view)
view
- 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
ISeriesEditorParser and the other COBOL parsers! @05public void addCompileError(int iElement, String strError)
addCompileError
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 ISeriesEditorParser and the other COBOL parsers!public void cleanupMenu(ITextEditor editor, IMenuManager menuManager)
cleanupMenu
in interface ISystemTextEditorContextContributor
ISystemTextEditorContextContributor.cleanupMenu(ITextEditor, IMenuManager)
public void cleanupPopupMenu(ITextEditor editor, IMenuManager menuManager)
ISystemTextEditorContextContributor
cleanupPopupMenu
in interface ISystemTextEditorContextContributor
ISystemTextEditorContextContributor.cleanupPopupMenu(ITextEditor, IMenuManager)
public void cleanupToolBar(ITextEditor editor, IToolBarManager toolBarManager)
cleanupToolBar
in interface ISystemTextEditorContextContributor
ISystemTextEditorContextContributor.cleanupToolBar(ITextEditor, IToolBarManager)
protected void contributeMenuItems(IMenuManager menuRoot, boolean bPopupMenu)
public void contributeToMenu(ITextEditor editor, IMenuManager menuManager)
contributeToMenu
in interface ISystemTextEditorContextContributor
public void contributeToPopupMenu(ITextEditor editor, IMenuManager menuRoot)
contributeToPopupMenu
in interface ISystemTextEditorContextContributor
public void contributeToToolBar(ITextEditor editor, IToolBarManager toolBarManager)
contributeToToolBar
in interface ISystemTextEditorContextContributor
protected void createActions(ITextEditor editor)
public void doPromptAction()
doPromptAction
in interface IISeriesEditorParser
public void prompt()
public void promptRequest()
protected void doLpexAction(LpexView view, String action)
public void elementChanged(LpexView lpexView)
com.ibm.lpex.core.LpexCursorListener#elementChanged(LpexView)
public void finishedSaving(ITextEditor editor)
finishedSaving
in interface ISystemTextEditorContextContributor
ISystemTextEditorContextContributor.finishedSaving(ITextEditor)
public void focusGained(FocusEvent event)
FocusListener
public void focusLost(FocusEvent event)
FocusListener
public Object getAdapter(LpexTextEditor editor, Class classRequired)
getAdapter
in interface ISystemTextEditorAdapterContributor
public LpexTextEditor getEditor()
IISeriesEditorParser
getEditor
in interface IISeriesEditorParser
public SystemTextEditorHelpHandler getHelpHandler()
getHelpHandler
in interface IISeriesEditorParser
public IFile getIFile()
IISeriesEditorParser
getIFile
in interface IISeriesEditorParser
com.ibm.etools.iseries.editor.IISeriesEditorParser#getIFile()
public Image getImage(String strImageName)
IISeriesEditorParser
getImage
in interface IISeriesEditorParser
public String getLocalFileName()
ISystemTextEditorParser
getLocalFileName
in interface ISystemTextEditorParser
com.ibm.etools.iseries.editor.IISeriesEditorParser#getFileName()
public String getLshToken()
public IQSYSFile getFieldFile()
getFieldFile
in interface IISeriesEditorParser
com.ibm.etools.iseries.editor.IISeriesEditorParser#getFieldFile()
public IQSYSMember getIncludeMember()
IISeriesEditorParser
getIncludeMember
in interface IISeriesEditorParser
com.ibm.etools.iseries.editor.IISeriesEditorParser#getIncludeMember()
public IBMiConnection getISeriesConnection(boolean bPromptAllowed)
getISeriesConnection
in interface IISeriesEditorParser
bPromptAllowed
- true if the user is allowed to be prompted, false otherwise
com.ibm.etools.iseries.editor.IISeriesEditorParser#getISeriesConnection(boolean)
public IQSYSMember getISeriesMember()
IISeriesEditorParser
getISeriesMember
in interface IISeriesEditorParser
com.ibm.etools.iseries.editor.IISeriesEditorParser#getISeriesMember()
public LpexLanguageHelp getLpexLanguageHelpHandler()
getLpexLanguageHelpHandler
in interface ISystemTextEditorHelpContributor
public boolean isLocal()
ISystemTextEditorParser
isLocal
in interface ISystemTextEditorParser
ISystemTextEditorParser.isLocal()
public boolean isReadOnly()
isReadOnly
in interface IISeriesEditorParser
public LanguageModel getModel(boolean bUpdate)
getModel
in interface IISeriesEditorParser
protected String getPopupItems(int popupLocation)
com.ibm.lpex.core.LpexCommonParser#getPopupItems(int)
public IISeriesEditorProgramVerifier getProgramVerifier()
getProgramVerifier
in interface IISeriesEditorParser
public IISeriesEditorPromptAdapter getPromptAdapter()
getPromptAdapter
in interface IISeriesEditorParser
public IPropertySheetPage getPropertySheet()
getPropertySheet
in interface IISeriesEditorParser
public IISeriesEditorSyntaxChecker getSyntaxChecker()
getSyntaxChecker
in interface IISeriesEditorParser
public IISeriesEditorFormatLine getFormatLine()
getFormatLine
in interface IISeriesEditorParser
public void initializeLpexView(LpexView lpexView)
initializeLpexView
in interface IISeriesEditorParser
protected void initializeTabs()
public boolean isValidFieldAction()
isValidFieldAction
in interface IISeriesEditorParser
com.ibm.etools.iseries.editor.IISeriesEditorParser#isValidFieldAction()
public boolean isValidIncludeAction()
IISeriesEditorParser
isValidIncludeAction
in interface IISeriesEditorParser
com.ibm.etools.iseries.editor.IISeriesEditorParser#isValidIncludeAction()
public boolean isLineDebuggable(int iLine)
isLineDebuggable
in interface ISystemTextEditorDebugContributor
public void setLocal(boolean bLocal)
ISystemTextEditorParser
setLocal
in interface ISystemTextEditorParser
ISystemTextEditorParser.setLocal(boolean)
public void parseElement(int iElement)
protected void upperCaseElement(int _startElement, int _endElement)
public void removeErrors(int iElement)
removeErrors
in interface ISystemTextEditorParser
iLineNum
- the line number where you want to remove all the messages @05com.ibm.etools.iseries.editor.IISeriesEditorParser#removeError(int)
public void removeErrors(int iStartElement, int iEndElement)
removeErrors
in interface ISystemTextEditorParser
com.ibm.etools.iseries.editor.IISeriesEditorParser#removeErrors(int, int)
public void saving(ITextEditor editor)
saving
in interface ISystemTextEditorContextContributor
public void selectionLinesChanged(int iOrigin, int iExtent)
selectionLinesChanged
in interface IISeriesEditorParser
iLineOrigin
- - begin of higlighted rangeiLineExtent
- - number of lines in highlighted rangepublic void setDebugMode(boolean bDebugMode)
setDebugMode
in interface ISystemTextEditorDebugContributor
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 both COBOL parsers
AND ISeriesEditorParser
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)
lpexView
- public void terminateParser()
com.ibm.lpex.core.LpexCommonParser#terminateParser()
public void setOverrideDatePreference()
public boolean isOverrideDatePreference()
public long getCommentClass()
public LpexView getLpexView()
getLpexView
in interface IISeriesEditorParser
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 LpexFieldsProvider getFieldsProvider()
getFieldsProvider
in interface IISeriesEditorParser
protected void resetOutlineView()
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 |