LPEX
4.4.0

com.ibm.lpex.samples
Class TestUserProfile

java.lang.Object
  extended by com.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:

Here is the TestUserProfile source code.

To run this sample:

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 editor profile (for example, a change to default settings done from the preference pages).

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

Nested Class Summary
static class TestUserProfile.CloseJoin
          Sample action closeJoin - join with just one space between the texts.
static class TestUserProfile.FindNextSelection
          Sample action findNextSelection - first search for the selected text, if any.
 
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

LPEX
4.4.0

Copyright � 2016 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.