|
LPEX 4.4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.lpex.samples.TestUserProfile
public class TestUserProfile
Sample user profile - customize keys, commands, actions. It customizes the base editor profile (if not "vi") by redefining several settings and keys:
ZoomAction) to zoom in / out a document segmentComposeAction) to enter special charactersCloseJoin)
to remove extra spaces between the joined textsBlockTransferAction) to transfer selection, adds it to the popupFindNextSelection)
to search for the selected text, if anyFindTextContextCommand)
to show the context for the result of find-text command and actionsDetabCommand,
EntabCommand)MouseReselect)Here is the TestUserProfile source code.
To run this sample:
set [default.]updateProfile.userProfile com.ibm.lpex.samples.TestUserProfile updateProfile
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.
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 |
|---|
public static void userProfile(LpexView lpexView)
lpexView - the document view for which this profile is being runpublic static String parser(LpexView lpexView)
lpexView - the document view for which this profile is being run
null if none
|
LPEX 4.4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||