与编辑者“链接”功能在Eclipse中做? [英] what does "link with editor " feature do in Eclipse?

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

问题描述

我是Eclipse的新手(也不知道NetBeans)。我正在阅读eclipse教程。但是我被堆叠,不能理解链接编辑器是否完全正确。在Eclipse中说 - >帮助:

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.

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

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天全站免登陆