// ĠCopyright Ġ 2 0 2 1 ĠAmazon . com , ĠInc . Ġor Ġits Ġaffiliates . ĠAll ĠRights ĠReserved . Ċ // ĠSPDX - License - Identifier : ĠApache - 2 . 0 Ċ Ċ package Ġsoftware . aws . tool k its . jetbrains . services . dynamic . explorer Ċ Ċ import Ġcom . intellij . ide . project View . Presentation Data Ċ import Ġcom . intellij . openapi . options . Show Settings Util Ċ import Ġcom . intellij . openapi . project . Project Ċ import Ġcom . intellij . util . Icon Util Ċ import Ġsoftware . aws . tool k its . jetbrains . core . explorer . nodes . Aws Explorer Node Ċ import Ġsoftware . aws . tool k its . jetbrains . services . dynamic . Dynamic Resource Supported Types Ċ import Ġsoftware . aws . tool k its . jetbrains . settings . Dynamic Resources Configurable Ċ import Ġsoftware . aws . tool k its . jetbrains . settings . Dynamic Resources Settings Ċ import Ġsoftware . aws . tool k its . resources . message Ċ import Ġsoftware . aws . tool k its . telemetry . Dynamic resource Telemetry Ċ Ċ class ĠDynamic Resource Selector Node ( node Project : ĠProject ) Ġ: ĠAws Explorer Node < Unit >( node Project , ĠUnit , ĠIcon Util . get Edit Icon ()) Ġ{ ĊĠĠĠ Ġoverride Ġfun ĠdisplayName () Ġ= Ġmessage (" explorer . node . other . add _ remove ") ĊĊĠĠĠ Ġoverride Ġfun Ġget Children (): ĠList < Aws Explorer Node <* >> Ġ= Ġempty List () ĊĊĠĠĠ Ġoverride Ġfun Ġon DoubleClick () Ġ{ ĊĠĠĠĠĠĠĠ ĠShow Settings Util . getInstance (). show Settings Dialog ( null , ĠDynamic Resources Configurable :: class . java ) ĊĠĠĠĠĠĠĠ ĠDynamic resource Telemetry . select Resources ( node Project ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġupdate ( presentation : ĠPresentation Data ) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġremaining Ġ= ĠDynamic Resource Supported Types . getInstance (). get Supported Types (). size Ġ- ĠDynamic Resources Settings . getInstance (). selected . size ĊĠĠĠĠĠĠĠ Ġpresentation . tooltip Ġ= Ġmessage (" dynamic _ resources . add _ remove _ resources _ tooltip ", Ġremaining ) ĊĠĠĠ Ġ} Ċ } Ċ