LPEX
3.6.8

com.ibm.lpex.samples
Class EntabCommand

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

public class EntabCommand
extends Object
implements LpexCommand

Sample command entab - compress leading spaces to tabs. It compresses leading blanks in the document to tab characters. 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 EntabCommand source code. This class shares several methods with DetabCommand.

To run this sample:

See Also:
DetabCommand, All the samples

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

EntabCommand

public EntabCommand()
Method Detail

doCommand

public boolean doCommand(LpexView lpexView,
                         String parameters)
Runs this command. Compresses leading spaces in the document to tabs.

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

LPEX
3.6.8

Copyright © 2013 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.