score:16
Filters will hide resources from view, but they're still in the project. If you create a project in another location you can create linked resources to the folders you want to include in your project.
For reference I posted another answer that describes how to use linked resources in more detail.
score:0
score:1
The way I've always done it is to explicitly check out projects as peers. e.g:
~/myworkspace/goodproject ~/myworkspace/3rdparty
then import only "goodproject" into eclipse. If "3rdparty" is a subdirectory of goodproject, you can fake it out... Say for example your svn project looks like this:
project/ src/ main/ 3rdparty/
You can locally create project/src/ then checkout only the "main" directory, and have eclipse rely on a packaged version (e.g. point to the jar if your project is java).
score:1
If you want to add filters directly inside .project file, these are some rules:
<type>6</type> <!-- exclude all, files -->
<type>5</type> <!-- include only, files -->
<type>13</type> <!-- include only, files and folders -->
<type>26</type><!-- exclude all, folders, all children -->
<arguments>1.0-name-matches-false-false-xyz</arguments> <!-- case sensitive=false, regular expression=false, something named=xyz -->
<arguments>1.0-name-matches-true-false-EEE</arguments> <!-- case sensitive = true, regular expression = false, something named=EEE -->
<arguments>1.0-name-matches-false-false-www</arguments> <!--case sensitive=false, regular expression = false, something named=www -->
One .project filter section for example:
<filteredResources>
<filter>
<id>1567020347706</id>
<name></name>
<type>6</type> <!-- exclude all, files -->
<matcher>
<id>org.eclipse.ui.ide.multiFilter</id>
<arguments>1.0-name-matches-false-false-abc</arguments>
</matcher>
</filter>
<filter>
<id>1567020347708</id>
<name></name>
<type>5</type> <!-- include only, files -->
<matcher>
<id>org.eclipse.ui.ide.multiFilter</id>
<arguments>1.0-name-matches-false-false-xyz</arguments> <!-- case sensitive=false, regular expression=false -->
</matcher>
</filter>
<filter>
<id>1567020347711</id>
<name></name>
<type>13</type>
<matcher>
<id>org.eclipse.ui.ide.multiFilter</id>
<arguments>1.0-name-matches-false-false-mno</arguments>
</matcher>
</filter>
<filter>
<id>1567020347713</id>
<name></name>
<type>26</type><!-- exclude all, folders, all children -->
<matcher>
<id>org.eclipse.ui.ide.multiFilter</id>
<arguments>1.0-name-matches-true-false-EEE</arguments> <!-- case sensitive = true, regular expression = false -->
</matcher>
</filter>
<filter>
<id>1567020347716</id>
<name></name>
<type>26</type> <!-- exclude all, folders, all children -->
<matcher>
<id>org.eclipse.ui.ide.multiFilter</id>
<arguments>1.0-name-matches-false-false-www</arguments> <!-- case sensitive = false, regular expression = false -->
</matcher>
</filter>
</filteredResources>
score:6
Yes, you may place a custom filter on your project. In your project explorer view, there should be a white, downwards pointing arrow near the top of the panel by the Package Explorer tab. Click it, and go to Filters. From there, you can specify certain folder patterns you do not want detected by checking the box next to Name Filter Patterns. In this case, I would put the name of the 3rd party library.
score:202
There is a straight way to do it:
- Right-click a project folder in Project Explorer tree and go to "Properties".
- Resource -> Resource Filters.
- Add as many exclusion filters for files/folders as you like.
P.S. If your project tree is not updated automatically you may have to press F5 while having input focus in Project Explorer window.
Source: stackoverflow.com
Related Query
- How can I exclude some folders from my Eclipse project?
- How Exclude some files from Eclipse Java EE Web Application project Deployment Assembly
- Why is Eclipse trying to copy my .svn folders from src to bin, and how can I make it stop?
- How to exclude some maven project from sonar analysis
- In Eclipse, how can I exclude some files (maybe based on the .svn extension or filename) from being copied to the output folder?
- How do I import a multi module Maven project from SVN into Eclipse (Indigo) so that child modules can be built independently?
- How to exclude classes from an eclipse project
- How can I write tests in one Eclipse project for classes from another Eclipse project?
- How can I exclude one persistence.xml from the test classpath in Eclipse without using Maven/Ant?
- How can I transfter a libgdx project in eclipse from windows to linux and vice versa?
- How can I retrieve the classpath string from my Eclipse project that uses Maven?
- How can I tell from a JUnit test whether an Eclipse project is open?
- How I can build Eclipse C++ project with CMake from the Linux console ( no GUI is available )
- How can my project access its "resources" directory both when run in Eclipse and from a Maven-packaged jar file?
- How can I debug remotely some code running on a Debian Virtual Machine from Eclipse debugger on host machine?
- How can I exclude watched resources from the automatic publishing in eclipse embedded tomcat server
- Eclipse plugin- How can we do some custom action when the file is changed from outside eclipse
- How can I get an eclipse project to reference source jars from maven local repository in a shared project?
- Exclude folders from Eclipse search
- What causes imported Maven project in Eclipse to use Java 1.5 instead of Java 1.6 by default and how can I ensure it doesn't?
- How to create a project from existing source in Eclipse and then find it?
- How to exclude specific folders or files from validation in Eclipse?
- How to exclude a Javascript file from Javascript Validation in Eclipse
- Eclipse - How can I change a 'Project Facet' from Tomcat 6 to Tomcat 5.5?
- How to run a Maven Project In Tomcat From Eclipse
- How to hide src folder from Eclipse Project Explorer?
- Can we call another project java class from our project in eclipse
- How can I make hidden files display in Eclipse Project explorer when using a RSE linked folder?
- Completely exclude certain directories from Eclipse CDT project
- How to remove native support from an Android Project in eclipse because eclipse is showing errors in jni?
More Query from same tag
- Eclipse and Package Explorer
- guava-11.0.1.jar and Maven plugin for eclipse
- Launch error: Failed to connect to remote VM
- Where is the file which stores the default run configurations of Java projects in Eclipse on a Mac?
- How to download Eclipse's Source code?
- Fastest way to upload text files into HDFS(hadoop)
- Extending ADT Eclipse Plugin (Android Development Tools)
- Eclipse WindowBuilder Glitch in Text
- Ruby heredoc makes entire document a string literal in eclipse ide
- no executable produced in eclipse after build
- Eclipse che cannot deploy web application archive
- Android device does not show up in Android Device Chooser, but is listed in adb
- no resource found in eclipse
- Eclipse. How to share editor templates with other users in eclipse?
- Cannot create project with different name than location - 'overlaps with another project'
- Spring beans not shown under Spring elements
- How can I traverse the EMF object tree generated by Xtext?
- Integrating Glassfish in Eclipse for Java EE
- .jar not being created after ANT build in Eclipse
- Why can't I instantiate this Fragment on Android?
- How to declare an integer's value in system.out.println
- Eclipse Content Assist for composite components in JSF 2 don“t show
- How to create openshift application for OPENSHIFT ONLINE 3 STARTER (NEW!) server in Eclipse IDE?
- Eclipse Auto Save before build?
- trouble creating jsp file in eclipse
- Setup eclipse java SE-1.7
- Unable to run java program with a classpath in a file and usage of @ on the cli
- Apache tomcat server startup increase over 30000 ms in eclipse Kepler
- NDK 'make' not found
- How to do static linking in Eclipse CDT?