From 8bd05b6d64fcc1f49dc496c7e0a9c5089df981a4 Mon Sep 17 00:00:00 2001 From: gpawel <gpawel> Date: Tue, 24 Jan 2012 14:35:02 +0000 Subject: [PATCH] LMS-2743 Custom image transformation are not applied to microscopy images bug is fixed. SVN: 24279 --- .../detailviewers/utils/ImageUrlUtils.java | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/screening/source/java/ch/systemsx/cisd/openbis/plugin/screening/client/web/client/application/detailviewers/utils/ImageUrlUtils.java b/screening/source/java/ch/systemsx/cisd/openbis/plugin/screening/client/web/client/application/detailviewers/utils/ImageUrlUtils.java index f19cb87ee7a..6576b8661a1 100644 --- a/screening/source/java/ch/systemsx/cisd/openbis/plugin/screening/client/web/client/application/detailviewers/utils/ImageUrlUtils.java +++ b/screening/source/java/ch/systemsx/cisd/openbis/plugin/screening/client/web/client/application/detailviewers/utils/ImageUrlUtils.java @@ -89,6 +89,13 @@ public class ImageUrlUtils methodWithParameters.addParameter(ImageServletUrlParameters.CHANNEL_STACK_ID_PARAM, channelStackRef.getChannelStackTechId()); + + if (channelReferences.tryGetImageTransformationCode() != null) + { + methodWithParameters.addParameter( + ImageServletUrlParameters.SINGLE_CHANNEL_TRANSFORMATION_CODE_PARAM, + channelReferences.tryGetImageTransformationCode()); + } addImageTransformerSignature(methodWithParameters, channelReferences); final String linkURL = methodWithParameters.toString(); addThumbnailSize(methodWithParameters, width, height); @@ -111,10 +118,10 @@ public class ImageUrlUtils // Set the url at the very end. This method triggers the image loading process // therefore it should be done after all image load handlers have been set. - // Setting the url before defining the load handlers may result in handlers not - // being notified about the finished loading (when loading is finished before - // handlers are added). Moreover we are deferring setting the url to make sure that - // all actions that attach the image to DOM finish first. Otherwise again images + // Setting the url before defining the load handlers may result in handlers not + // being notified about the finished loading (when loading is finished before + // handlers are added). Moreover we are deferring setting the url to make sure that + // all actions that attach the image to DOM finish first. Otherwise again images // are not displayed. GWTUtils.executeDelayed(new IDelegatedAction() { -- GitLab