// Ġ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 . s 3 . bucket Actions Ċ Ċ import Ġcom . intellij . openapi . action System . An ActionEvent Ċ import Ġcom . intellij . openapi . action System . Lang Data Keys Ċ import Ġcom . intellij . openapi . project . D umb Aware Action Ċ import Ġicons . Aws Icons Ċ import Ġsoftware . amazon . aw ssdk . services . s 3 . S 3 Client Ċ import Ġsoftware . aws . tool k its . jetbrains . core . aws Client Ċ import Ġsoftware . aws . tool k its . jetbrains . services . s 3 . Create S 3 Bucket Dialog Ċ import Ġsoftware . aws . tool k its . resources . message Ċ Ċ class ĠCreate Bucket Action Ġ: ĠD umb Aware Action ( message (" s 3 . create . bucket . title "), Ġnull , ĠAws Icons . Resources . S 3 _ BUCKET ) Ġ{ ĊĠĠĠ Ġoverride Ġfun ĠactionPerformed ( e : ĠAn ActionEvent ) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġproject Ġ= Ġe . get Required Data ( Lang Data Keys . PROJECT ) ĊĠĠĠĠĠĠĠ Ġval Ġclient : ĠS 3 Client Ġ= Ġproject . aws Client () ĊĠĠĠĠĠĠĠ Ġval Ġdialog Ġ= ĠCreate S 3 Bucket Dialog ( project , Ġclient ) ĊĠĠĠĠĠĠĠ Ġdialog . show () ĊĠĠĠ Ġ} Ċ } Ċ