使用 Eclipse,如何在 Content Assist 中隐藏超类方法?

发布于 2024-10-16 12:25:22 字数 188 浏览 7 评论 0原文

例如,我有:

JPanel pan = new JPanel();

然后我做“平移”。并且 eclipse 显示内容辅助。 在此内容帮助中,有 JPanel 类中的所有方法以及所有 JPanel 超类中的所有方法(很多)。我希望 Eclipse 只向我显示 JPanel 类的方法,而不是其超类的方法。

怎么办?

For example, I have:

JPanel pan = new JPanel();

then I do "pan." and eclipse shows Content Assist.
In this content assist, there are all methods in JPanel class and all methods in all JPanel superclasses (a lots). I want that eclipse shows me only the methods of the JPanel class, not the methods of its superclasses.

how to do that?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

可是我不能没有你 2024-10-23 12:25:22

它不是内容辅助,但您可以使用 Ctrl + O 查看没有超类的类的所有方法。

Its not content assist, but you can use Ctrl + O to see all methods of class without superclass.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文