Closing combo box dropdowns when leaving NatTable editor [message #1844091] |
Tue, 31 August 2021 23:39  |
Eclipse User |
|
|
|
Hello,
In our applications we have NatTables embedded in Editor parts.
If a combo box dropdown editor is opened, and then a different editor is selected, the new editor is open but the dropdown control is still visible over the new editor.
I have partially fixed the problem by adding to the NatCombo's Shell Listener a call to combo.hideDropDownControl() in the method shellDeactivated.
However, what I would rather do is close the ComboBoxCellEditor on shellDeactivated, as on return to the original Editor the cell editor is still open, which leads to the cell not showing the value of the cell, but a text cell editor with the cursor flashing, when we just do hideDropDownControl.
When I try to close the ComboBoxCellEditor on shellDeactivated, when clicking to a new editor the ComboBoxCellEditor is closed, but the new editor is not opened, or even stranger, sometimes our entire application is minimized in the OS.
I thought the problem was in the call to super.close() in AbstractCellEditor, where it calls forceFocus on its parent. However, I tried implementing my own close method where it simply removes the EditorControlListeners and disposes of the EditorControl, but the issue is still there.
Do you have any idea what could be going on?
Thanks,
Louis
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04035 seconds