LPEX
4.4.0

com.ibm.lpex.samples
Class DetabCommand

java.lang.Object
  extended by com.ibm.lpex.samples.DetabCommand
All Implemented Interfaces:
LpexCommand

public class DetabCommand
extends Object
implements LpexCommand

Sample command detab - expand all tabs to spaces. 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

LPEX
4.4.0

Copyright � 2016 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.