NPEs on empty table (BodyCellEditorMouseEventMatcher) [message #1051993] |
Mon, 29 April 2013 09:35  |
Eclipse User |
|
|
|
Hi,
the BodyCellEditorMouseEventMatcher as well as the RowSelectionModel seem to be very confident having done a call like ILayerCell cell = selectionLayer.getCellByPosition(columnPosition, rowPosition); .
The table that I am playing around with right now holds no data. Hence there are no cells. But as soon as there is a mouse click there is an NPE as well. Probably because the getCellByPosition() call returns null.
Is there a way to prevent this? I have implemented some kind of custom clicking behavior to achieve a 'full row but single row' selection behavior and 'select and show context popup menu on right click'.
Thanks for your help.
J
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.09203 seconds