Skip to content
Snippets Groups Projects
Commit 2e241736 authored by izabel's avatar izabel
Browse files

[LMS-1903] remove duplicated code

SVN: 18981
parent f27a8b42
No related branches found
No related tags found
No related merge requests found
......@@ -308,23 +308,12 @@ public class ScriptExecutionFramework
private void evaluate()
{
if (StringUtils.isBlank(sampleChooser.getValue()) == false)
{
evaluate(EntityKind.SAMPLE, sampleChooser.getValue(), state.getScript());
}
if (experimentChooser.tryToGetValue() != null
&& StringUtils.isBlank(experimentChooser.tryToGetValue().getIdentifier()) == false)
{
evaluate(EntityKind.EXPERIMENT, experimentChooser.tryToGetValue().getIdentifier(),
state.getScript());
}
if (StringUtils.isBlank(materialChooser.getValue()) == false)
{
evaluate(EntityKind.MATERIAL, materialChooser.getValue(), state.getScript());
}
if (StringUtils.isBlank(datasetChooser.getValue()) == false)
BasicEntityDescription selectedEntityOrNull = tryGetSelectedEntity();
if (selectedEntityOrNull != null)
{
evaluate(EntityKind.DATA_SET, datasetChooser.getValue(), state.getScript());
evaluate(selectedEntityOrNull.getEntityKind(),
selectedEntityOrNull.getEntityIdentifier(), state.getScript());
}
}
......
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