add specimen id to specimen selection dialog of character matrix
authorKatja Luther <k.luther@bgbm.org>
Tue, 21 Sep 2021 09:38:37 +0000 (11:38 +0200)
committerKatja Luther <k.luther@bgbm.org>
Tue, 21 Sep 2021 09:38:37 +0000 (11:38 +0200)
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/matrix/SpecimenSelectionDialog.java

index 108244a96ac2492dd5cc964266b5008746605239..410cebe4502bffe2617e05e784ebd387aed335f8 100644 (file)
@@ -202,6 +202,11 @@ public class SpecimenSelectionDialog extends Dialog {
         columnType.getColumn().setWidth(150);
         columnType.getColumn().setResizable(true);
         columnType.getColumn().setMoveable(true);
+        TableViewerColumn columnSpecimenID = new TableViewerColumn(list, SWT.NONE);
+        columnSpecimenID.getColumn().setText("Specimen ID");
+        columnSpecimenID.getColumn().setResizable(true);
+        columnSpecimenID.getColumn().setMoveable(true);
+        columnSpecimenID.getColumn().setWidth(150);
         TableViewerColumn columnSpecimen = new TableViewerColumn(list, SWT.NONE);
         columnSpecimen.getColumn().setText("Specimen");
         columnSpecimen.getColumn().setResizable(true);
@@ -363,6 +368,8 @@ public class SpecimenSelectionDialog extends Dialog {
                 case 1:
                     return wrapper.getType().getLabel();
                 case 2:
+                    return wrapper.getUuidAndTitleCache().getId().toString();
+                case 3:
                     return wrapper.getUuidAndTitleCache().getTitleCache();
                 default:
                     break;