id column in specimen selection dialog smaller and moved
authorKatja Luther <k.luther@bgbm.org>
Tue, 28 Sep 2021 09:17:20 +0000 (11:17 +0200)
committerKatja Luther <k.luther@bgbm.org>
Tue, 28 Sep 2021 09:17:20 +0000 (11:17 +0200)
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/matrix/SpecimenSelectionDialog.java

index 410cebe4502bffe2617e05e784ebd387aed335f8..d01a46d32b8c5254803d6a1b8b87e5512a4f6880 100644 (file)
@@ -202,16 +202,16 @@ 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);
         columnSpecimen.getColumn().setMoveable(true);
-        columnSpecimen.getColumn().setWidth(400);
+        columnSpecimen.getColumn().setWidth(150);
+        TableViewerColumn columnSpecimenID = new TableViewerColumn(list, SWT.NONE);
+        columnSpecimenID.getColumn().setText("ID");
+        columnSpecimenID.getColumn().setResizable(true);
+        columnSpecimenID.getColumn().setMoveable(true);
+        columnSpecimenID.getColumn().setWidth(50);
 
         table.setHeaderVisible(true);
         table.setLinesVisible(true);
@@ -318,7 +318,7 @@ public class SpecimenSelectionDialog extends Dialog {
     protected void configureShell(Shell newShell) {
         super.configureShell(newShell);
         newShell.setText(Messages.SpecimenSelectionDialog_SELECT_SPECIMENS);
-        newShell.setMinimumSize(500, 600);
+//        newShell.setMinimumSize(500, 600);
         newShell.setSize(800, 600);
     }
 
@@ -368,9 +368,9 @@ public class SpecimenSelectionDialog extends Dialog {
                 case 1:
                     return wrapper.getType().getLabel();
                 case 2:
-                    return wrapper.getUuidAndTitleCache().getId().toString();
+                       return wrapper.getUuidAndTitleCache().getTitleCache();
                 case 3:
-                    return wrapper.getUuidAndTitleCache().getTitleCache();
+                    return wrapper.getUuidAndTitleCache().getId().toString();
                 default:
                     break;
                 }