package Ġdev . shot a . de compiler . window . menu . file . items Ċ Ċ import Ġjavafx . application . Platform Ċ import Ġdev . shot a . de compiler . window . Window Ċ import Ġdev . shot a . de compiler . window . menu . MenuItem Ċ import Ġdev . shot a . de compiler . window . menu . view . items . Language Ċ import Ġdev . shot a . de compiler . window . sidebar . Sidebar Ċ import Ġjava . awt . event . ActionEvent Ċ import Ġjava . awt . event . KeyEvent Ċ import Ġjavax . swing . J FileChooser Ċ import Ġjavax . swing . file cho oser . FileName Extension Filter Ċ Ċ class ĠOpen File Ġ: ĠMenuItem (" file . open File ", ĠKeyEvent . VK _ O ) Ġ{ ĊĊĠĠĠ Ġoverride Ġfun ĠactionPerformed ( e : ĠAction Event ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġfile Chooser Ġ= ĠJ FileChooser () ĊĠĠĠĠĠĠĠ Ġfile Chooser . dialog Title Ġ= Ġtext ĊĠĠĠĠĠĠĠ Ġfile Chooser . file Filter Ġ= ĠFileName Extension Filter ( Language . get (" file . open File . archive "). value , Ġ" jar ") ĊĠĠĠĠĠĠĠ Ġfile Chooser . is Accept All File Filter Used Ġ= Ġfalse ĊĠĠĠĠĠĠĠ Ġval Ġoption Ġ= Ġfile Chooser . show Open Dialog ( Window ) ĊĠĠĠĠĠĠĠ Ġif Ġ( option Ġ== ĠJ FileChooser . APPRO VE _ OPTION ) ĊĠĠĠĠĠĠĠĠĠĠĠ ĠPlatform . run Later Ġ{ ĠSidebar . open ( file Chooser . selected File ) Ġ} ĊĠĠĠ Ġ} Ċ Ċ }