Jeff Mesnil’s Weblog

Archive for April, 2006

How to stop SWT Control traversal action

Tuesday, April 18th, 2006

Another ah-ha moment with Eclipse…

It is quite simple but I stumble upon it before finding how in Eclipse you can stop the traversal of SWT Control from a TraverseListener implementation.

In your listener, handle the TraverseEvent event and then just

event.doit = false;

and the system will stop traversing the Controls.

Everything is well explained in TraverseEvent javadoc (but […]