Rational Developer for Power Systems Software
V7.6

com.ibm.etools.systems.editor.actions
Class ResequenceAction

java.lang.Object
  extended by TextEditorAction
      extended by com.ibm.etools.systems.editor.actions.ResequenceAction
All Implemented Interfaces:
ISystemTextEditorPreferenceConstants

public class ResequenceAction
extends TextEditorAction
implements ISystemTextEditorPreferenceConstants


Field Summary
protected static ResourceBundle _bundle
           
static String copyright
          the copyright
static String LPEX_ACTION
           
static String STRID
          the string ID for the resequence action
 
Fields inherited from interface com.ibm.etools.systems.editor.preferences.ISystemTextEditorPreferenceConstants
PREF_AUTOSAVE, PREF_AUTOSAVE_FREQ, PREF_COLSEDIT, PREF_DATE, PREF_RESEQ_INCR, PREF_RESEQ_SAVE, PREF_RESEQ_START, PREF_TOOLTIP_SUFFIX, ROOT
 
Constructor Summary
ResequenceAction(ITextEditor editor)
          Constructor for the resequence action
 
Method Summary
 boolean available(LpexView view)
          Resequencing is only available when there are sequence numbers
 void doAction(LpexView view)
          Method doAction.
 void registerView(LpexView view)
          Register a view with the action Defines the key combination for the action in the view
 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 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

STRID

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

See Also:
Constant Field Values

LPEX_ACTION

public static final String LPEX_ACTION
See Also:
Constant Field Values
Constructor Detail

ResequenceAction

public ResequenceAction(ITextEditor editor)
Constructor for the resequence action

Method Detail

registerView

public void registerView(LpexView view)
Register a view with the action Defines the key combination for the action in the view


available

public boolean available(LpexView view)
Resequencing is only available when there are sequence numbers

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

doAction

public void doAction(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

Parameters:
view - the view to perform the action on.
See Also:
com.ibm.lpex.core.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

See Also:
IAction

update

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

See Also:
IUpdate

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.