|
LPEX 3.6.8 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.lpex.samples.FindTextContextCommand
public class FindTextContextCommand
Sample command findText - redefines editor's to show context for the found text. Repositions the result of a successful find-text command or action in the specified view so that its context is shown - two lines above and below.
Here is the FindTextContextCommand source code.
To redefine the default findText command:
set commandClass.findText com.ibm.lpex.samples.FindTextContextCommand
The repositioning of the found text can be disabled by setting
userParameter.view.findTextContext to off. This is useful when running
the findText command without the need to reposition the result on the
screen (see, for example, the sample FindsCommand
).
TestUserProfile
,
All the samples
Constructor Summary | |
---|---|
FindTextContextCommand()
|
Method Summary | |
---|---|
boolean |
doCommand(LpexView lpexView,
String parameters)
Runs this command. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FindTextContextCommand()
Method Detail |
---|
public boolean doCommand(LpexView lpexView, String parameters)
doCommand
in interface LpexCommand
lpexView
- the document view in which the command was issuedparameters
- the findText command parameters
|
LPEX 3.6.8 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |