// ĠCopyright Ġ 2 0 1 9 ĠAmazon . com , ĠInc . Ġor Ġits Ġaffiliates . ĠAll ĠRights ĠReserved . Ċ // ĠSPDX - License - Identifier : ĠApache - 2 . 0 Ċ Ċ package Ġsoftware . aws . tool k its . jetbrains . services . schemas . code Ċ Ċ import Ġcom . intellij . openapi . action System . An ActionEvent Ċ import Ġcom . intellij . openapi . action System . Platform Data Keys Ċ import Ġcom . intellij . openapi . project . D umb Aware Ċ import Ġicons . Aws Icons Ċ import Ġsoftware . aws . tool k its . jetbrains . core . explorer . actions . Single Resource Node Action Ċ import Ġsoftware . aws . tool k its . jetbrains . services . schemas . Schema Node Ċ import Ġsoftware . aws . tool k its . resources . message Ċ Ċ class ĠDownload Code For Schema Action Ġ: ĊĠĠĠ ĠSingle Resource Node Action < Schema Node >( message (" schemas . schema . download _ code _ bindings . action "), Ġnull , ĠAws Icons . Actions . SCHEMA _ CODE _ GEN ), ĠD umb Aware Ġ{ ĊĠĠĠ Ġoverride Ġfun ĠactionPerformed ( selected : ĠSchema Node , Ġe : ĠAn ActionEvent ) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġproject Ġ= Ġe . get Required Data ( Platform Data Keys . PROJECT ) ĊĊĠĠĠĠĠĠĠ Ġval Ġschema Ġ= Ġselected . value ĊĊĠĠĠĠĠĠĠ ĠDownload Code For Schema Dialog ( project , Ġschema ). show () ĊĠĠĠ Ġ} Ċ } Ċ