org.eclipse.core.resources.FileInfoMatcherDescription Java Examples

The following examples show how to use org.eclipse.core.resources.FileInfoMatcherDescription. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: NestedProjectFilterIntegrationPDETest.java    From eclipse-extras with Eclipse Public License 1.0 4 votes vote down vote up
private void createNestedProjectFilter() throws CoreException {
  IProject project = projectHelper.getProject();
  FileInfoMatcherDescription matcherDescription = new FileInfoMatcherDescription( ID, null );
  project.createFilter( FILTER_TYPE, matcherDescription, NONE, new NullProgressMonitor() );
}
 
Example #2
Source File: AbstractIContainerStub.java    From Pydev with Eclipse Public License 1.0 4 votes vote down vote up
@Override
public IResourceFilterDescription createFilter(int type, FileInfoMatcherDescription matcherDescription,
        int updateFlags, IProgressMonitor monitor) throws CoreException {
    throw new RuntimeException("Not implemented");
}
 
Example #3
Source File: ResourceUtils.java    From xds-ide with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * Applies filter to the target {@link IFolder}
 * @param targetFolder
 * @param filterType see {@link IContainer#createFilter(int, FileInfoMatcherDescription, int, IProgressMonitor)}
 * @param regex filtering regex
 * @param monitor
 * @throws CoreException
 * @see {@link IContainer#createFilter(int, FileInfoMatcherDescription, int, IProgressMonitor)}
 */
public static IResourceFilterDescription  applyRegexFilter(IFolder targetFolder, int filterType, String regex, IProgressMonitor monitor) throws CoreException {
	return targetFolder.createFilter(IResourceFilterDescription.EXCLUDE_ALL | IResourceFilterDescription.FOLDERS,  
		       new FileInfoMatcherDescription(REGEX_RESOURCE_FILTER_ID,
		    		   regex), IResource.NONE, monitor);
}