LPEX
4.4.0

com.ibm.lpex.samples
Class ExecCommand

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

public class ExecCommand
extends Object
implements LpexCommand

Sample command exec - execute the specified file, visible selected text, or current line as editor commands. This command is similar to the execCommand editor action, but extends it to allow the execution of several editor commands. Comment lines, starting with "//", are ignored.

Here is the ExecCommand source code.

To run this sample:

See Also:
All the samples

Constructor Summary
ExecCommand()
           
 
Method Summary
 boolean doCommand(LpexView lpexView, String fileName)
          Runs this command.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecCommand

public ExecCommand()
Method Detail

doCommand

public boolean doCommand(LpexView lpexView,
                         String fileName)
Runs this command. Executes the specified file, selected text, or current line as editor commands.

Specified by:
doCommand in interface LpexCommand
Parameters:
lpexView - the document view in which the command was issued
fileName - optional name of a file to use

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.