Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.parsers
Class ISeriesEditorCPPParser

java.lang.Object
  extended by CppParser
      extended by com.ibm.etools.iseries.parsers.ISeriesEditorCPPParser
All Implemented Interfaces:
IISeriesCompileErrorInfoViewHandler, ISystemTextEditorContextContributor, ISystemTextEditorHelpContributor, ISystemTextEditorSourceViewerConfigurationContributor

public class ISeriesEditorCPPParser
extends CppParser
implements ISystemTextEditorSourceViewerConfigurationContributor, ISystemTextEditorContextContributor, ISystemTextEditorHelpContributor, IISeriesCompileErrorInfoViewHandler

The main purpose of this parser is to enable templates for CPP


Field Summary
protected  ISeriesCompileEditManager _compileEditManager
           
protected  QSYSErrorMarkerListener _compileErrorMarkerListener
           
protected  String _compileMarkNames
           
protected  LpexSourceViewerConfiguration _defaultSourceViewerConfiguration
          The default source viewer configuration.
protected  LpexTextEditor _editor
           
protected  SystemTextEditorHelpHandler _helpHandler
           
protected  LpexView _view
           
 
Fields inherited from interface com.ibm.etools.systems.editor.ISystemTextEditorSourceViewerConfigurationContributor
Copyright
 
Fields inherited from interface com.ibm.etools.systems.editor.ISystemTextEditorContextContributor
Copyright
 
Fields inherited from interface com.ibm.etools.systems.editor.ISystemTextEditorHelpContributor
Copyright
 
Constructor Summary
ISeriesEditorCPPParser(LpexView view)
           
 
Method Summary
 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 contributeToPopupMenu(ITextEditor editor, IMenuManager menuManager)
          Contributes popup menu bar items.
 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  void doShowErrorsAction(LpexView view)
          Filter view>Errors action
 void finishedSaving(ITextEditor editor)
          Method finishedSaving Does nothing for the ILE CPP Parser
 LpexTextEditor getEditor()
           
 SystemTextEditorHelpHandler getHelpHandler()
          Returns the help handler for this parser.
 LpexLanguageHelp getLpexLanguageHelpHandler()
          Declared in ISystemTextEditorHelpContributor
 LpexSourceViewerConfiguration getSourceViewerConfiguration()
          Returns the source viewer configuration.
protected  void initParser()
          initialize parser
 boolean isExtensionKeyword(com.ibm.lpex.cc.Token token)
           
 void parseElement(int element)
          Incremental parse.
 void saving(ITextEditor editor)
          Method saving.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_defaultSourceViewerConfiguration

protected LpexSourceViewerConfiguration _defaultSourceViewerConfiguration
The default source viewer configuration. Supports simple template completions.


_view

protected LpexView _view

_helpHandler

protected SystemTextEditorHelpHandler _helpHandler

_editor

protected LpexTextEditor _editor

_compileMarkNames

protected String _compileMarkNames

_compileErrorMarkerListener

protected QSYSErrorMarkerListener _compileErrorMarkerListener

_compileEditManager

protected ISeriesCompileEditManager _compileEditManager
Constructor Detail

ISeriesEditorCPPParser

public ISeriesEditorCPPParser(LpexView view)
Method Detail

initParser

protected void initParser()
initialize parser


doShowErrorsAction

protected void doShowErrorsAction(LpexView view)
Filter view>Errors action

Parameters:
view -
Since:
601 59769

getSourceViewerConfiguration

public LpexSourceViewerConfiguration getSourceViewerConfiguration()
Returns the source viewer configuration. Default implementation returns null.

Specified by:
getSourceViewerConfiguration in interface ISystemTextEditorSourceViewerConfigurationContributor

saving

public void saving(ITextEditor editor)
Method saving. Called before saving. Does the resequence on save

Specified by:
saving in interface ISystemTextEditorContextContributor

cleanupMenu

public void cleanupMenu(ITextEditor editor,
                        IMenuManager menuManager)
Removes the Source and Compile menu items

subclasses which add other toolbar menus should subclass and call super

Specified by:
cleanupMenu in interface ISystemTextEditorContextContributor
See Also:
ISystemTextEditorContextContributor.cleanupMenu(ITextEditor, IMenuManager)

cleanupPopupMenu

public void cleanupPopupMenu(ITextEditor editor,
                             IMenuManager menuManager)
There are no common popup menu items.

subclasses which add other popup menu items should subclass and call super

Specified by:
cleanupPopupMenu in interface ISystemTextEditorContextContributor
See Also:
ISystemTextEditorContextContributor.cleanupPopupMenu(ITextEditor, IMenuManager)

cleanupToolBar

public void cleanupToolBar(ITextEditor editor,
                           IToolBarManager toolBarManager)
removes the next and previous error toolbar buttons

subclasses which add other toolbar buttons should subclass and call super

Specified by:
cleanupToolBar in interface ISystemTextEditorContextContributor
See Also:
ISystemTextEditorContextContributor.cleanupToolBar(ITextEditor, IToolBarManager)

contributeToMenu

public void contributeToMenu(ITextEditor editor,
                             IMenuManager menuManager)
Contributes basic actions to source menu bar Subclasses should override to contribute menu bar items and call super.

Specified by:
contributeToMenu in interface ISystemTextEditorContextContributor

contributeToPopupMenu

public void contributeToPopupMenu(ITextEditor editor,
                                  IMenuManager menuManager)
Contributes popup menu bar items.

Specified by:
contributeToPopupMenu in interface ISystemTextEditorContextContributor

finishedSaving

public void finishedSaving(ITextEditor editor)
Method finishedSaving Does nothing for the ILE CPP Parser

Specified by:
finishedSaving in interface ISystemTextEditorContextContributor
See Also:
ISystemTextEditorContextContributor.finishedSaving(ITextEditor)

contributeToToolBar

public void contributeToToolBar(ITextEditor editor,
                                IToolBarManager toolBarManager)
Subclasses override to contribute tool bar items.

Specified by:
contributeToToolBar in interface ISystemTextEditorContextContributor

getLpexLanguageHelpHandler

public LpexLanguageHelp getLpexLanguageHelpHandler()
Declared in ISystemTextEditorHelpContributor

Specified by:
getLpexLanguageHelpHandler in interface ISystemTextEditorHelpContributor

getHelpHandler

public SystemTextEditorHelpHandler getHelpHandler()
Returns the help handler for this parser.


isExtensionKeyword

public boolean isExtensionKeyword(com.ibm.lpex.cc.Token token)

getEditor

public LpexTextEditor getEditor()

parseElement

public void parseElement(int element)
Incremental parse.

Parameters:
element - an element affected by a committed change in this view
Since:
6.0.1 59743

setCompileErrorInfo

public void setCompileErrorInfo(ISeriesCompileEditManager compileEditManager,
                                String markNames,
                                QSYSErrorMarkerListener errorMarkerListener)
Description copied from interface: IISeriesCompileErrorInfoViewHandler
Used to set the compile information to be used when splitting a view so that errors appear in the splits.

Specified by:
setCompileErrorInfo in interface IISeriesCompileErrorInfoViewHandler
markNames - the list of names of marks in the primary view

copyCompileErrorInfo

public void copyCompileErrorInfo(LpexView secondaryView)
Description copied from interface: IISeriesCompileErrorInfoViewHandler
Used to copy the compile message markers from the primary view to the newly opened secondary view.

Specified by:
copyCompileErrorInfo in interface IISeriesCompileErrorInfoViewHandler

Rational Developer for Power Systems Software
V7.6

Copyright © 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.