Overview

 
Package  Use  Tree  Serialized  Deprecated  Index  Help 
SWT LPEX
v3.0.0
 PREV CLASS   NEXT CLASS FRAMES    NO FRAMES  
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD


 

com.ibm.lpex.samples
Class DetabCommand

java.lang.Object
  extended bycom.ibm.lpex.samples.DetabCommand

All Implemented Interfaces:
LpexCommand


public class DetabCommand
extends Object
implements LpexCommand

Sample command detab - expand all tabs to spaces. It expands all the tab characters in the document to blanks. By default, it uses the value of the tabs editor parameter in the current view. Alternatively, the tab settings may be specified via the command parameters.

Here is the DetabCommand source code.

To run this sample:

See Also:
TestUserProfile, All the samples


Constructor Summary
DetabCommand()
           
 
Method Summary
 boolean doCommand(LpexView lpexView, String parameters)
          This method in the defined command will be called to run the command.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

 

 

DetabCommand

public DetabCommand()

Method Detail

 

 

doCommand

public boolean doCommand(LpexView lpexView,
                         String parameters)

Description copied from interface: LpexCommand
This method in the defined command will be called to run the command.

The defined command should return false if the command syntax was incorrect (for example, missing or incorrect parameters), and true otherwise. When false is returned, an appropriate error message should preferably be displayed on the LPEX message line (using the set messageText editor command).

Specified by:
doCommand in interface LpexCommand

Parameters:
lpexView - the document view in which the command was issued
parameters - the command parameters


 

Overview

 
Package  Use  Tree  Serialized  Deprecated  Index  Help 
SWT LPEX
v3.0.0
 PREV CLASS   NEXT CLASS FRAMES    NO FRAMES  
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD