package Ġcom . iv an ov sky . pass notes . presentation . note _ editor . factory Ċ Ċ import Ġcom . iv an ov sky . pass notes . domain . Resource Provider Ċ import Ġcom . iv an ov sky . pass notes . presentation . core . Base Cell ViewModel Ċ import Ġcom . iv an ov sky . pass notes . presentation . core . event . Event Provider Ċ import Ġcom . iv an ov sky . pass notes . presentation . core . factory . Cell ViewModel Factory Ċ import Ġcom . iv an ov sky . pass notes . presentation . core . model . Base Cell Model Ċ import Ġcom . iv an ov sky . pass notes . presentation . core . model . Space Cell Model Ċ import Ġcom . iv an ov sky . pass notes . presentation . core . view model . Space Cell ViewModel Ċ import Ġcom . iv an ov sky . pass notes . presentation . note _ editor . cells . model . Extended Text Property Cell Model Ċ import Ġcom . iv an ov sky . pass notes . presentation . note _ editor . cells . model . Secret Property Cell Model Ċ import Ġcom . iv an ov sky . pass notes . presentation . note _ editor . cells . model . Text Property Cell Model Ċ import Ġcom . iv an ov sky . pass notes . presentation . note _ editor . cells . view model . Extended Text Property Cell ViewModel Ċ import Ġcom . iv an ov sky . pass notes . presentation . note _ editor . cells . view model . Secret Property Cell ViewModel Ċ import Ġcom . iv an ov sky . pass notes . presentation . note _ editor . cells . view model . Text Property Cell ViewModel Ċ Ċ class ĠNote Editor Cell ViewModel Factory ( ĊĠĠĠ Ġprivate Ġval Ġresource Provider : ĠResource Provider Ċ ) Ġ: ĠCell ViewModel Factory Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġcreate Cell ViewModel ( ĊĠĠĠĠĠĠĠ Ġmodel : ĠBase Cell Model , ĊĠĠĠĠĠĠĠ Ġevent Provider : ĠEvent Provider ĊĠĠĠ Ġ): ĠBase Cell ViewModel Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġwhen Ġ( model ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġis ĠText Property Cell Model Ġ-> ĠText Property Cell ViewModel ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġmodel , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġevent Provider , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġresource Provider ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġis ĠSecret Property Cell Model Ġ-> ĠSecret Property Cell ViewModel ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġmodel , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġevent Provider , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġresource Provider ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġis ĠExtended Text Property Cell Model Ġ-> ĠExtended Text Property Cell ViewModel ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġmodel , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġevent Provider , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġresource Provider ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġis ĠSpace Cell Model Ġ-> ĠSpace Cell ViewModel ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġmodel ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġelse Ġ-> Ġthrow Unsupported Model Exception ( model ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }