SWT LPEX
v3.0.5

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. This class shares several methods with EntabCommand.

To run this sample:

See Also:
EntabCommand, All the samples

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

DetabCommand

public DetabCommand()
Method Detail

doCommand

public boolean doCommand(LpexView lpexView,
                         String parameters)
Runs this command. Expands all the tabs in the document.

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

SWT LPEX
v3.0.5

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