SWT LPEX
v3.0.5

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:

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

SWT LPEX
v3.0.5

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