I'm not sure whether it is a feature or a bug: Eclipse Java editor does not show source files correctly. It shows only one Java element (e.g., import, class, method, etc.) which is selected from the package explorer or the outline view.
If it is a feature how can I turn it off and if it is 开发者_如何学Pythona bug is there any workaround?
Eclipse Version : 3.6.0
Perhaps you clicked on the 'Show Selected Element Only' toolbar item. Click again to restore:
image of where button is http://wiki.eclipse.org/Image:Show_Selected_Element_Only.gif
Source: http://wiki.eclipse.org/Graphical_Eclipse_FAQs#I_clicked_on_something_and_now_I_can_only_see_the_method_that_I_am_currently_editing._What_do_I_do.3F_Did_I_lose_my_entire_file.3F
精彩评论