Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I assume you want to show the <code>*.</code>resources in the <em>package explorer</em>. I do not think there is any plugin designed to do exactly that, but you still have some possibilities.</p> <p>A simple way to do it, is to go to <code>Customize View</code>. You can just select <code>Filters...</code> from the view menu (the shortcut to <code>.* resources</code> will be shown after you modify it):</p> <p><img src="https://i.stack.imgur.com/BA9hA.png" alt="The filters menu."></p> <p>But of course you still need to do that for every user. If this is still too cumbersome you need to work with the extensions that defines them. You might have luck with creating you're own plugin that tries to overwrite the extension point that defines the filter. In short you have to add this to your <code>plugin.xml</code></p> <pre><code> &lt;extension point="org.eclipse.jdt.ui.javaElementFilters"&gt; &lt;filter targetId="org.eclipse.jdt.ui.PackageExplorer" name=".* resources (new)" enabled="false" description="Hides resources with names that start with a '.'" pattern=".*"&gt; &lt;/filter&gt; &lt;/extension&gt; </code></pre> <p>There is however a hack and there is no guarantee that this will work. If you look into <code>org.eclipse.jdt.ui.actions.CustomFiltersActionGroup.CustomFiltersActionGroup(String, StructuredViewer)</code> you will see that it depends on the order in which the filter-extensions are loaded. According to <a href="https://stackoverflow.com/questions/7927357/override-existing-eclipse-plugin-extension">this question</a> this is rather arbitrary. </p> <p>Another way which requires more work, but is much less hacky and (to my best knowledge) is sure to work, is to modify the original extension point. This is defined in <code>org.eclipse.jdt.ui</code> so you have to replace this plugin. To do this you need to:</p> <ol> <li>Import the plugin: Open the <code>Plug-ins</code> view, right click on <code>org.eclipse.jdt.ui</code> and select import as source</li> <li>Find the extension in <code>plugin.xml</code> (Search for <code>name="%HideSystemFiles.label"</code>) and change <code>enabled="true"</code> to <code>enabled="false"</code></li> <li>Create a "feature patch" with you plugin. Export it and install into your Eclipse. (see resources below)</li> </ol> <p>One disadvantage with this approach, is that you have to maintain this every time <code>org.eclipse.jdt.ui</code> is updated, essentially going through all steps again.</p> <p>For more info on feature patches see:</p> <ul> <li><a href="http://eclipsesource.com/blogs/2012/07/30/patching-your-own-eclipse-ide/" rel="nofollow noreferrer">http://eclipsesource.com/blogs/2012/07/30/patching-your-own-eclipse-ide/</a></li> <li><a href="http://aniefer.blogspot.dk/2009/06/patching-features-with-p2.html" rel="nofollow noreferrer">http://aniefer.blogspot.dk/2009/06/patching-features-with-p2.html</a></li> <li><a href="http://help.eclipse.org/helios/index.jsp?topic=%2Forg.eclipse.pde.doc.user%2Fguide%2Ftools%2Fproject_wizards%2Fnew_feature_patch.htm" rel="nofollow noreferrer">http://help.eclipse.org/helios/index.jsp?topic=%2Forg.eclipse.pde.doc.user%2Fguide%2Ftools%2Fproject_wizards%2Fnew_feature_patch.htm</a></li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload