gpt4 book ai didi

php - Eclipse PDT 中的 Package Explorer 在哪里/什么是

转载 作者:行者123 更新时间:2023-12-04 07:09:20 25 4
gpt4 key购买 nike

我试图在 Eclipse 中显示隐藏文件(即 .htaccess 文件),答案指向在“包资源管理器”中执行某些操作。我正在使用 Eclipse PDT 2.1,我不清楚它是什么/在哪里。我如何获得这个传说中的“包资源管理器”????

最佳答案

如本文所述 102degrees blog entry :

After I installed Eclipse PDT, I had two project navigators.
I closed the native one and kept open the PHP Explorer.
PHP Explorer showed my php, css, js, etc, files. It also puts a plus sign to the left of the filenames. Using this view, we can expand the file to see the classes and functions inside of the file without opening it.

The only issue was that, by default, I couldn’t see my .htaccess and .htpasswd files.
On the bright side, using SVN, I couldn’t see my .svn folders - which is exactly what I wanted. Put, this put the issue into a different light - there must be some sort of filter that is restricting files that begin with a dot.

At the top of the PHP Explorer, there are a few toolbar buttons.
Clicking the down arrow brings up a context menu.
I choose the filters… menu item. By default, ‘name filter patterns’ was not checked.
.* files and server projects were selected in the second box. This makes sense why I was not seeing my .htaccess file.



alt text http://opensource.kruxgames.com/torquedit/torqueditDocs/torquedit_html_m6c4621c0.jpg

First, I unchecked my option .* files. This fixed the issue - I was able to see the .htaccess files - but I also saw my .svn folders as well as additional meta files.

I checked the box saying “name filter patterns” and put in the following string:


.cache, .settings, .svn, .project, .projectOptions

详见 xcc :

对于不提供 name filter pattern 的插件通过GUI,可以:

  1. Locate the directory of the Eclipse plugin being used for editing. This is usually something like eclipse/plugins/[plugin name]_[version].
  2. Open the plugin.xml file in a text editor.
  3. Find the extension element whose point attribute has a value of org.eclipse.ui.ide.resourceFilters.
  4. Create a new filter element like any others that already exist, but containing the needed file pattern.
  5. Restart Eclipse using the -clean switch.

If the plugin.xml file didn't contain any resource filters, create one by adding the following code to the bottom of plugin.xml:


<extension point="org.eclipse.ui.ide.resourceFilters">
<filter selected="false" pattern=".svn"></filter>
<filter selected="false" pattern=".project"></filter>
</extension>

关于php - Eclipse PDT 中的 Package Explorer 在哪里/什么是,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/619455/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com