通过点击Windows----->Navigation------->Show View Menu------>Pakage Presentation---------->Hierarchial,即可设置包的分层显示和平坦显示。