From 286711098aa0e349d5a10b77c0a65df3ed8d2004 Mon Sep 17 00:00:00 2001 From: buczekp <buczekp> Date: Wed, 6 Oct 2010 21:02:29 +0000 Subject: [PATCH] [LMS-1821] fixed opening entity views in the background using links in queries SVN: 18209 --- .../web/client/application/ui/report/ReportGrid.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/ui/report/ReportGrid.java b/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/ui/report/ReportGrid.java index d2c0eb06302..af3c45cb0c4 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/ui/report/ReportGrid.java +++ b/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/ui/report/ReportGrid.java @@ -114,7 +114,7 @@ public class ReportGrid extends AbstractBrowserGrid<TableModelRow, BaseEntityMod public String tryGetLink(TableModelRow entity) { - return null; + return null; } // GWT only @@ -248,7 +248,8 @@ public class ReportGrid extends AbstractBrowserGrid<TableModelRow, BaseEntityMod { ISerializableComparable cellValue = rowItem.getValues().get(colIndex); - showEntityViewer(entityKind, cellValue.toString()); + showEntityViewer(entityKind, cellValue.toString(), + keyPressed); } }); } @@ -257,9 +258,9 @@ public class ReportGrid extends AbstractBrowserGrid<TableModelRow, BaseEntityMod return definitions; } - private void showEntityViewer(EntityKind entityKind, String permId) + private void showEntityViewer(EntityKind entityKind, String permId, boolean keyPressed) { - OpenEntityDetailsTabHelper.open(viewContext, entityKind, permId, false); + OpenEntityDetailsTabHelper.open(viewContext, entityKind, permId, keyPressed); } private List<ReportColumnUI> createColDefinitions() -- GitLab