From c67589559600a4fd77ed770d7e5480d0b8822590 Mon Sep 17 00:00:00 2001 From: Stephan Leicht Date: Wed, 25 Jan 2012 19:37:58 +0000 Subject: use WebClientState.isRichClientInCurrentThread() and WebClientState.isWebClientInCurrentThread() for better understanding when reading the code --- .../scout/rt/client/services/common/shell/DefaultShellService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.eclipse.scout.rt.client/src/org/eclipse/scout/rt/client/services/common/shell/DefaultShellService.java b/org.eclipse.scout.rt.client/src/org/eclipse/scout/rt/client/services/common/shell/DefaultShellService.java index 3a80648a85..995b2c200b 100644 --- a/org.eclipse.scout.rt.client/src/org/eclipse/scout/rt/client/services/common/shell/DefaultShellService.java +++ b/org.eclipse.scout.rt.client/src/org/eclipse/scout/rt/client/services/common/shell/DefaultShellService.java @@ -13,11 +13,11 @@ package org.eclipse.scout.rt.client.services.common.shell; import java.io.File; import java.io.IOException; -import org.eclipse.scout.commons.StringUtility; import org.eclipse.scout.commons.annotations.Priority; import org.eclipse.scout.commons.exception.ProcessingException; import org.eclipse.scout.rt.client.ClientSyncJob; import org.eclipse.scout.rt.shared.ScoutTexts; +import org.eclipse.scout.rt.shared.WebClientState; import org.eclipse.scout.rt.shared.services.common.shell.IShellService; import org.eclipse.scout.service.AbstractService; @@ -29,7 +29,7 @@ public class DefaultShellService extends AbstractService implements IShellServic @Override public void shellOpen(String path) throws ProcessingException { - if (StringUtility.hasText(ClientSyncJob.getCurrentSession().getVirtualSessionId())) { + if (WebClientState.isWebClientInCurrentThread()) { ClientSyncJob.getCurrentSession().getDesktop().openBrowserWindow(path); } else { -- cgit v1.2.3