在Eclipse 3.5(以及Aptana插件)中,如何获得可用于显示项目的视图,包括“点”文件?

时间:2023-01-25 09:14:29

I've managed to get the various project explorer views to show dot files, such as .htaccess, but if I ever close the project and reopen it, the dot files no longer show up in the view. Am I missing a view that lets me show the dot files or is there some kind of configuration option that I can toggle? I've tried a few things over the past few days, but I'm not sure what they were, since I really didn't keep track.

我已经设法获得各种项目浏览器视图来显示点文件,例如.htaccess,但如果我关闭项目并重新打开它,则点文件不再显示在视图中。我错过了一个让我显示点文件的视图,或者是否有某种配置选项可以切换?在过去的几天里我尝试了一些东西,但我不确定它们是什么,因为我真的没跟踪。

Suggestions?

2 个解决方案

#1


I've managed to get the various project explorer views to show dot files:

我已经设法获得各种项目资源管理器视图来显示点文件:

alt text http://www.gentleware.com/fileadmin/media/archives/userguides/apolloforeclipse_userguide/images/filter.png

alt text http://www.gentleware.com/fileadmin/media/archives/userguides/apolloforeclipse_userguide/images/filter.png

That is normally done through the filter view of a Package Explorer, by deactivating the 'resources' filter (.*).
That is normally saved into the ui preference file:

这通常通过Package Explorer的过滤视图来完成,通过停用'resources'过滤器(。*)。这通常保存在ui首选项文件中:

<workspace>\.metadata\.plugins\org.eclipse.core.runtime\.settings\org.eclipse.jdt.ui.prefs

Can you check that this file is properly updated when you change its settings?

更改设置时,是否可以检查此文件是否已正确更新?

I confirm those settings are in the org.eclipse.jdt.ui.prefs file, under the line:

我确认这些设置位于org.eclipse.jdt.ui.prefs文件的下面一行:

CustomFiltersActionGroup.org.eclipse.jdt.ui.PackageExplorer.userDefinedPatterns=*.contrib, *.bak, *.launch, *.zip, *.rar, *.pmd, *.log

(those are example values for a filter)

(这些是过滤器的示例值)

However: while eclipse is running, adding a filter does not trigger any setting file modification. The new filter is strictly in memory during the eclipse session.
Only at the end of the session, during the eclipse closing step, you can find this filter written in org.eclipse.jdt.ui.prefs.

但是:当eclipse正在运行时,添加过滤器不会触发任何设置文件修改。在eclipse会话期间,新过滤器严格地在内存中。只有在会话结束时,在eclipse关闭步骤中,您才能找到用org.eclipse.jdt.ui.prefs编写的此过滤器。

In my case, closing/reopening a project did re-use correctly those global filters in the Package Explorer.
Could you check if this line is present in org.eclipse.jdt.ui.prefs, and if not, add it (restart eclipse) and see if this now works as expected?

在我的例子中,关闭/重新打开项目确实在Package Explorer中正确地重用了那些全局过滤器。你可以检查org.eclipse.jdt.ui.prefs中是否存在这一行,如果没有,添加它(重启eclipse),看看现在是否按预期工作?

#2


There is the Navigator View, which will show the dot files by default.

有导航器视图,默认显示点文件。

Navigator View http://img301.imageshack.us/img301/1116/screen2w.png

导航器查看http://img301.imageshack.us/img301/1116/screen2w.png

#1


I've managed to get the various project explorer views to show dot files:

我已经设法获得各种项目资源管理器视图来显示点文件:

alt text http://www.gentleware.com/fileadmin/media/archives/userguides/apolloforeclipse_userguide/images/filter.png

alt text http://www.gentleware.com/fileadmin/media/archives/userguides/apolloforeclipse_userguide/images/filter.png

That is normally done through the filter view of a Package Explorer, by deactivating the 'resources' filter (.*).
That is normally saved into the ui preference file:

这通常通过Package Explorer的过滤视图来完成,通过停用'resources'过滤器(。*)。这通常保存在ui首选项文件中:

<workspace>\.metadata\.plugins\org.eclipse.core.runtime\.settings\org.eclipse.jdt.ui.prefs

Can you check that this file is properly updated when you change its settings?

更改设置时,是否可以检查此文件是否已正确更新?

I confirm those settings are in the org.eclipse.jdt.ui.prefs file, under the line:

我确认这些设置位于org.eclipse.jdt.ui.prefs文件的下面一行:

CustomFiltersActionGroup.org.eclipse.jdt.ui.PackageExplorer.userDefinedPatterns=*.contrib, *.bak, *.launch, *.zip, *.rar, *.pmd, *.log

(those are example values for a filter)

(这些是过滤器的示例值)

However: while eclipse is running, adding a filter does not trigger any setting file modification. The new filter is strictly in memory during the eclipse session.
Only at the end of the session, during the eclipse closing step, you can find this filter written in org.eclipse.jdt.ui.prefs.

但是:当eclipse正在运行时,添加过滤器不会触发任何设置文件修改。在eclipse会话期间,新过滤器严格地在内存中。只有在会话结束时,在eclipse关闭步骤中,您才能找到用org.eclipse.jdt.ui.prefs编写的此过滤器。

In my case, closing/reopening a project did re-use correctly those global filters in the Package Explorer.
Could you check if this line is present in org.eclipse.jdt.ui.prefs, and if not, add it (restart eclipse) and see if this now works as expected?

在我的例子中,关闭/重新打开项目确实在Package Explorer中正确地重用了那些全局过滤器。你可以检查org.eclipse.jdt.ui.prefs中是否存在这一行,如果没有,添加它(重启eclipse),看看现在是否按预期工作?

#2


There is the Navigator View, which will show the dot files by default.

有导航器视图,默认显示点文件。

Navigator View http://img301.imageshack.us/img301/1116/screen2w.png

导航器查看http://img301.imageshack.us/img301/1116/screen2w.png