Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.edit.ui.actions
Class ISeriesEditorParserAction

java.lang.Object
  extended by TextEditorAction
      extended by com.ibm.etools.iseries.edit.ui.actions.ISeriesEditorParserAction
All Implemented Interfaces:
IISeriesEditorConstants, ISystemEditorConstants
Direct Known Subclasses:
EnterKeyRPGAction, SelectFormatLineAction, ShowIndentationAction

public class ISeriesEditorParserAction
extends TextEditorAction
implements IISeriesEditorConstants


Field Summary
protected  boolean _bDisabledWhenOffline
          indicates whether or not the action should be disabled when work offline is selected
protected static ResourceBundle _bundle
           
protected  IISeriesEditorParser _parser
           
 String _strId
           
protected  String _strPrefix
           
static String copyright
           
protected  boolean m_enabled
           
protected  boolean m_enabledSet
           
 
Fields inherited from interface com.ibm.etools.iseries.edit.IISeriesEditorConstants
ACTION_VERIFYPROGRAM_ID, APPLICATION_DIAGRAM, COMPILE_ERROR_MESSAGE_STYLE, FILE_TYPE_CL, FILE_TYPE_DDS, FILE_TYPE_OTHER, FILE_TYPE_RPGILE, FILE_TYPE_RPGOPM, MAX_DS_NESTING, OUTLINE_VIEW, PREF_AUTO_FORMAT, PREF_AUTO_FORMAT_T, PREF_AUTO_UPPER, PREF_AUTO_UPPER_T, PREF_BASE_PREFIX, PREF_BLANK, PREF_BLANK_SUFFIX, PREF_BLANK_T, PREF_COMMAND_POS, PREF_COMMAND_POS_T, PREF_HIGHLIGHT, PREF_HIGHLIGHT_BACKGROUND, PREF_HIGHLIGHT_BACKGROUND_T, PREF_HIGHLIGHT_T, PREF_INDENT, PREF_INDENT_T, PREF_INDENTATION, PREF_INDENTATION_T, PREF_LABEL_ABOVE_CMD, PREF_LABEL_ABOVE_CMD_T, PREF_LABEL_POS, PREF_LABEL_POS_T, PREF_LINE_LENGTH, PREF_LINE_LENGTH_T, PREF_ONE_PARM_PER_LINE, PREF_ONE_PARM_PER_LINE_T, PREF_PARSER_ASSOC, PREF_PARSER_STYLES, PREF_SIGNATURE_T, PREF_SQL_SYNTAX_CHECK, PREF_SQL_SYNTAX_CHECK_T, PREF_SYNTAX_CHECK, PREF_SYNTAX_CHECK_T, PREF_TAB, PREF_TAB_GENERAL, PREF_TAB_GENERAL_T, PREF_TAB_T, PREF_TOOLTIP_SUFFIX, PROGRAM_VERIFICATION
 
Fields inherited from interface com.ibm.etools.systems.editor.ISystemEditorConstants
COMPILE_ERROR_CLASS_NAME, ICON_EDITOR_COMPILE, ICON_EDITOR_COMPILE_D, ICON_EDITOR_COMPILE_D_ID, ICON_EDITOR_COMPILE_D_ROOT, ICON_EDITOR_COMPILE_ID, ICON_EDITOR_COMPILE_ROOT, ICON_EDITOR_NEXT_ERROR, ICON_EDITOR_NEXT_ERROR_D, ICON_EDITOR_NEXT_ERROR_D_ID, ICON_EDITOR_NEXT_ERROR_D_ROOT, ICON_EDITOR_NEXT_ERROR_ID, ICON_EDITOR_NEXT_ERROR_ROOT, ICON_EDITOR_PREVIOUS_ERROR, ICON_EDITOR_PREVIOUS_ERROR_D, ICON_EDITOR_PREVIOUS_ERROR_D_ID, ICON_EDITOR_PREVIOUS_ERROR_D_ROOT, ICON_EDITOR_PREVIOUS_ERROR_ID, ICON_EDITOR_PREVIOUS_ERROR_ROOT, ICON_EXT, ICON_RELATIVE_PATH_DLCL16, ICON_RELATIVE_PATH_ELCL16, ICON_RELATIVE_PATH_FULL, ICON_SUFFIX, PREFIX, SYNTAX_ERROR_CLASS_NAME
 
Constructor Summary
ISeriesEditorParserAction(IISeriesEditorParser parser, String strId, String strPrefix, ITextEditor editor)
          Constructor.
ISeriesEditorParserAction(IISeriesEditorParser parser, String strId, String strPrefix, String strHelpContextId, ITextEditor editor)
          Constructor with Help ContextId.
 
Method Summary
 boolean available(LpexView view)
          If disableWhenOffline is set, the the action is available when not working offline.
 void doAction(LpexView view)
           
 int getAccelerator()
          Return "no accelerator" for this action.
 String getId()
          Returns the action identifier.
protected  void removeAccelerator(LpexView lpexView, int actionId)
          Method removeAccelerator.
 void run()
          Declared in Action.
 void setDisabledWhenOffline(boolean value)
          Method setDisabledWhenOffline.
 void setEnabled(boolean value)
           
 void update()
          If disableWhenOffline is set, the the action is enabled when not working offline.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static String copyright

_parser

protected IISeriesEditorParser _parser

_bundle

protected static ResourceBundle _bundle

_strPrefix

protected String _strPrefix

m_enabledSet

protected boolean m_enabledSet

m_enabled

protected boolean m_enabled

_strId

public String _strId

_bDisabledWhenOffline

protected boolean _bDisabledWhenOffline
indicates whether or not the action should be disabled when work offline is selected

Constructor Detail

ISeriesEditorParserAction

public ISeriesEditorParserAction(IISeriesEditorParser parser,
                                 String strId,
                                 String strPrefix,
                                 ITextEditor editor)
Constructor.


ISeriesEditorParserAction

public ISeriesEditorParserAction(IISeriesEditorParser parser,
                                 String strId,
                                 String strPrefix,
                                 String strHelpContextId,
                                 ITextEditor editor)
Constructor with Help ContextId.

Method Detail

getAccelerator

public int getAccelerator()
Return "no accelerator" for this action. Overrides org.eclipse.jface.action.Action's to circumvent a bug

See Also:
com.ibm.lpex.core#LpexContextContributor.LpexEditorAction.getAccelerator()

removeAccelerator

protected void removeAccelerator(LpexView lpexView,
                                 int actionId)
Method removeAccelerator. Reformats the text for the action removing the accelerator.

Parameters:
lpexView - the LpexView for this action
actionId - the LPEX id for this action.

getId

public String getId()
Returns the action identifier.


run

public void run()
Declared in Action.


doAction

public void doAction(LpexView view)
See Also:
com.ibm.lpex.core.LpexAction#doAction(LpexView)

available

public boolean available(LpexView view)
If disableWhenOffline is set, the the action is available when not working offline. Otherwise the action is always available.

See Also:
com.ibm.lpex.core.LpexAction#available(LpexView)

setDisabledWhenOffline

public void setDisabledWhenOffline(boolean value)
Method setDisabledWhenOffline. Use to set whether or not this action should be disabled when work offline is connection. Default is false.

Parameters:
value - true if the action should be enabled when working offline, false otherwise

update

public void update()
If disableWhenOffline is set, the the action is enabled when not working offline. Otherwise the action is always enabled.

See Also:
IUpdate

setEnabled

public void setEnabled(boolean value)

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.