Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » ICelleditor: show error and do not allow to loose focus until valid data is inserted
ICelleditor: show error and do not allow to loose focus until valid data is inserted [message #941513] Fri, 12 October 2012 11:48 Go to previous message
Rui Domingues is currently offline Rui Domingues
Messages: 162
Registered: October 2010
Senior Member
Hi.

I'm implementing a tableviewer and two buttons to add and remove records.
Using Jface emf.edit databinding, I'm also implementing editing support for each field. for that I defined textcelleditors and Icelleditorvalidator.

My problem is: I want the user not exiting the editor until he inserted valid data, and When he is trying to exit and data is invalid I want to show an error messagebox.
Is this possible ?

I almost managed to do some of these things (with listener), however there exists always some where I stumble upon:
-listener.applyeditorvalue is called twice when exiting editor.
-listener.editorValuechange is called on each change

But I think the problem is around lostfocus event.

Is there any way to implement this?

Thanks in advance.
 
Read Message
Read Message
Read Message
Previous Topic:Validation of Tables with Databinding
Next Topic:Compositeruler and Sourceviewerconfiguration
Goto Forum:
  


Current Time: Thu May 23 10:25:08 EDT 2013

Powered by FUDForum. Page generated in 0.02431 seconds