【Eclipse】使用指南(16)打开Java元素声明

(翻译说明:http://my.oschina.net/ywlaker/blog/468911

Navigate to a Java element's declaration

导航至Java元素声明

In this section, you will learn how to open a type in the Java Editor and how to navigate to related types and members.
本小节,你将学会如何在编辑器中打开Java来以及跳转至与之有关的类和其他成员。

  1. Open the Open Type dialog by pressingCtrl+Shift+T, choosing Navigate > Open Type..., or clicking the toolbar icon (Open Type toolbar button). TypeMoney, press theArrow Downkey a few times to select MoneyTest, and then pressEnterto open the type in the Java editor.
    使用Ctrl+Shift+T快捷键(或Navigate > Open Type...菜单,或快捷工具栏中的Open Type toolbar button图标)打开Open Type对话框,输入Money,通过方向键选择MoneyTest类,然后按下Enter键。

    image

  2. On the first line of the MoneyTest class declaration, select the superclass TestCase and either
    • from the menu bar select Navigate > Open Declaration or
    • pressF3.

    选择MoneyTest 类声明的父类TestCase 2,按下F3快捷键,或者选择Navigate > Open Declaration 菜单。
    image

    The TestCase class opens in the editor area and is also represented in the Outline view.
    Note: This command also works on methods and fields.
    类TestCase 就会在编辑器中打开。注意:该操作同样适用于方法和属性。

    image

  3. With the TestCase.java editor open and the class declaration selected:
    • from the menu bar select Navigate > Open Type Hierarchy or
    • pressF4.

    选择类,按下F4快捷键,或者选择Navigate > Open Type Hierarchy 菜单。
    image

  4. The Type Hierarchy view opens with the TestCase class displayed.
    TestCase 类继承关系视图就打开了。

    image

    Note: You can also open editors on types and methods in the Type Hierarchy view.
    注意:在类继承关系视图中也可以打开类和方法。

转载于:https://my.oschina.net/ywlaker/blog/475796

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值