|
Re: ICelleditor: show error and do not allow to loose focus until valid data is inserted [message #1001325 is a reply to message #941513] |
Wed, 16 January 2013 13:42 |
Bernard Sarter Messages: 88 Registered: August 2011 Location: Paris, France |
Member |
|
|
Hi,
I'm facing the same problem:
final TextCellEditor textCellEditor = new TextCellEditor(table, SWT.NONE);
textCellEditor.addListener(new ICellEditorListener() {
@Override
public void applyEditorValue()
{
if (notOk) ErrorDialog.openError(null, "Error", "Problem", new Status(IStatus.WARNING, "foo", "Error."));
}
@Override
public void cancelEditor() {
}
@Override
public void editorValueChanged(boolean arg0, boolean arg1) {
}
});
applyEditorValue get's called twice, and the user needs to call the Errormessage twice (I do not have the problem if I do not display the ErrorDialog).
Any suggestion welcome (I'm using Eclipse 4.2.1).
Bernard.
|
|
|
|
Powered by
FUDForum. Page generated in 0.01899 seconds