Wednesday, April 8, 2015

Adding resource filter for project in eclipse

try
{
project.createFilter(IResourceFilterDescription.EXCLUDE_ALL | IResourceFilterDescription.FOLDERS,
new FileInfoMatcherDescription("org.eclipse.core.resources.regexFilterMatcher", //$NON-NLS-N$
"node_modules"), IResource.BACKGROUND_REFRESH, new NullProgressMonitor());
}
catch (CoreException e)
{

}


This piece code will hide the "node_modules" folder from project.

No comments:

Post a Comment