SWT LPEX
v3.0.5

com.ibm.lpex.samples
Class LongestCommand

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

public class LongestCommand
extends Object
implements LpexCommand

Sample command longest - locate the longest text line. Run this command to locate the first longest visible text line in the current view. Trailing white space in the text is ignored.

Here is the LongestCommand source code.

To run this sample:

See Also:
All the samples

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

LongestCommand

public LongestCommand()
Method Detail

doCommand

public boolean doCommand(LpexView lpexView,
                         String parameters)
Runs this command. Positions the cursor on the first longest visible text line.

Specified by:
doCommand in interface LpexCommand
Parameters:
lpexView - the document view in which the command was issued
parameters - N/A, no parameters are used by this command

SWT LPEX
v3.0.5

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