LPEX
3.6.7

com.ibm.lpex.samples
Class NestingCommand

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

public class NestingCommand
extends Object
implements LpexCommand

Sample command nesting - display block limits in the source. This is an example of custom drawing in the prefix area margin. Run this command with the cursor positioned on a block-delimiter bracket (for example, '{' or '}' in a C/C++ source document) to display the limits of the included blocks (up to a given level) as defined by the selected bracket.

Here is the NestingCommand source code.

To run this sample:

See Also:
All the samples

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

NestingCommand

public NestingCommand()
Method Detail

doCommand

public boolean doCommand(LpexView lpexView,
                         String parameters)
Runs this command. Establishes the bounds of the blocks to display, displays the nestings in the prefix-area margin.

Specified by:
doCommand in interface LpexCommand
Parameters:
lpexView - the document view in which the command was issued
parameters - optional parameter "on" / "off" / "?"

LPEX
3.6.7

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