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 TestUserProfile

java.lang.Object
  extended bycom.ibm.lpex.samples.TestUserProfile


public class TestUserProfile
extends Object

Sample user profile - customize keys, commands, actions. It customizes the base editor profile (if not "vi") by redefining several settings and keys:

The user profile is run during the processing of the updateProfile command. The updateProfile command is normally run when a document view is created, and it may be issued at any time to allow the document view to reflect changes to the profile.

Here is the TestUserProfile source code.

To run this sample:

A user profile is a public Java class that has a method of the form:

   public static void userProfile(LpexView lpexView) 
See the updateProfile.userProfile parameter.

See Also:
All the samples


Method Summary
static String parser(LpexView lpexView)
          Determines the document parser which will run after this user profile completes.
static void userProfile(LpexView lpexView)
          This is the method in a user profile that is called by the updateProfile editor command.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

 

 

userProfile

public static void userProfile(LpexView lpexView)

This is the method in a user profile that is called by the updateProfile editor command.

Parameters:
lpexView - the document view for which this profile is being run


 

 

parser

public static String parser(LpexView lpexView)

Determines the document parser which will run after this user profile completes.

Parameters:
lpexView - the document view for which this profile is being run
Returns:
the document parser name, or null if none


 

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