This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have a 3 text boxes (org.eclipse.swt.widgets.Text) in a eclipse view (customized), and I've one action set menu named as "save" which responsible for get hold of the 3 text boxes values in to TableViewer. For this scenario, I've added the focus listener to each text boxes and focus lost event of focus listener. Within the focus lost event I've added the text box values in an array list and when the user clicked the action set menu "save" using that array list I can show the values in a TableViewer.
Now the problem is with my focus listener. Because of I've done my logic within the focus lost event, if the user enter a value in a first text box and directly go to the action set "save" and click it (please note : still the key cursor is in first text box only). Since this now the array list doesn't contain any thing.
My primary requirement is I've to get hold of the value even the user doesn't move to any other text box exclude where his cursor right now. For this can i use any other listeners?
Can we do programmatically push to get lost the focus of text boxes. Any Idea.?
Life is either daring something or nothing - Helen Keller