Rational Developer for Power Systems Software
V7.6

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

java.lang.Object
  extended by TextEditorAction
      extended by com.ibm.etools.systems.editor.actions.FindDateAction

public class FindDateAction
extends TextEditorAction

The action which handles searching by date


Field Summary
protected static ResourceBundle _bundle
           
static int ALL
           
static String copyright
           
static String FIND_ACTION_NAME
           
static String FIND_DATE_ID
           
protected  FindDateActionComposite findComposite
           
static int NEXT
           
static int PREVIOUS
           
static int SEARCH_EQUALS
           
static int SEARCH_GREATER_THAN
           
static int SEARCH_LESS_THAN
           
static int SEARCH_RANGE
           
 
Constructor Summary
FindDateAction(ITextEditor editor, boolean registerView)
          The constructor for this class
 
Method Summary
 boolean available(LpexView view)
          Find date is always available when there are sequence numbers
 void closeFindDateComposite()
          Closes the find date composite in the LPEX window
 void doAction(LpexView view)
           
 void find(String fromDate, String toDate, int type, boolean wrap, int direction)
          Finds the matching line in the view
 LpexView getLpexView()
          Retrieves the active view for the LPEX editor
 boolean isEnabled()
           
 void registerView(LpexView view)
          Updates the view, adding this action & key to the view
 void run()
           
 
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
See Also:
Constant Field Values

FIND_DATE_ID

public static final String FIND_DATE_ID
See Also:
Constant Field Values

FIND_ACTION_NAME

public static final String FIND_ACTION_NAME
See Also:
Constant Field Values

_bundle

protected static ResourceBundle _bundle

SEARCH_LESS_THAN

public static int SEARCH_LESS_THAN

SEARCH_GREATER_THAN

public static int SEARCH_GREATER_THAN

SEARCH_RANGE

public static int SEARCH_RANGE

SEARCH_EQUALS

public static int SEARCH_EQUALS

NEXT

public static int NEXT

PREVIOUS

public static int PREVIOUS

ALL

public static int ALL

findComposite

protected FindDateActionComposite findComposite
Constructor Detail

FindDateAction

public FindDateAction(ITextEditor editor,
                      boolean registerView)
The constructor for this class

Parameters:
editor - the editor that the action belongs to.
Method Detail

available

public boolean available(LpexView view)
Find date is always available when there are sequence numbers

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

closeFindDateComposite

public void closeFindDateComposite()
Closes the find date composite in the LPEX window


doAction

public void doAction(LpexView view)

find

public void find(String fromDate,
                 String toDate,
                 int type,
                 boolean wrap,
                 int direction)
Finds the matching line in the view

Parameters:
fromDate - the date to search for or the start date when searching a range
toDate - the to date if searching a range
type - the type of search
wrap - whether or not to wrap
direction - the direction to search: NEXT, PREVIOUS, ALL

getLpexView

public LpexView getLpexView()
Retrieves the active view for the LPEX editor

Returns:
the active view

registerView

public void registerView(LpexView view)
Updates the view, adding this action & key to the view

Parameters:
view - the view to update

run

public void run()

isEnabled

public boolean isEnabled()

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.