Overview

 
Package  Use  Tree  Serialized  Deprecated  Index  Help 
SWT LPEX
v3.0.0
 PREV CLASS   NEXT CLASS FRAMES    NO FRAMES  
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD


 

com.ibm.lpex.samples
Class Lpex2

java.lang.Object
  extended bycom.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.


 

Overview

 
Package  Use  Tree  Serialized  Deprecated  Index  Help 
SWT LPEX
v3.0.0
 PREV CLASS   NEXT CLASS FRAMES    NO FRAMES  
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD