|
SWT LPEX v3.0.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.lpex.samples.TestCommand
Sample command - display a short message. Running this command will display a short message on the editor message line.
Here is the TestCommand source code.
To run this sample:
set commandClass.testCommand com.ibm.lpex.samples.TestCommand
testCommand
A user command is a Java class that implements the com.ibm.lpex.core.LpexCommand interface.
Constructor Summary | |
---|---|
TestCommand()
|
Method Summary | |
---|---|
boolean | doCommand(LpexView lpexView,
String parameters)
This method in the defined command will be called to run the command. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TestCommand()
Method Detail |
public boolean doCommand(LpexView lpexView, String parameters)
The defined command should return false if the command syntax was incorrect (for example, missing or incorrect parameters), and true otherwise. When false is returned, an appropriate error message should preferably be displayed on the LPEX message line (using the set messageText editor command).
|
SWT LPEX v3.0.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |