简体   繁体   English

如何更改在Eclipse中打开Java源文件的“节”

[英]How to change which “section” a java source file opens up in in Eclipse

I have rearranged and customized the Eclipse layout to exactly how I like it. 我已经按照我的喜好重新安排和定制了Eclipse布局。 But whenever I open up a java source file, it opens up in the box with Package Explorer and Outline instead of the big box on the left where I would like it to (see screenshot). 但是,每当我打开一个Java源文件时,它就会在带有Package Explorer和Outline的框中打开,而不是在我想要的左侧的大框中打开(请参见屏幕截图)。 How can I change this? 我该如何更改?

屏幕截图

Here's how to fix it: 解决方法如下:

"It looks like you messed around with the "Shared area". You should probably reset your perspective (Window / Reset perspective), and then try again to move the Package Explorer and the Outline to the right, but make sure you do not drag and drop them inside the "Title" zone of the "Shared area". If you do so, classes will open there as well like you described. Hope this helps." “看起来好像在弄乱“共享区域”。您可能应该重置透视图(“窗口” /“重置”透视图),然后再次尝试将Package Explorer和Outline移到右侧,但请确保不要拖动并将它们放到“共享区域”的“标题”区域中。如果这样做,则也将像您描述的那样在此处打开类。希望对您有所帮助。” – Pedro Lopez –佩德罗·洛佩兹(Pedro Lopez)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM