SWT LPEX
v3.0.5

com.ibm.lpex.samples
Class EntabCommand

java.lang.Object
  extended bycom.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

SWT LPEX
v3.0.5

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