Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Raising SWT Events
Raising SWT Events [message #467019] Mon, 23 January 2006 02:56 Go to next message
Joseph Rignanese is currently offline Joseph RignaneseFriend
Messages: 16
Registered: July 2009
Junior Member
Hi guys,
I'm looking to raise a focus lost event on a composite when a text widget
inside it loses focus. Can anyone help me?

I was thinking it would be something like this:

notifyListeners(SWT.FocusOut, new Event());

but i wasn't sure if there was some way to create the Event from a
FocusEvent.

Thanks,
Joe
Re: Raising SWT Events [message #467036 is a reply to message #467019] Mon, 23 January 2006 15:54 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
You should not be raising a focus lost event in this case. Focus events are
already handled by the SWT widgets and introducing non-compliant events like
this will make you sad.

Instead of listening for focus lost on the composite, you should be
listening for SWT.Deactivate.

"Joseph Rignanese" <joseph@spectraqest.com.au> wrote in message
news:dr1gfn$c1h$1@utils.eclipse.org...
> Hi guys,
> I'm looking to raise a focus lost event on a composite when a text widget
> inside it loses focus. Can anyone help me?
>
> I was thinking it would be something like this:
>
> notifyListeners(SWT.FocusOut, new Event());
>
> but i wasn't sure if there was some way to create the Event from a
> FocusEvent.
>
> Thanks,
> Joe
>
Previous Topic:Mutibility in IEditorInput (should it or shouldn't it)
Next Topic:How to add a new Node the Tree Viewer available in Plugin from its Fragment
Goto Forum:
  


Current Time: Thu May 23 07:22:28 GMT 2019

Powered by FUDForum. Page generated in 0.01242 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top