Skip to content
Snippets Groups Projects
Commit 93d19b67 authored by felmer's avatar felmer
Browse files

bug fixed: showing correct version in PhosphoNetX GUI

SVN: 14529
parent e8dfc5e3
No related branches found
No related tags found
No related merge requests found
......@@ -139,7 +139,7 @@ public class Client implements EntryPoint
final UrlParamsHelper urlParamsHelper = new UrlParamsHelper(viewContext);
urlParamsHelper.initUrlParams();
final IClientServiceAsync service = viewContext.getService();
final IClientServiceAsync service = getServiceForRetrievingApplicationInfo(viewContext);
service.getApplicationInfo(new AbstractAsyncCallback<ApplicationInfo>(viewContext)
{
......@@ -160,6 +160,12 @@ public class Client implements EntryPoint
}
});
}
protected IClientServiceAsync getServiceForRetrievingApplicationInfo(
IViewContext<ICommonClientServiceAsync> context)
{
return context.getService();
}
/**
* A version of onModuleLoad specifically for tests. Ignore the state in the session and go directly
......
......@@ -16,6 +16,7 @@
package ch.systemsx.cisd.openbis.plugin.phosphonetx.client.web.client.application;
import ch.systemsx.cisd.openbis.generic.client.web.client.IClientServiceAsync;
import ch.systemsx.cisd.openbis.generic.client.web.client.ICommonClientServiceAsync;
import ch.systemsx.cisd.openbis.generic.client.web.client.application.Client;
import ch.systemsx.cisd.openbis.generic.client.web.client.application.IViewContext;
......@@ -47,4 +48,12 @@ public class PhosphoNetXClient extends Client
return new ClientPluginFactoryProvider(commonContext);
}
@Override
protected IClientServiceAsync getServiceForRetrievingApplicationInfo(
IViewContext<ICommonClientServiceAsync> context)
{
return new ViewContext(context).getService();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment