|
SWT LPEX v3.0.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface LpexPreload defines an extension point for a plug-in to extend LPEX. Client plug-ins can make their custom LPEX extensions (user profiles, commands, actions, document parsers) widely available to all the LPEX-based editors in the Eclipse workbench through the extension point com.ibm.lpex.preload.
Method Summary | |
---|---|
void | preload()
Register LPEX extensions. |
Method Detail |
public void preload()
This method in the client plug-in's specified preload class is called. Here, the client plug-in may set default editor settings, for example:
// define this client plug-in's editor commands String newUserCommands = "myCommand com.mycompany.myproduct.commands.MyCommand"; String userCommands = LpexView.globalQuery("current.updateProfile.userCommands"); if (userCommands == null) { LpexView.doGlobalCommand("set default.updateProfile.userCommands " + newUserCommands); } else if (userCommands.indexOf("myCommand ") == -1) { LpexView.doGlobalCommand("set default.updateProfile.userCommands " + newUserCommands + " " + userCommands); } |
The client plug-in may also choose to extend the LPEX install settings, by adding the new parsers and parser associations that it contributes - see extendInstallProfile().
These settings will show in the LPEX Editor preference pages the first time these are displayed, even when the client plug-in has not been explicitly activated yet.
|
SWT LPEX v3.0.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |