LPEX
3.6.5

com.ibm.lpex.samples
Class Lpex2

java.lang.Object
  extended by com.ibm.lpex.samples.Lpex2

public final class Lpex2
extends Object

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 %5 
To 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=CN 

Commands 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;
  }
 }); 

See Also:
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

main

public static void main(String[] args)
Entry point.


LPEX
3.6.5

Copyright © 2012 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.