package Ġcom . so yle . stories . desktop . config . drivers . scene Ċ Ċ import Ġcom . so yle . stories . desktop . config . drivers . robot Ċ import Ġcom . so yle . stories . desktop . config . drivers . so yle stories . find MenuItem ById Ċ import Ġcom . so yle . stories . desktop . config . drivers . theme . get Create Theme Dialog Or Error Ċ import Ġcom . so yle . stories . desktop . view . scene . create Scene Dialog . Create Scene Dialog Driver Ċ import Ġcom . so yle . stories . desktop . view . theme . create Theme Dialog . Create Theme Dialog Driver Ċ import Ġcom . so yle . stories . project . Work Bench Ċ import Ġcom . so yle . stories . scene . create Scene Dialog . Create Scene Dialog Ċ import Ġcom . so yle . stories . theme . create Theme Dialog . Create Theme Dialog Ċ import Ġjavafx . event . ActionEvent Ċ import Ġt orn ad of x . ui Component Ċ Ċ fun ĠWork Bench . open Create Scene Dialog (): ĠCreate Scene Dialog Ġ{ ĊĠĠĠ Ġfind MenuItem ById (" file _ new _ scene ") !! ĊĠĠĠĠĠĠĠ Ġ. apply Ġ{ Ġrobot . interact Ġ{ Ġfire () Ġ} Ġ} ĊĠĠĠ Ġreturn Ġget Create Scene Dialog Or Error () Ċ } Ċ Ċ fun Ġget Create Scene Dialog Or Error (): ĠCreate Scene Dialog Ġ= ĊĠĠĠ Ġget Create Scene Dialog () Ġ?: Ġthrow ĠNoSuch ElementException (" Create ĠScene ĠDialog Ġis Ġnot Ġopen Ġin Ġproject ") Ċ Ċ fun Ġget Create Scene Dialog (): ĠCreate Scene Dialog ? Ġ= ĊĠĠĠ Ġrobot . list Windows (). as Sequence () ĊĠĠĠĠĠĠĠ Ġ. map NotNull Ġ{ Ġit . scene . root . ui Component < Create Scene Dialog >() Ġ} ĊĠĠĠĠĠĠĠ Ġ. first OrNull Ġ{ Ġit . current Stage ?. is Showing Ġ== Ġtrue Ġ} Ċ Ċ fun ĠCreate Scene Dialog . create Scene WithName ( scene Name : ĠString ) Ċ { ĊĠĠĠ Ġval Ġdriver Ġ= ĠCreate Scene Dialog Driver ( this ) ĊĠĠĠ Ġval Ġname Input Ġ= Ġdriver . getName Input () ĊĠĠĠ Ġdriver . interact Ġ{ ĊĠĠĠĠĠĠĠ Ġname Input . text Ġ= Ġscene Name ĊĠĠĠĠĠĠĠ Ġname Input . fire Event ( ActionEvent ()) ĊĠĠĠ Ġ} Ċ }