/* Ċ The ĠMIT ĠLicense Ġ( MIT ) Ċ Ċ Copyright Ġ( c ) Ġ 2 0 1 6 ĠTom ĠNeed ham Ċ Ċ Permission Ġis Ġhereby Ġgranted , Ġfree Ġof Ġcharge , Ġto Ġany Ġperson Ġobtaining Ġa Ġcopy Ċ of Ġthis Ġsoftware Ġand Ġassociated Ġdocumentation Ġfiles Ġ( the Ġ" Software "), Ġto Ġdeal Ċ in Ġthe ĠSoftware Ġwithout Ġrestriction , Ġincluding Ġwithout Ġlimitation Ġthe Ġrights Ċ to Ġuse , Ġcopy , Ġmodify , Ġmerge , Ġpublish , Ġdistribute , Ġsublicense , Ġand / or Ġsell Ċ copies Ġof Ġthe ĠSoftware , Ġand Ġto Ġpermit Ġpersons Ġto Ġwhom Ġthe ĠSoftware Ġis Ċ furnished Ġto Ġdo Ġso , Ġsubject Ġto Ġthe Ġfollowing Ġconditions : Ċ Ċ The Ġabove Ġcopyright Ġnotice Ġand Ġthis Ġpermission Ġnotice Ġshall Ġbe Ġincluded Ġin Ġall Ċ copies Ġor Ġsubstantial Ġportions Ġof Ġthe ĠSoftware . Ċ Ċ THE ĠSOFTWARE ĠIS ĠPROVIDED Ġ" AS ĠIS ", ĠWITHOUT ĠWARRANTY ĠOF ĠANY ĠKIND , ĠEXPRESS ĠOR Ċ IMPLIED , ĠINCLUDING ĠBUT ĠNOT ĠLIMITED ĠTO ĠTHE ĠWARRANTIES ĠOF ĠMERCHANTABILITY , Ċ FITNESS ĠFOR ĠA ĠPARTICULAR ĠPURPOSE ĠAND ĠNONINFRINGEMENT . ĠIN ĠNO ĠEVENT ĠSHALL ĠTHE Ċ AUTHORS ĠOR ĠCOPYRIGHT ĠHOLDERS ĠBE ĠLIABLE ĠFOR ĠANY ĠCLAIM , ĠDAMAGES ĠOR ĠOTHER Ċ LIABILITY , ĠWHETHER ĠIN ĠAN ĠACTION ĠOF ĠCONTRACT , ĠTORT ĠOR ĠOTHERWISE , ĠARISING ĠFROM , Ċ OUT ĠOF ĠOR ĠIN ĠCONNECTION ĠWITH ĠTHE ĠSOFTWARE ĠOR ĠTHE ĠUSE ĠOR ĠOTHER ĠDEALINGS ĠIN ĠTHE Ċ SOFTWARE . Ċ Ġ*/ Ċ package Ġcom . th omas . need ham . ne uro ph idea . actions Ċ Ċ import Ġcom . intellij . openapi . action System . An Action Ċ import Ġcom . intellij . openapi . action System . An ActionEvent Ċ import Ġcom . intellij . openapi . file Chooser . FileChooser Descriptor Ċ import Ġcom . intellij . openapi . file Chooser . FileChooser Factory Ċ import Ġcom . intellij . openapi . vfs . V fs Util Ċ import Ġcom . intellij . openapi . vfs . Virtual File Ċ import Ġcom . intellij . util . Consumer Ċ import Ġcom . th omas . need ham . ne uro ph idea . consum ers . Ne uro ph SDK Consumer Ċ import Ġcom . th omas . need ham . ne uro ph idea . project . Ne uro ph SDK Panel Ċ Ċ /** Ċ Ġ* ĠCreated Ġby ĠThomas ĠNeed ham Ġon Ġ 0 6 / 0 6 / 2 0 1 6 . Ċ Ġ*/ Ċ class ĠDownload Ne uro ph Action Ġ: ĠAn Action () Ġ{ Ċ ĉ comp anion Ġobject ĠData Ġ{ Ċĉ ĉ @ Jvm Static Ċĉ ĉ var Ġpanel : ĠNe uro ph SDK Panel ? Ġ= Ġnull Ċĉ ĉ var Ġconsumer : ĠNe uro ph SDK Consumer ? Ġ= ĠNe uro ph SDK Consumer () Ċ ĉ } ĊĉĊ ĉ override Ġfun ĠactionPerformed ( an ActionEvent : ĠAn ActionEvent ) Ġ{ Ċĉ ĉ val Ġdescriptor Ġ= ĠFile Chooser Descriptor ( false , Ġtrue , Ġfalse , Ġfalse , Ġfalse , Ġfalse ) Ċĉ ĉ val Ġpath Chooser Ġ= ĠFile Chooser Factory . getInstance (). create Path Chooser ( descriptor , Ġnull , Ġpanel ) Ċĉ ĉ path Chooser . choose ( V fs Util . getUser Home Dir (), Ġconsumer Ġas ĠConsumer < Mutable List < Virtual File >>) Ċ ĉ } Ċ } Ċ