SWT LPEX
v3.0.5

com.ibm.lpex.samples
Class FindsCommand

java.lang.Object
  extended bycom.ibm.lpex.samples.FindsCommand
All Implemented Interfaces:
LpexCommand

public class FindsCommand
extends Object
implements LpexCommand

Sample command finds - count the number of find-text matches in view. This command uses the current findText. settings to determine the number of occurrences in the document of either findText.findText or the specified text string.

Here is the FindsCommand source code.

To run this sample:

See Also:
All the samples

Constructor Summary
FindsCommand()
           
 
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

FindsCommand

public FindsCommand()
Method Detail

doCommand

public boolean doCommand(LpexView lpexView,
                         String parameters)
Runs this command. Displays the number of find-text matches in the view.

Specified by:
doCommand in interface LpexCommand
Parameters:
lpexView - the document view in which the command was issued
parameters - the command parameters

SWT LPEX
v3.0.5

(C) Copyright IBM Corporation 1998, 2005.  All Rights Reserved.