|
From: Matthew K. H. <mat...@ga...> - 2000-03-11 23:58:36
|
Greetings: I'm trying to get jEdit running smoothly on the Mac. When I do, I'll make it publicly available. There are a couple issues to be addressed as far as I can tell so far: OS-level events and key bindings. (1) The MacOS can send several events to applications (including Java applications), including "open a file", "quit now", "show an about box", etc. I am writing a "Mac" plugin that will respond to these OS-level events to make jEdit more "mac-like" for the user. My question: How should I invoke InputHandler.executeAction(ActionListener listener, Object source, String actionCommand) from within the plugin so that I can respond to one of these OS-type events? I see that I can call jEdit.getInputHandler() to get the current InputHandler. With that reference, I see that I could invoke executeAction(). But, what do I use for the arguments? I assume source = this (i.e my plugin) is fine. Is (new about()).getName() OK for the actionCommand string? And, what should be used for the listener? Is there a better (or another) way? Thanks in advance for any input on this topic. Cheers, Matt P.S. The second issue is that the key bindings (as currently implemented in jEdit) do not work properly on the Mac L&F. I'll be looking into this issue later, so I don't have any questions now. If anyone has any hints or experience with this, you could let me know. -- -- Matthew Kuperus Heun Global Aerospace Corporation +1 (978) 922-7115 (voice & fax) <http://www.gaerospace.com> <mailto:mat...@ga...> |