Carolyn,
Thank you so much. I really appreciate your help. I have another beginner question. Is there a way to know that the user clicked on the File Menu or say typed text in the editor?
Thanks again,
Jason
On Wed, Sep 3, 2008 at 2:38 PM, Carolyn MacLeod
<Carolyn_MacLeod@xxxxxxxxxx> wrote:
Try Display.addFilter(event, listener).
For example,
Display display = new
Display();
display.addFilter(SWT.KeyDown,
new
Listener() {
public
void
handleEvent(Event event) {
System.out.println("\nkey
press event=" + new
KeyEvent(event));
}
});
SWT's CCombo uses a filter to handle
focus events on the drop-down list.
Caveat emptor: Only use filters
where absolutely necessary. Keep filter code to a minimum - if you try
to do too much in your filter, your whole UI can grind to a halt.
Carolyn
Hello,
I really hope this is the correct place to ask this question. I would like
to know is there any way to register listners with the SWT display instance
so that I may log a user's actions within the Eclipse IDE? I have looked
at the TPTP project, which has this functionality but couldn't wade my
way through all of their source code. Is there a simple way to do this.
Thanks,
--
Jason_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
--
Jason