diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/locator/BrowserLocatorResolver.java b/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/locator/BrowserLocatorResolver.java index e2dc36711326e9d5121cf0c8a8437732be3fde9f..5635607551af2e06142e03acbb75c313a0850a74 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/locator/BrowserLocatorResolver.java +++ b/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/locator/BrowserLocatorResolver.java @@ -45,7 +45,7 @@ public class BrowserLocatorResolver extends AbstractViewLocatorResolver openSampleBrowser(groupOrNull, entityTypeOrNull); break; case MATERIAL: - openMaterialBrowser(); + openMaterialBrowser(entityTypeOrNull); break; default: throw new UserFailureException("Browsing " + entityKind.getDescription() @@ -66,10 +66,10 @@ public class BrowserLocatorResolver extends AbstractViewLocatorResolver initialGroupOrNull, initialSampleTypeOrNull)); } - private void openMaterialBrowser() + private void openMaterialBrowser(String initialMaterialTypeOrNull) { - // TODO 2010-03-09, Piotr Buczek: optionally select material type - DispatcherHelper.dispatchNaviEvent(new ComponentProvider(viewContext).getMaterialBrowser()); + DispatcherHelper.dispatchNaviEvent(new ComponentProvider(viewContext) + .getMaterialBrowser(initialMaterialTypeOrNull)); } } \ No newline at end of file