|
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 com.ibm.etools.iseries.parsers.ISeriesEditorDDSParser
public class ISeriesEditorDDSParser
Parser for DDS content.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.ibm.etools.iseries.parsers.ISeriesEditorParser |
---|
ISeriesEditorParser.DataLineMarkListener, ISeriesEditorParser.RunnableParseAll |
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.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 | |
---|---|
ISeriesEditorDDSParser(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 menuRoot)
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 IContentOutlinePage |
createOutlineView()
Return DDS EMF.Edit Outline View |
protected int |
determineElement(int iElement)
Sets the line class bits, and returns the opcode type. |
protected int |
determineLine(int iLine)
Deprecated. |
void |
finishedSaving(ITextEditor editor)
Method finishedSaving Does nothing for the DDS Parser |
String |
getCommentStyleCharacters()
Returns the style characters used for styling comments ("cs"). |
protected int |
getCommentType(String strLine)
Port of evfslxld.c, IsCommentLine |
int |
getDDSType()
|
int |
getElementSpecType(int iElement,
String strElement)
Returns the spec type of a Element. |
LpexFieldsProvider |
getFieldsProvider()
Retrieves the fields provided for the parser. |
protected int |
getHeadingKeywordType(int iHeadingSpecType)
Returns the keyword type that corresponds to the heading line type. |
protected int |
getHeadingType(int iElement,
String strElement)
Port of evfslxld.c, IsHeadingLine |
protected int |
getHeadingTypePrevious(int iElement)
Port of evfslxld.c, FindPreviousHeadingElement |
SystemTextEditorHelpHandler |
getHelpHandler()
Returns the help handler for this parser. |
String |
getLanguage()
Declared in ISystemEditorParser |
protected long |
getLineClassTypes(int iSpecType)
Given spectype return long with all of the class types bits or-ed in. |
int |
getLineSpecType(int iLine,
String strLine)
Deprecated. |
ISeriesEditorDDSContentOutlinePage |
getOutlineView()
Retrieve DDS model corresponding to the source in the editor |
String |
getPopupItems(int popupLocation)
56708 Return the popup menu items |
ResourceBundle |
getProfile()
|
IISeriesEditorProgramVerifier |
getProgramVerifier()
Returns the program verifier. |
IISeriesEditorPromptAdapter |
getPromptAdapter()
Method declared on ISeriesEditorParser. |
String |
getPromptFormatLine(int iSpecType)
Returns the format string of the line spec type. |
IISeriesEditorSyntaxChecker |
getSyntaxChecker()
Returns the syntax checker. |
protected void |
initializeColors()
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 false to let the super class know that this parser does not support debugging. |
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 evfslxss.c, LineParse |
protected void |
parseRegion(int iElementFirst,
int iElementLast,
IProgressMonitor progressMonitor)
Parses a contiguous set of Elements given the first and last Element numbers. |
void |
promptRequest()
Called when the F4 key was just pressed, before the focus is given to the prompter. |
void |
setDDSType(String strName)
Sets the DDS type from the file name extension. |
void |
setEditor(LpexTextEditor editor)
Need to overwrite because we do not have the editor reference at construction time Once the SystemTextEditor has an adapter factory this method can be deleted |
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 ISeriesEditorDDSTokenizer _tokenizer
protected ISeriesEditorDDSFormatLine _ruler
protected ISeriesEditorDDSPrefixProcessor _prefixer
protected ISeriesEditorDDSProgramVerifier _programVerifier
protected ISeriesEditorDDSPrompter _prompter
protected ISeriesEditorDDSSyntaxChecker _syntaxChecker
protected SystemTextEditorHelpHandler _helpHandler
protected SystemTextEditorHelpHandler _helpMessageHandler
protected int _iDDSType
protected long _lClassComment
protected long _lClassFileKwd
protected long _lClassFld
protected long _lClassFldKwd
protected long _lClassHelp
protected long _lClassHelpKwd
protected long _lClassJoin
protected long _lClassJoinKwd
protected long _lClassKey
protected long _lClassKeyKwd
protected long _lClassMask
protected long _lClassRec
protected long _lClassRecKwd
protected long _lClassSelo
protected long _lClassSpace
public static final int LAST_DELETED_ELEMENT_UNINITIALIZED
Constructor Detail |
---|
public ISeriesEditorDDSParser(LpexView view)
Method Detail |
---|
protected void initParser()
initParser
in class ISeriesEditorParser
public void setEditor(LpexTextEditor editor)
setEditor
in interface IISeriesEditorParser
setEditor
in class ISeriesEditorParser
editor
- the editor for this parsercom.ibm.etools.iseries.editor.ISeriesEditorParser#setEditor(com.ibm.lpex.alef.LpexTextEditor)
protected void contributeMenuItems(IMenuManager menuRoot, boolean bPopupMenu)
public void contributeToMenu(ITextEditor editor, IMenuManager menuRoot)
contributeToMenu
in interface ISystemTextEditorContextContributor
contributeToMenu
in class ISeriesEditorParser
public void contributeToPopupMenu(ITextEditor editor, IMenuManager menuRoot)
contributeToPopupMenu
in interface ISystemTextEditorContextContributor
public void contributeToToolBar(ITextEditor editor, IToolBarManager toolBarManager)
contributeToToolBar
in interface 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 ISystemTextEditorContextContributor
cleanupToolBar
in class ISeriesEditorParser
ISystemTextEditorContextContributor.cleanupToolBar(ITextEditor, IToolBarManager)
protected void createActions(ITextEditor editor)
protected int determineLine(int iLine)
protected int determineElement(int iElement)
public void finishedSaving(ITextEditor editor)
finishedSaving
in interface ISystemTextEditorContextContributor
ISystemTextEditorContextContributor.finishedSaving(ITextEditor)
public String getCommentStyleCharacters()
protected int getCommentType(String strLine)
public int getDDSType()
protected int getHeadingKeywordType(int iHeadingSpecType)
protected int getHeadingType(int iElement, String strElement)
protected int getHeadingTypePrevious(int iElement)
public SystemTextEditorHelpHandler getHelpHandler()
getHelpHandler
in interface IISeriesEditorParser
public String getLanguage()
getLanguage
in interface ISystemTextEditorParser
getLanguage
in class ISeriesEditorParser
protected long getLineClassTypes(int iSpecType)
public int getLineSpecType(int iLine, String strLine)
public int getElementSpecType(int iElement, String strElement)
public String getPopupItems(int popupLocation)
getPopupItems
in class ISeriesEditorParser
com.ibm.lpex.core.LpexCommonParser#getPopupItems(int)
public IISeriesEditorProgramVerifier getProgramVerifier()
getProgramVerifier
in interface IISeriesEditorParser
getProgramVerifier
in class ISeriesEditorParser
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
protected void initializeColors()
public void initializeElementClassTypes()
public void initializeLpexView(LpexView lpexView)
initializeLpexView
in interface IISeriesEditorParser
initializeLpexView
in class ISeriesEditorParser
public boolean isLineDebuggable(int iLine)
isLineDebuggable
in interface ISystemTextEditorDebugContributor
public void parseElements(int iElementFirst, int iElementLast, int iElementCurrent)
ISeriesEditorParser
parseElements
in class ISeriesEditorParser
com.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 ISeriesEditorParser
public void setDDSType(String strName)
public void promptRequest()
promptRequest
in class ISeriesEditorParser
protected IContentOutlinePage createOutlineView()
createOutlineView
in class ISeriesEditorParser
com.ibm.etools.iseries.editor.ISeriesEditorParser#createOutlineView()
public ISeriesEditorDDSContentOutlinePage getOutlineView()
createIfDoesNotExist
- - parse and create model if it does not exist
public LpexFieldsProvider getFieldsProvider()
getFieldsProvider
in interface IISeriesEditorParser
getFieldsProvider
in class ISeriesEditorParser
public void cleanupMenu(ITextEditor editor, IMenuManager menuManager)
ISeriesEditorParser
subclasses which add other menus should subclass and call super
cleanupMenu
in interface ISystemTextEditorContextContributor
cleanupMenu
in class ISeriesEditorParser
ISystemTextEditorContextContributor.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 |