|
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.Lpex2
public final class Lpex2
Sample stand-alone editor built on the LPEX edit widget. Displays a split view of the document.
Here is the Lpex2 source code.
To run this sample from the command line:
java [options] com.ibm.lpex.samples.Lpex2 [filename]
[-encoding encoding]
A possible Windows batch program is:
@start /b java com.ibm.lpex.samples.Lpex2 %1 %2 %3 %4 %5To disable the JIT compiler, run it with this option:
-Djava.compiler=You can run Lpex in a particular locale. For example, in order to run it in Simplified Chinese (zh_CN), use these two options:
-Duser.language=zh -Duser.region=CNCommands defined in here:
Example of running Lpex2 via a user-defined editor command:
lpexView.defineCommand("Lpex2", new LpexCommand() {
public boolean doCommand(LpexView view, final String parameters)
{
Display display = getDisplay();
display.asyncExec(new Runnable() {
public void run() {
try
{
Class cl = Class.forName("com.ibm.lpex.samples.Lpex2");
Method mainMethod = cl.getDeclaredMethod("main", new Class[] {String[].class});
String[] args = LpexStringTokenizer.split(parameters);
mainMethod.invoke(null, new Object[] {args});
}
catch (Exception e) {}
}});
return true;
}
}); |
All the samples| Method Summary | |
|---|---|
static void |
main(String[] args)
Entry point. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void main(String[] args)
|
LPEX 4.4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||