I followed the instructions to the letter, but it doesn't seem to work for
me.
Here's the source of my UserProfile1 class:
package com.mycompany.lpexExtensions;
import com.ibm.lpex.core.LpexAction;
import com.ibm.lpex.core.LpexView;
public class UserProfile1 {
public static void userProfile(LpexView lpexView) {
// define new action
lpexView.defineAction("insertSemicolon2Action", new
LpexAction() {
public void doAction(LpexView view) {
// go to the end of the line
view.doAction(view.actionId("contextEnd"));
// insert a semicolon and comment string
view.doCommand("insertText ; /* */");
// position the cursor in the middle of
the comment
view.doAction(view.actionId("left"));
view.doAction(view.actionId("left"));
view.doAction(view.actionId("left"));
}
public boolean available(LpexView view) {
// allow the actino to run for any visible
text line in a writable document
return view.currentElement() != 0 &&
!view.queryOn("readonly");
}
});
// assign keys "Ctrl+5" to run insertSemicolon2Action
lpexView.doCommand("set keyAction.c-5 insertSemicolon2Action");
lpexView.doCommand("hairline cursor");
lpexView.doDefaultCommand("updateProfile");
}
}
Am I doing something wrong, because I don't see the hairline when I open
an RPGLE member. I still need to type "hairline cursor" every time I open
a source.
Thanks,
Peter Colpaert
Application Developer
PLI - IT - Kontich, Belgium
-----
Yoda of Borg are we. Futile is resistance, assimilated will you be.
-----
on an LPEX command line.
Brian Johnson wrote:
I found an article (for WebSphere Developer for zSeries!) that provides
step-by-step instructions that work for WDSCi 7.0.0. My profile is up
and
running.
http://www.ibm.com/developerworks/websphere/library/techarticles/0607_casey/0607_casey.html
On Nov 13, 2007 3:06 PM, Brian Johnson <brian.johnson.mn@xxxxxxxxx>
wrote:
OK. Were are the instructions for creating an Lpex user profile? The
Lpex preferences page help is not helpful; all is says is put your class
name here. Well, I created a class, but Lpex can't find it.
As an Amazon Associate we earn from qualifying purchases.