// ĠCopyright Ġ 2 0 0 0 - 2 0 2 0 ĠJetBrains Ġs . r . o . ĠUse Ġof Ġthis Ġsource Ġcode Ġis Ġgoverned Ġby Ġthe ĠApache Ġ 2 . 0 Ġlicense Ġthat Ġcan Ġbe Ġfound Ġin Ġthe ĠLICENSE Ġfile . Ċ package Ġcom . intellij . ide . hierarchy . actions Ċ Ċ import Ġcom . intellij . icons . All Icons Ċ import Ġcom . intellij . ide . actions . Tool Window Empty State Action Ċ import Ġcom . intellij . ide . hierarchy . Hierarchy Browser Manager Ċ import Ġcom . intellij . ide . hierarchy . Language Call Hierarchy Ċ import Ġcom . intellij . ide . hierarchy . Language Method Hierarchy Ċ import Ġcom . intellij . ide . hierarchy . Language Type Hierarchy Ċ import Ġcom . intellij . lang . Lang Bundle Ċ import Ġcom . intellij . openapi . action System . Ide Actions Ċ import Ġcom . intellij . openapi . help . Help Manager Ċ import Ġcom . intellij . openapi . keymap . Key map Util Ċ import Ġcom . intellij . openapi . project . Project Ċ import Ġcom . intellij . openapi . wm . Tool Window Id Ċ import Ġcom . intellij . ui . Simple Text Attributes Ċ import Ġcom . intellij . util . ui . Status Text Ċ Ċ class ĠActivate Hierarchy Tool Window Action Ġ: ĠTool Window Empty State Action ( Tool Window Id . HI ER ARCH Y , ĠAll Icons . Tool windows . Tool Window Hierarchy ) Ġ{ ĊĠ Ġoverride Ġfun Ġsetup Empty Text ( project : ĠProject , Ġtext : ĠStatus Text ) Ġ{ ĊĠĠĠ Ġtext . clear () ĊĠĠĠ Ġtext . append Line ( Lang Bundle . message (" hierarchy . empty . text ")) ĊĠĠĠ Ġif Ġ( Language Type Hierarchy . INSTANCE . has Any Extensions ()) Ġ{ ĊĠĠĠĠĠ Ġtext . append Line ( Lang Bundle . message (" hierarchy . empty . text . type ", ĠKey map Util . get Shortcut Text ( Ide Actions . ACTION _ TYPE _ HI ER ARCH Y ))) ĊĠĠĠ Ġ} ĊĠĠĠ Ġif Ġ( Language Call Hierarchy . INSTANCE . has Any Extensions ()) Ġ{ ĊĠĠĠĠĠ Ġtext . append Line ( Lang Bundle . message (" hierarchy . empty . text . call ", ĠKey map Util . get Shortcut Text ( Ide Actions . ACTION _ CALL _ HI ER ARCH Y ))) ĊĠĠĠ Ġ} ĊĠĠĠ Ġif Ġ( Language Method Hierarchy . INSTANCE . has Any Extensions ()) Ġ{ ĊĠĠĠĠĠ Ġtext . append Line ( Lang Bundle . message (" hierarchy . empty . text . method ", ĠKey map Util . get Shortcut Text ( Ide Actions . ACTION _ METHOD _ HI ER ARCH Y ))) ĊĠĠĠ Ġ} ĊĠĠĠ Ġtext . append Line ("") ĊĠĠĠ Ġtext . append Line ( All Icons . General . Context Help , ĠLang Bundle . message (" hierarchy . empty . text . help "), ĠSimple Text Attributes . LINK _ PLAIN _ ATTRIBUTES ) Ġ{ ĊĠĠĠĠĠ ĠHelp Manager . getInstance (). invoke Help (" procedures . view ing hierarchy ") ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġoverride Ġfun Ġensure Tool Window Created ( project : ĠProject ) Ġ{ ĊĠĠĠ ĠH ierarchy Browser Manager . getInstance ( project ) ĊĠ Ġ} Ċ }