SWT LPEX
v3.0.5

com.ibm.lpex.samples
Class SetDateAction.SetDate

java.lang.Object
  extended bycom.ibm.lpex.samples.SetDateAction.SetDate
All Implemented Interfaces:
LpexCommand
Enclosing class:
SetDateAction

public static class SetDateAction.SetDate
extends Object
implements LpexCommand

Sample command setDate - set the sequence-numbers date in the selected range. Use this command to modify the textual part of the sequence numbers in all the currently-selected visible lines. If you do not specify the new text via the command parameter, you will be prompted for it.

This is an alternative to the setDate sample action, for cases in which the user prefers the command approach, or is running out of available keys to assign to actions.

Defined as a separate, named class inside SetDateAction (where you can also see its source code), it can be registered in the editor with, for example:

   set commandClass.setDate com.ibm.lpex.samples.SetDateAction$SetDate

and run with:
   setDate [ newDate ]


Constructor Summary
SetDateAction.SetDate()
           
 
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

SetDateAction.SetDate

public SetDateAction.SetDate()
Method Detail

doCommand

public boolean doCommand(LpexView lpexView,
                         String parameters)
Runs this command. Uses the specified date, or otherwise prompts the user for one, and updates the sequence numbers of all the visible selected lines.

Specified by:
doCommand in interface LpexCommand
Parameters:
lpexView - the document view in which the command was issued
parameters - optional new date to set

SWT LPEX
v3.0.5

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