Eclipse - 忽略整个目录 [英] Eclipse - Ignore Entire Directories

查看:35
本文介绍了Eclipse - 忽略整个目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 Aptana Studio(基于 Eclipse).我试图让 Eclipse 完全忽略项目中的整个目录.我的意思是完全.我不希望它显示在项目文件夹中.我什至不希望 Eclipse 意识到它的存在.

I use Aptana Studio (based on Eclipse). I'm trying to get Eclipse to completely ignore an entire directory inside a project. I mean COMPLETELY. I don't want it to display in the project folder. I don't want Eclipse to even be aware it exists.

不幸的是,我将其添加为过滤器的所有努力都不起作用.请参阅 http://forums.aptana.com/viewtopic.php?f=14&t=8340#p33714.我认为过滤器只会阻止文件夹显示在项目显示中.它不会阻止 Eclipse 实际查看该文件夹中的所有文件以获取代码帮助等.

Unfortunately, all my efforts to add it as a filter don't work. See http://forums.aptana.com/viewtopic.php?f=14&t=8340#p33714 . I think the filter only prevents the folder from being displayed in the project display. It doesn't keep Eclipse from actually looking at all the files in that folder for code assist, etc.

我的问题是该目录有数千个文本文件.因此,每次 Eclipse 打开或刷新此项目时,它都会分析所有这些文件.

My problem is that directory has thousands of text files. So, each time Eclipse opens or refreshes this project, it analyzes all those files.

我怎样才能防止这种情况发生?

How can I prevent this?

推荐答案

如果您在资源树的同一位置有一个同名的链接资源(指向磁盘上的其他文件/文件夹),则磁盘上的真实文件夹将对资源模型隐藏.

If you have a linked resource (pointing off to some other file/folder on disk) with the same name in the same location in the resource tree, then the real folder on disk will be hidden from the resource model.

不幸的是,如果实际目录已经存在于项目结构中,则您无法创建链接资源.你可以试试这样的:

Unfortunately you can't create the linked resource if the real directory is already there in the project structure. You can try something like this:

  1. 在磁盘上,重命名/移动有问题的目录
  2. 刷新项目,目录没了
  3. 创建链接资源(新建 -> 文件/文件夹 >> 高级 -> 链接到文件系统中的文件).将其命名为与原始目录相同的名称.
  4. 在磁盘上,恢复目录的原始名称
  5. 刷新项目.

这篇关于Eclipse - 忽略整个目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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