From 8e5899e4558b0f1ec8999d20da6935faf7ef70a3 Mon Sep 17 00:00:00 2001 From: gpawel <gpawel> Date: Thu, 13 Oct 2011 11:59:07 +0000 Subject: [PATCH] change of tab name for artificial wells SVN: 23316 --- .../detailviewers/ImageSampleSection.java | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/screening/source/java/ch/systemsx/cisd/openbis/plugin/screening/client/web/client/application/detailviewers/ImageSampleSection.java b/screening/source/java/ch/systemsx/cisd/openbis/plugin/screening/client/web/client/application/detailviewers/ImageSampleSection.java index 21bb32219b2..d1efd7d3a80 100644 --- a/screening/source/java/ch/systemsx/cisd/openbis/plugin/screening/client/web/client/application/detailviewers/ImageSampleSection.java +++ b/screening/source/java/ch/systemsx/cisd/openbis/plugin/screening/client/web/client/application/detailviewers/ImageSampleSection.java @@ -50,7 +50,9 @@ public class ImageSampleSection extends TabContent private static final String NO_IMAGES_DATASET_LABEL = "No images data has been acquired."; - private static final String WELL_IMAGE_SECTION_TITLE = "Images"; + private static final String WELL_IMAGE_SECTION_TITLE_SUFFIX = "Images"; + + private static final String WELL_IMAGE_SECTION_TITLE_PREFIX = "Well"; // ---- @@ -60,10 +62,20 @@ public class ImageSampleSection extends TabContent private final boolean isWell; + private static String getTabName(boolean isWell, WellLocation wellLocationOrNull) + { + if (false == isWell && wellLocationOrNull != null) + { + return WELL_IMAGE_SECTION_TITLE_PREFIX + " " + wellLocationOrNull.toWellIdString() + + " " + WELL_IMAGE_SECTION_TITLE_SUFFIX; + } + return WELL_IMAGE_SECTION_TITLE_SUFFIX; + } + public ImageSampleSection(final ScreeningViewContext viewContext, final TechId sampleId, WellLocation wellLocationOrNull, boolean isWell) { - super(WELL_IMAGE_SECTION_TITLE, viewContext, sampleId); + super(getTabName(isWell, wellLocationOrNull), viewContext, sampleId); this.sampleId = sampleId; this.wellLocationOrNull = wellLocationOrNull; this.isWell = isWell; -- GitLab