|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object TextEditorAction com.ibm.etools.systems.editor.actions.FindDateAction
public class FindDateAction
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 |
---|
public static final String copyright
public static final String FIND_DATE_ID
public static final String FIND_ACTION_NAME
protected static ResourceBundle _bundle
public static int SEARCH_LESS_THAN
public static int SEARCH_GREATER_THAN
public static int SEARCH_RANGE
public static int SEARCH_EQUALS
public static int NEXT
public static int PREVIOUS
public static int ALL
protected FindDateActionComposite findComposite
Constructor Detail |
---|
public FindDateAction(ITextEditor editor, boolean registerView)
editor
- the editor that the action belongs to.Method Detail |
---|
public boolean available(LpexView view)
com.ibm.lpex.core.LpexAction#available(com.ibm.lpex.core.LpexView)
public void closeFindDateComposite()
public void doAction(LpexView view)
public void find(String fromDate, String toDate, int type, boolean wrap, int direction)
fromDate
- the date to search for or the start date when searching a rangetoDate
- the to date if searching a rangetype
- the type of searchwrap
- whether or not to wrapdirection
- the direction to search: NEXT, PREVIOUS, ALLpublic LpexView getLpexView()
public void registerView(LpexView view)
view
- the view to updatepublic void run()
public boolean isEnabled()
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |