|
LPEX 4.4.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.lpex.samples.ExecCommand
public class ExecCommand
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:
set commandClass.exec com.ibm.lpex.samples.ExecCommand
exec [fileName]
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 |
---|
public ExecCommand()
Method Detail |
---|
public boolean doCommand(LpexView lpexView, String fileName)
doCommand
in interface LpexCommand
lpexView
- the document view in which the command was issuedfileName
- optional name of a file to use
|
LPEX 4.4.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |