You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
516 B

  1. package nova.monadic_sfx
  2. package object implicits
  3. extends MySfxObservableImplicits
  4. with JavaFXMonixObservables
  5. // implicit class NodeExt(val node: Node) {
  6. // def lookup2[T <: SFXDelegate[_]](
  7. // selector: String
  8. // )(implicit c: ClassTag[T]) = {
  9. // val t = c.runtimeClass
  10. // Option(node.delegate.lookup(selector)) match {
  11. // case Some(value) =>
  12. // if (value.getClass == t) Some(value) else None
  13. // case None => None
  14. // }
  15. // }
  16. // val x = node.lookup2("")
  17. // }