Focus lost event with hyperlink in Browser [message #1373941] |
Thu, 22 May 2014 07:50  |
Eclipse User |
|
|
|
Hi,
I have a problem with a hyperlink in the Browser widget. A simplified example is below:
I have an editable table and a Browser widget which contains a hyperlink. When I click inside a table's cell, the celleditor opens and has the focus.
SWT:
When I click on the hyperlink the celleditor closes because the hyperlink gains focus (on mousepressed)
RAP:
The celleditor does not close because the link does not gain the focus (there is no focusOut event on the table/celleditor)
Subsequently this leads to a "Widget is disposed" exception in
org.eclipse.jface.viewers.ColumnViewerEditor.cancelEditing()
Control control = cellEditor.getControl();
if (control != null && !viewer.getControl().isDisposed()) {
if (mouseListener != null) {
control.removeMouseListener(mouseListener); //control is disposed here!
Because control is disposed here
Maybe it is related to http://www.eclipse.org/forums/index.php/m/917900/?srch=focus#msg_917900 ?
[Updated on: Thu, 22 May 2014 09:56] by Moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.31729 seconds