tooltips for data fields in bulk editor
[taxeditor.git] / eu.etaxonomy.taxeditor.bulkeditor / src / main / java / eu / etaxonomy / taxeditor / bulkeditor / e4 / BulkEditorTooltip.java
index 67451205ccd802ff131e9c53ca615288cc3d983b..5cd2002ff96da94093ed672416210900701eed3a 100644 (file)
@@ -57,10 +57,11 @@ public class BulkEditorTooltip extends DefaultToolTip {
         }
         int colIndex = this.natTable.getColumnIndexByPosition(col);
         int rowIndex = this.natTable.getRowIndexByPosition(row);
-        if(rowIndex==0){
+        if(row==0){
             return colHeaderDataProvider.getDataValue(colIndex, rowIndex).toString();
         }
-        return ""; //$NON-NLS-1$
+        return natTable.getCellByPosition(col, row).getDataValue().toString();
+
     }
 
     @Override
@@ -81,10 +82,10 @@ public class BulkEditorTooltip extends DefaultToolTip {
         }
 
         int rowIndex = this.natTable.getRowIndexByPosition(row);
-        if(rowIndex==0 && col>0){
-            return true;
+        if(row ==0 || col == 0){
+            return false;
         }
-        return false;
+        return true;
     }
 
 }