iSeries Remote Systems
v6.0.1

com.ibm.etools.iseries.editor
Class ResequenceAction

java.lang.Object
  extended byorg.eclipse.jface.action.Action
      extended byorg.eclipse.ui.texteditor.ResourceAction
          extended byorg.eclipse.ui.texteditor.TextEditorAction
              extended bycom.ibm.etools.iseries.editor.ResequenceAction
All Implemented Interfaces:
IAction, IISeriesEditorConstants, IUpdate, com.ibm.lpex.core.LpexAction

public class ResequenceAction
extends TextEditorAction
implements com.ibm.lpex.core.LpexAction, IISeriesEditorConstants


Field Summary
protected static ResourceBundle _bundle
          the resource bundle
static String copyright
          the copyright
static String STRID
          the string ID for the resequence action
 
Fields inherited from interface com.ibm.etools.iseries.editor.IISeriesEditorConstants
ACTION_COMPILE_ID, ACTION_VERIFYPROGRAM_ID, COMPILE_ERROR_CLASS_NAME, COMPILE_ERROR_MESSAGE_STYLE, FILE_TYPE_CL, FILE_TYPE_DDS, FILE_TYPE_OTHER, FILE_TYPE_RPGILE, FILE_TYPE_RPGOPM, MAX_DS_NESTING, 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_COLSEDIT_T, PREF_COMMAND_POS, PREF_COMMAND_POS_T, PREF_DATE, PREF_DATE_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_ONE_PARM_PER_LINE, PREF_ONE_PARM_PER_LINE_T, PREF_RESEQ_INCR, PREF_RESEQ_INCR_T, PREF_RESEQ_SAVE, PREF_RESEQ_SAVE_T, PREF_RESEQ_START, PREF_RESEQ_START_T, 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, SYNTAX_ERROR_CLASS_NAME
 
Fields inherited from interface org.eclipse.jface.action.IAction
AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, IMAGE, RESULT, TEXT, TOOL_TIP_TEXT
 
Constructor Summary
ResequenceAction(ITextEditor editor)
          Constructor for the resequence action
 
Method Summary
 boolean available(com.ibm.lpex.core.LpexView view)
          Resequencing is only available when there are sequence numbers
 void doAction(com.ibm.lpex.core.LpexView view)
          Method doAction.
 void run()
          this is the method that actually resequences the source this method runs when the menu option is selected
 void update()
          Resequencing is only available when there are sequence numbers
 
Methods inherited from class org.eclipse.ui.texteditor.TextEditorAction
canModifyEditor, getTextEditor, setEditor, validateEditorInputState
 
Methods inherited from class org.eclipse.ui.texteditor.ResourceAction
getString, initialize, setHelpContextId
 
Methods inherited from class org.eclipse.jface.action.Action
addPropertyChangeListener, convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, firePropertyChange, firePropertyChange, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, notifyResult, removeAcceleratorText, removeMnemonics, removePropertyChangeListener, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final String copyright
the copyright

See Also:
Constant Field Values

_bundle

protected static ResourceBundle _bundle
the resource bundle


STRID

public static final String STRID
the string ID for the resequence action

See Also:
Constant Field Values
Constructor Detail

ResequenceAction

public ResequenceAction(ITextEditor editor)
Constructor for the resequence action

See Also:
ISeriesEditorParserAction.ISeriesEditorParserAction(IISeriesEditorParser, String, String, ITextEditor)
Method Detail

available

public boolean available(com.ibm.lpex.core.LpexView view)
Resequencing is only available when there are sequence numbers

Specified by:
available in interface com.ibm.lpex.core.LpexAction
See Also:
LpexAction.available(LpexView)

doAction

public void doAction(com.ibm.lpex.core.LpexView view)
Method doAction. Resequences the source only if the resequence when save option is selected. This action is registered by the base parser and is only called in doSave in SystemTextEditorProfileDefault

Specified by:
doAction in interface com.ibm.lpex.core.LpexAction
Parameters:
view - the view to perform the action on.
See Also:
LpexAction.doAction(LpexView)

run

public void run()
this is the method that actually resequences the source this method runs when the menu option is selected

Specified by:
run in interface IAction
See Also:
IAction.run()

update

public void update()
Resequencing is only available when there are sequence numbers

Specified by:
update in interface IUpdate
See Also:
IUpdate.update()

iSeries Remote Systems
v6.0.1

Copyright © 2005 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.