Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Problem in setting focus in text in editor
Problem in setting focus in text in editor [message #514471] Mon, 15 February 2010 08:11
jay is currently offline jay
Messages: 5
Registered: July 2009
Junior Member
I have created some swt text controls in eclipse RCP forms in an editor.When
i save the contents in the editor , if there is an error in some entered
value in texts controls then an error code is returned depending upon type
of error. Each error code corresponds to specific text control.I show a info
dialog box showing description of the error and then depending upon error
code i want to set the focus to appropriate text control.

When i save the editor , editor saves its state ie.control on which last
focus is.After saving the editor ,the editor state is restored ie.focus is
set again on the control which has last focus.When i use setFocus() method
to my control it doesnt work ie.it returns false.Editor sets its focus again
to last focus control.

How do i manually set focus to a control so that editor won't set it to last
focus control??
Previous Topic:Problem is setting focus in editor.
Next Topic:Customize About Dialog
Goto Forum:
  


Current Time: Tue Jul 29 00:36:22 EDT 2014

Powered by FUDForum. Page generated in 0.02866 seconds