Skip to content
Snippets Groups Projects
Commit 3e8503d6 authored by tpylak's avatar tpylak
Browse files

LMS-2355 minor refactoring

SVN: 22205
parent 2562d593
No related branches found
No related tags found
No related merge requests found
......@@ -58,7 +58,6 @@ class MaterialMergedSummarySection extends DisposableTabContent
{
return new IDelegatedAction()
{
public void execute()
{
ExperimentSearchCriteria criteriaOrNull = searchCriteriaHolder.tryGetCriteria();
......@@ -66,18 +65,7 @@ class MaterialMergedSummarySection extends DisposableTabContent
{
final String experimentPermId =
criteriaOrNull.tryGetExperiment().getExperimentPermId();
screeningViewContext.getCommonService().getExperimentInfoByPermId(
experimentPermId,
new AbstractAsyncCallback<Experiment>(screeningViewContext)
{
@Override
protected void process(Experiment experiment)
{
IDisposableComponent viewer =
createMaterialReplicaSummaryComponent(experiment);
replaceContent(viewer);
}
});
showMaterialReplicaSummaryComponent(experimentPermId);
} else
{
IDisposableComponent allExperimentsComponent =
......@@ -88,6 +76,21 @@ class MaterialMergedSummarySection extends DisposableTabContent
};
}
private void showMaterialReplicaSummaryComponent(final String experimentPermId)
{
screeningViewContext.getCommonService().getExperimentInfoByPermId(experimentPermId,
new AbstractAsyncCallback<Experiment>(screeningViewContext)
{
@Override
protected void process(Experiment experiment)
{
IDisposableComponent viewer =
createMaterialReplicaSummaryComponent(experiment);
replaceContent(viewer);
}
});
}
private IDisposableComponent createMaterialFeaturesFromAllExperimentsComponent(
ExperimentSearchCriteria criteriaOrNull)
{
......
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