Fixed column bug for checklist editor....
authorAlexander Oppermann <a.oppermann@bgbm.org>
Wed, 25 Mar 2015 14:13:23 +0000 (14:13 +0000)
committerAlexander Oppermann <a.oppermann@bgbm.org>
Wed, 25 Mar 2015 14:13:23 +0000 (14:13 +0000)
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/checklist/ChecklistEditor.java

index b3506ee1403f83e9fdde80ccc0f257f7ef9d05be..917856013518d8f1c29db6c845420ad5a1cc13a3 100644 (file)
@@ -347,11 +347,11 @@ public class ChecklistEditor extends EditorPart implements ISelectionListener, I
             if (columnIndex == 1) {
                 table.setSortColumn(column.getColumn());
             }
             if (columnIndex == 1) {
                 table.setSortColumn(column.getColumn());
             }
-            if (columnIndex == 3) {
+            if (columnIndex == 2) {
                /** uncommented it for now because no rank editing is wanted **/
 //                column.setEditingSupport(new RankEditingSupport(viewer, this));
             }
                /** uncommented it for now because no rank editing is wanted **/
 //                column.setEditingSupport(new RankEditingSupport(viewer, this));
             }
-            if (columnIndex >= 4) {
+            if (columnIndex >= 3) {
                 //read PrefrenceStore to setWidth according to last saved state
                 if(restoreValuesForColumnWidth.get(columnIndex)){
                     column.getColumn().setWidth(100);
                 //read PrefrenceStore to setWidth according to last saved state
                 if(restoreValuesForColumnWidth.get(columnIndex)){
                     column.getColumn().setWidth(100);