|
I found a few teasers that might answer your q's.... These were all from a thread named "jLpex keys for re-definition" <snip> Unfortunately, Eclipse's key-binding mechanism changes drastically with each release (and there seems to be no end to this in sight, at least not yet). In WDSC 5.1 (which is based on Eclipse R2.1.1), LPEX will at least get all the keys it actually defines in its base profiles ("lpex", "seu", etc.), including those that may be used by top-level menu mnemonics or other Eclipse global actions. However, it may still not get other key combinations outside this defined scope (such as Alt+O), if used elsewhere (for example, mnemonics)... <snip> and <snip> Robin Coles wrote: > 2) Is there a way of defining multiple key actions or other "mini > macros" without having to resort to Java? E.g. In code I have a key > that maps to shift a block right 3 spaces. In jLpex I can map a key > that shifts a block right one space, but I can't pass it the number of > spaces to shift, and I can't work out how to repeat the "shift once" > automatically. Not right now. However, you can try a 'quick and dirty' Java "macro", if you're not inclined to go through developing a plug-in for LPEX extensions, etc. Disclaimer: Quick here is relative, just as you may so consider the dirty part! 1.- Edit a file ThreeRight.java: ====================================================================== import com.ibm.lpex.core.LpexAction; import com.ibm.lpex.core.LpexView; public class ThreeRight implements LpexAction { public void doAction(LpexView lpexView) { int shift = lpexView.actionId("blockShiftRight"); lpexView.doAction(shift); lpexView.doAction(shift); lpexView.doAction(shift); } public boolean available(LpexView lpexView) { return lpexView.actionAvailable(lpexView.actionId("blockShiftRight")); } } ====================================================================== 2.- Compile with: javac ThreeRight.java Your classpath must include: <wdsc install root>\eclipse\plugins\com.ibm.lpex_1.3.8\lpex.jar 3.- Copy the resulting class to the LPEX plug-in directory: copy ThreeRight.class <wdsc_install_root>\eclipse\plugins\com.ibm.lpex_1.3.8\*.* 4.- In the LPEX "User Actions" preferences, define the new class: Name: threeRight Class name: ThreeRight Now you can call this action from LPEX's command line: action threeRight or bind it to a key from the "User Key Actions" preferences: Key: a-backSpace Action: threeRight <snip> Eric DeLong Sally Beauty Company MIS-Project Manager (BSG) 940-898-7863 or ext. 1863 -----Original Message----- From: McCallion, Martin [mailto:martin.mccallion@xxxxxxxxx] Sent: Thursday, July 10, 2003 9:39 AM To: 'Websphere Development Studio Client for iSeries' Subject: RE: [WDSCI-L] WSAD keyboard customisation: when will WSAD catch u p with Eclipse 2.1? Eric DeLong wrote: > I can't answer your question regarding Eclipse 2.1, but I can > confirm that > your posts did come across. Thanks, Eric. I was thinking about trying again, as I _still_ never saw any of my posts come back. Strange. Cheers, Martin. -- Martin McCallion Senior Technical Consultant Misys Wholesale Banking Systems 1 St George's Road, London, SW19 4DR, UK T +44 (0)20 8486 1951 F +44 (0) 20 8947 3373 martin.mccallion@xxxxxxxxx www.misys.com This email message is intended for the named recipient only. It may be privileged and/or confidential. If you are not the intended named recipient of this email then you should not copy it or use it for any purpose, nor disclose its contents to any other person. You should contact Misys International Banking Systems as shown below so that we can take appropriate action at no cost to yourself. Misys International Banking Systems Ltd,1 St George's Road, London, SW19 4DR, UK. Email: ibs.postmaster@xxxxxxxxxx Tel: +44 (0) 20 8879 1188 Fax: +44 (0) 20 8947 3373 Misys International Banking Systems Ltd is registered in England and Wales under company no. 971479 _______________________________________________ This is the Websphere Development Studio Client for iSeries (WDSCI-L) mailing list To post a message email: WDSCI-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/wdsci-l or email: WDSCI-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/wdsci-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.