package Ġcom . win dea . plugin . idea . stell aris . localization . structure View Ċ Ċ import Ġcom . intellij . ide . structure View .* Ċ import Ġcom . intellij . ide . util . tree View . smart Tree .* Ċ import Ġcom . intellij . openapi . editor .* Ċ import Ġcom . intellij . psi .* Ċ import Ġcom . win dea . plugin . idea . stell aris . localization . psi .* Ċ Ċ class ĠSt ell aris Localization Structure ViewModel ( Ċ ĉ editor : ĠEditor ?, Ċ ĉ file : ĠPsi File Ċ ) Ġ: ĠText Editor Based Structure ViewModel ( editor , Ġfile ), ĠStructure ViewModel . Element Info Provider Ġ{ Ċ ĉ // æĮĩå®ļ æł¹ èĬĤçĤ¹ ï¼Į ä¸ĢèĪ¬ ä¸º psi File Ċ ĉ override Ġfun Ġget Root () Ġ= ĠSt ell aris Localization File Tree Element ( psi File Ġas ĠSt ell aris Localization File ) ĊĊ ĉ // æĮĩå®ļ åľ¨ ç»ĵæŀĦ è§ĨåĽ¾ ä¸ŃçļĦ åħĥç´ł Ċ ĉ override Ġfun ĠgetS uit able Classes () Ġ= Ġdefault Suit able Classes ĊĊ ĉ // æĮĩå®ļ åı¯ çĶ¨çļĦ æİĴåºı åĻ¨ ï¼Į åı¯ èĩªå®ļä¹ī Ċ ĉ override Ġfun Ġget Sort ers () Ġ= Ġdefault Sort ers ĊĊ ĉ override Ġfun Ġis Always Shows Plus ( element : ĠStructure View Tree Element ) Ġ= Ġelement . value Ġis ĠSt ell aris Localization File ĊĊ ĉ override Ġfun Ġis Always Leaf ( element : ĠStructure View Tree Element ) Ġ= Ġfalse ĊĊ ĉ comp anion Ġobject Ġ{ Ċĉ ĉ private Ġval Ġdefault Suit able Classes Ġ= ĠarrayOf ( Ċĉĉ ĉ St ell aris Localization File :: class . java , Ċĉĉ ĉ St ell aris Localization Property :: class . java Ċĉ ĉ ) Ċĉ ĉ private Ġval Ġdefault Sort ers Ġ= ĠarrayOf ( Sorter . ALPHA _ SORT ER ) Ċ ĉ } Ċ } ĊĊ