|
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.ObjectILECobolSqlCicsParser
com.ibm.etools.iseries.parsers.ISeriesEditorCobolILESqlCicsParser
public class ISeriesEditorCobolILESqlCicsParser
Parser for Cobol Sql Cics.
| Fields inherited from interface com.ibm.etools.iseries.parsers.IISeriesEditorParser |
|---|
Copyright |
| Fields inherited from interface com.ibm.etools.systems.editor.ISystemTextEditorHelpContributor |
|---|
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.ISystemTextEditorAdapterContributor |
|---|
Copyright |
| Fields inherited from interface com.ibm.etools.systems.editor.ISystemTextEditorSourceViewerConfigurationContributor |
|---|
Copyright |
| Constructor Summary | |
|---|---|
ISeriesEditorCobolILESqlCicsParser(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. |
void |
doRefreshAction()
Refreshes the display. |
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 |
LpexSourceViewerConfiguration |
getSourceViewerConfiguration()
Returns the source viewer configuration. |
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 |
parseElementForCodeAssist(int iElement)
|
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 ISeriesEditorCOBOLSourceViewerConfiguration _configuration
protected boolean _bDebugMode
protected boolean _bLocal
protected String _strLocalFileName
protected IQSYSMember _member
protected LpexTextEditor _editor
protected IFile _iFile
protected int _iCCSID
protected IMenuManager _menuSource
protected IMenuManager _menuCompile
protected boolean bIgnoreParseExtras
protected boolean _bIgnoreParseExtras
protected ISeriesEditorCOBOLPrompter _prompter
protected String _compileMarkNames
protected QSYSErrorMarkerListener _compileErrorMarkerListener
protected ISeriesCompileEditManager _compileEditManager
| Constructor Detail |
|---|
public ISeriesEditorCobolILESqlCicsParser(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 IISeriesEditorParseriElement - the element number where the error is to be insertederror - the error textthe - character which represents the message style
public void addCompileError(int iElement,
String strError)
addCompileError in interface IISeriesEditorParseriElement - 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 ISystemTextEditorContextContributorISystemTextEditorContextContributor.cleanupMenu(ITextEditor, IMenuManager)
public void cleanupPopupMenu(ITextEditor editor,
IMenuManager menuManager)
ISystemTextEditorContextContributor
cleanupPopupMenu in interface ISystemTextEditorContextContributorISystemTextEditorContextContributor.cleanupPopupMenu(ITextEditor, IMenuManager)
public void cleanupToolBar(ITextEditor editor,
IToolBarManager toolBarManager)
cleanupToolBar in interface ISystemTextEditorContextContributorISystemTextEditorContextContributor.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 ISystemTextEditorContextContributorprotected void createActions(ITextEditor editor)
public void doPromptAction()
doPromptAction in interface IISeriesEditorParserpublic void prompt()
public void promptRequest()
protected void doLpexAction(LpexView view,
String action)
public void doRefreshAction()
public void finishedSaving(ITextEditor editor)
finishedSaving in interface ISystemTextEditorContextContributorISystemTextEditorContextContributor.finishedSaving(ITextEditor)public void elementChanged(LpexView lpexView)
com.ibm.lpex.core.LpexCursorListener#elementChanged(LpexView)public void focusGained(FocusEvent event)
FocusListenerpublic void focusLost(FocusEvent event)
FocusListener
public Object getAdapter(LpexTextEditor editor,
Class classRequired)
getAdapter in interface ISystemTextEditorAdapterContributorpublic LpexTextEditor getEditor()
IISeriesEditorParser
getEditor in interface IISeriesEditorParserpublic SystemTextEditorHelpHandler getHelpHandler()
getHelpHandler in interface IISeriesEditorParserpublic IFile getIFile()
IISeriesEditorParser
getIFile in interface IISeriesEditorParsercom.ibm.etools.iseries.editor.IISeriesEditorParser#getIFile()public Image getImage(String strImageName)
IISeriesEditorParser
getImage in interface IISeriesEditorParserpublic IBMiConnection getISeriesConnection(boolean bPromptAllowed)
getISeriesConnection in interface IISeriesEditorParserbPromptAllowed - 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 IISeriesEditorParsercom.ibm.etools.iseries.editor.IISeriesEditorParser#getISeriesMember()public String getLocalFileName()
ISystemTextEditorParser
getLocalFileName in interface ISystemTextEditorParsercom.ibm.etools.iseries.editor.IISeriesEditorParser#getFileName()public LpexLanguageHelp getLpexLanguageHelpHandler()
getLpexLanguageHelpHandler in interface ISystemTextEditorHelpContributorpublic IQSYSFile getFieldFile()
getFieldFile in interface IISeriesEditorParsercom.ibm.etools.iseries.editor.IISeriesEditorParser#getFieldFile()public IQSYSMember getIncludeMember()
IISeriesEditorParser
getIncludeMember in interface IISeriesEditorParsercom.ibm.etools.iseries.editor.IISeriesEditorParser#getIncludeMember()public boolean isLocal()
ISystemTextEditorParser
isLocal in interface ISystemTextEditorParserISystemTextEditorParser.isLocal()public boolean isReadOnly()
isReadOnly in interface IISeriesEditorParserpublic boolean isValidFieldAction()
isValidFieldAction in interface IISeriesEditorParsercom.ibm.etools.iseries.editor.IISeriesEditorParser#isValidFieldAction()public boolean isValidIncludeAction()
IISeriesEditorParser
isValidIncludeAction in interface IISeriesEditorParsercom.ibm.etools.iseries.editor.IISeriesEditorParser#isValidIncludeAction()public String getLshToken()
public LanguageModel getModel(boolean bUpdate)
getModel in interface IISeriesEditorParserprotected String getPopupItems(int popupLocation)
com.ibm.lpex.core.LpexCommonParser#getPopupItems(int)public IISeriesEditorProgramVerifier getProgramVerifier()
getProgramVerifier in interface IISeriesEditorParserpublic IISeriesEditorPromptAdapter getPromptAdapter()
getPromptAdapter in interface IISeriesEditorParserpublic IPropertySheetPage getPropertySheet()
getPropertySheet in interface IISeriesEditorParserpublic LpexSourceViewerConfiguration getSourceViewerConfiguration()
getSourceViewerConfiguration in interface ISystemTextEditorSourceViewerConfigurationContributorpublic IISeriesEditorSyntaxChecker getSyntaxChecker()
getSyntaxChecker in interface IISeriesEditorParserpublic IISeriesEditorFormatLine getFormatLine()
getFormatLine in interface IISeriesEditorParserpublic void initializeLpexView(LpexView lpexView)
initializeLpexView in interface IISeriesEditorParserprotected void initializeTabs()
public boolean isLineDebuggable(int iLine)
isLineDebuggable in interface ISystemTextEditorDebugContributorpublic void setLocal(boolean bLocal)
ISystemTextEditorParser
setLocal in interface ISystemTextEditorParserISystemTextEditorParser.setLocal(boolean)public void parseElement(int iElement)
protected void upperCaseElement(int _startElement,
int _endElement)
public void parseElementForCodeAssist(int iElement)
public void removeErrors(int iElement)
removeErrors in interface ISystemTextEditorParseriLineNum - the line number where you want to remove all the messagescom.ibm.etools.iseries.editor.IISeriesEditorParser#removeError(int)
public void removeErrors(int iStartElement,
int iEndElement)
removeErrors in interface ISystemTextEditorParser*** NOTE if you modify this method, you should also modify the other COBOL parsers
and ISeriesEditorParserpublic void saving(ITextEditor editor)
saving in interface ISystemTextEditorContextContributor
public void selectionLinesChanged(int iOrigin,
int iExtent)
selectionLinesChanged in interface IISeriesEditorParseriLineOrigin - - begin of higlighted rangeiLineExtent - - number of lines in highlighted rangepublic void setDebugMode(boolean bDebugMode)
setDebugMode in interface ISystemTextEditorDebugContributorpublic void setEditor(LpexTextEditor editor)
IISeriesEditorParser
setEditor in interface IISeriesEditorParsereditor - 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 IISeriesEditorParserbEnable - 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 IISeriesCompileErrorInfoViewHandlermarkNames - the list of names of marks in the primary viewpublic void copyCompileErrorInfo(LpexView secondaryView)
IISeriesCompileErrorInfoViewHandler
copyCompileErrorInfo in interface IISeriesCompileErrorInfoViewHandlerpublic LpexFieldsProvider getFieldsProvider()
getFieldsProvider in interface IISeriesEditorParserprotected void resetOutlineView()
public void doRefresh()
doRefresh in interface ISystemTextEditorParserISystemTextEditorParser.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 | |||||||||