All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pl.touk.nussknacker.ui.definition.scenarioproperty.UiScenarioPropertyEditorDeterminer.scala Maven / Gradle / Ivy

There is a newer version: 1.18.1
Show newest version
package pl.touk.nussknacker.ui.definition.scenarioproperty

import pl.touk.nussknacker.engine.api.definition.{SimpleParameterEditor, StringParameterEditor}
import pl.touk.nussknacker.engine.api.component.ScenarioPropertyConfig

object UiScenarioPropertyEditorDeterminer {

  def determine(config: ScenarioPropertyConfig): SimpleParameterEditor = {
    config.editor match {
      case Some(editor: SimpleParameterEditor) => editor
      case None                                => StringParameterEditor
    }
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy