SWT LPEX
v3.0.5

com.ibm.lpex.samples
Class HtmlSource

java.lang.Object
  extended bycom.ibm.lpex.samples.HtmlSource
All Implemented Interfaces:
LpexCommand

public class HtmlSource
extends Object
implements LpexCommand

Sample windowless use of the LPEX widget / command htmlSource - generate HTML listing. This utility generates the HTML listing of a file.

Here is the HtmlSource source code (listing created with HtmlSource itself).

To run this sample:

   java com.ibm.lpex.samples.HtmlSource inputFile [outputFile]
The class implements LpexCommand, so it can also be run from the command line:

See Also:
All the samples

Constructor Summary
HtmlSource()
           
 
Method Summary
 boolean doCommand(LpexView lpexView, String parameters)
          Entry point when running this utility as an editor command.
static void main(String[] args)
          Entry point when running this utility from the system prompt.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlSource

public HtmlSource()
Method Detail

main

public static void main(String[] args)
Entry point when running this utility from the system prompt.

Parameters:
args - the input, and optionally output, file names

doCommand

public boolean doCommand(LpexView lpexView,
                         String parameters)
Entry point when running this utility as an editor command.

Specified by:
doCommand in interface LpexCommand
Parameters:
lpexView - the document view in which the command was issued
parameters - the input, and optionally output, file names

SWT LPEX
v3.0.5

(C) Copyright IBM Corporation 1998, 2005.  All Rights Reserved.