|
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.MinLpex
Sample minimal stand-alone editor used to test the LPEX edit widget. Modifying this sample allows you to test easily your extensions to the LPEX widget.
Here is the MinLpex source code.
To run this sample from the command line:
java [options] com.ibm.lpex.samples.MinLpex [filename]A possible Windows batch program is:
@start /b java com.ibm.lpex.samples.MinLpex %1To disable the JIT compiler, run it with this option:
-Djava.compiler=You can run MinLpex 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 and actions defined in here:
Example of opening a file with MinLpex via a user-defined editor command:
lpexView.defineCommand("MinLpex", 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.MinLpex"); Method mainMethod = cl.getDeclaredMethod("main", new Class[] {String[].class}); String[] args = new String[] {parameters}; mainMethod.invoke(null, new Object[] {args}); } catch (Exception e) {} }}); return true; } }); |
Constructor Summary | |
---|---|
MinLpex(String filename,
org.eclipse.swt.graphics.Rectangle bounds)
Constructor. |
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 |
Constructor Detail |
public MinLpex(String filename, org.eclipse.swt.graphics.Rectangle bounds)
Method Detail |
public static void main(String[] args)
|
SWT LPEX v3.0.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |