“与编辑器链接”是什么?功能在Eclipse中执行? [英] What does "link with editor" feature do in Eclipse?

查看:79
本文介绍了“与编辑器链接”是什么?功能在Eclipse中执行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Eclipse的新手(也不了解NetBeans)。我正在阅读日食教程。但是我很困惑,无法理解链接到编辑器到底是做什么的。在Eclipse-> Help中说:

I'm new to Eclipse (and don't know NetBeans too). I'm reading eclipse tutorial. But I'm stacked and can't understand what "Link with editor" does exactly.It is said in Eclipse->Help:


选择本地工具栏或
导航视图之一的视图菜单中的与编辑器链接按钮。最后,单击JanesFile.txt的编辑器选项卡。请注意
导航视图如何自动更新以选择当前正在编辑
的文件(JanesFile.txt)。如果您不喜欢这种自动更新,则可以通过
取消选择与编辑器链接来轻松关闭它。

select the Link with Editor button in the local toolbar or view menu of one of the navigation views. Lastly, click on the editor tab for JanesFile.txt. Notice how the navigation view updated itself to select the file you are currently editing (JanesFile.txt). If you don't like this automatic update you can easily turn it off by deselecting Link with Editor.

我选择与编辑器链接按钮,但我看不到任何变化看起来它没有做任何可见的事情。它在Eclipse的另一个文档中说:

I select the Link with Editor button but i can't see any change It looks that it doesn't do any visible thing. It said in another documentation of Eclipse :


打开多个编辑器时,可能很难跟踪
的位置相关资源在导航器中。因此,导航器支持
使其树视图与当前编辑的资源同步。

When multiple editors are opened, it can be difficult to keep track of where the related resources are in the Navigator. For this reason, the Navigator has support to synchronize its tree view with the currently edited resource.

在导航器和工作台中的编辑器之间链接资源,
在其用户界面顶部的导航器工具栏中找到链接按钮。 链接按钮
是带有两个指向彼此的箭头的图标。将鼠标移到它上面;将鼠标悬停在
帮助上应阅读与编辑器链接。这种技术也适用于JDT的Package
Explorer。

To link resources between the Navigator and the editors in the workbench, locate the Link button in the Navigator toolbar at the top of its UI. The Link button is an icon with two arrows pointing to each other. Move the mouse over it; hover help should read Link with Editor. This technique also applies to the JDT’s Package Explorer.

我阅读了以上内容和其他一些博客。在进行大型项目时这是非常有用且必要的。它到底是做什么的?我不明白。有人可以帮助我掌握它并提供清晰的示例或信息以查看其作用吗?
预先感谢

I read the above and some other blogs.It is said that it is very useful and necessary while working on large project. what does it do exactly? i can't grasp it . Could anybody help me to grasp it and supply a clear example or information to see what it does? Thanks in advance

推荐答案

它可确保已打开(当前正在编辑)的文件被选中并在其中可见导航器/项目浏览器。因此,如果您想查看同一包中的其他类,例如

It ensures that the file you have open (are currently editing) is selected and visible in the Navigator/Project Explorer. So that if you want to see other classes in the same package, e.g. you don't have to drill all the way into it manually.

如果您想查看它的工作原理,请打开导航器视图并启用此设置。然后切换到编辑新文件(不使用导航器,例如,使用 CTRL - T 并直接键入类名称,或单击其他编辑器选项卡)。导航器中的选择应更新为您正在编辑的文件。

If you want to see it work, have the Navigator view open and enable this setting. Then switch to editing a new file (without using the Navigator, e.g. use CTRL-T and type the class name directly, or click a different editor tab). The selection in the Navigator should update to the file you're now editing.

这篇关于“与编辑器链接”是什么?功能在Eclipse中执行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆