|
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.DetabCommand
Sample command detab - expand all tabs to spaces. It expands all the tab characters in the document to blanks. 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 DetabCommand source code.
To run this sample:
set commandClass.detab com.ibm.lpex.samples.DetabCommand
detab [stop1 stop2 .. [every increment]]
Constructor Summary | |
---|---|
DetabCommand()
|
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 DetabCommand()
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 |