Details
-
Bug
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
unversioned
-
None
Description
When debugging in the Squish test of a Java application with KTable, the content and tooltip of a cell provided by the picker to inspect a cell are wrong. When you click the cell on the row 0, col 1 you will get the content of the cell row 1, col 0. Even worse is when the table is not diagonal, you will get NPE.
The root cause of this is:
The provided squishextktable.zip on this page (https://kb.froglogic.com/squish/java/howto/widget-plug-ins/) contains code error:
The getContent and getToolTip function in the Cell.java are wrong. It should be getContentAt( column, row ) / .getTooltipAt( column, row ) instead of (row, column). See https://github.com/lantianjialiang/eclipse-plugins/blob/master/com.google.code.t4eclipse/src/de/kupzog/ktable/t4eclipse/KTableModel.java#L51 for the definition.