本文整理汇总了Java中org.eclipse.core.resources.FileInfoMatcherDescription类的典型用法代码示例。如果您正苦于以下问题:Java FileInfoMatcherDescription类的具体用法?Java FileInfoMatcherDescription怎么用?Java FileInfoMatcherDescription使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FileInfoMatcherDescription类属于org.eclipse.core.resources包,在下文中一共展示了FileInfoMatcherDescription类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: wrap
import org.eclipse.core.resources.FileInfoMatcherDescription; //导入依赖的package包/类
/**
* @param iResourceFilterDescription
* @return a UIResourceFilterDescription
*/
public static UIResourceFilterDescription wrap(
final IResourceFilterDescription iResourceFilterDescription) {
return new UIResourceFilterDescription() {
public FileInfoMatcherDescription getFileInfoMatcherDescription() {
return iResourceFilterDescription.getFileInfoMatcherDescription();
}
public IPath getPath() {
return iResourceFilterDescription.getResource().getProjectRelativePath();
}
public IProject getProject() {
return iResourceFilterDescription.getResource().getProject();
}
public int getType() {
return iResourceFilterDescription.getType();
}
};
}
示例2: createFilter
import org.eclipse.core.resources.FileInfoMatcherDescription; //导入依赖的package包/类
@Override
public IResourceFilterDescription createFilter(int type,
FileInfoMatcherDescription matcherDescription, int updateFlags,
IProgressMonitor monitor) throws CoreException {
// not required
return null;
}
示例3: createFilter
import org.eclipse.core.resources.FileInfoMatcherDescription; //导入依赖的package包/类
@Override
public IResourceFilterDescription createFilter(
int type,
FileInfoMatcherDescription matcherDescription,
int updateFlags,
IProgressMonitor monitor)
throws CoreException {
throw new UnsupportedOperationException();
}
示例4: addFileFilter
import org.eclipse.core.resources.FileInfoMatcherDescription; //导入依赖的package包/类
public void addFileFilter(IProject newProject, String pattern, IProgressMonitor monitor) throws CoreException {
FileInfoMatcherDescription matcherDescription = new FileInfoMatcherDescription(FILE_FILTER_ID, pattern);
/* ignore the generated files - .project and .gitignore at navigator etc. */
newProject.createFilter(IResourceFilterDescription.EXCLUDE_ALL | IResourceFilterDescription.FILES, matcherDescription, IResource.BACKGROUND_REFRESH, monitor);
}
示例5: getFileInfoMatcherDescription
import org.eclipse.core.resources.FileInfoMatcherDescription; //导入依赖的package包/类
/** @return the description */
public abstract FileInfoMatcherDescription getFileInfoMatcherDescription();
示例6: createNestedProjectFilter
import org.eclipse.core.resources.FileInfoMatcherDescription; //导入依赖的package包/类
private void createNestedProjectFilter() throws CoreException {
IProject project = projectHelper.getProject();
FileInfoMatcherDescription matcherDescription = new FileInfoMatcherDescription( ID, null );
project.createFilter( FILTER_TYPE, matcherDescription, NONE, new NullProgressMonitor() );
}
示例7: createFilter
import org.eclipse.core.resources.FileInfoMatcherDescription; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
public IResourceFilterDescription createFilter(final int type, final FileInfoMatcherDescription matcherDescription, final int updateFlags, final IProgressMonitor monitor) throws CoreException {
return resource().createFilter(type, matcherDescription, updateFlags, monitor);
}
示例8: createFilter
import org.eclipse.core.resources.FileInfoMatcherDescription; //导入依赖的package包/类
@Override
public IResourceFilterDescription createFilter(int type, FileInfoMatcherDescription matcherDescription,
int updateFlags, IProgressMonitor monitor) throws CoreException {
throw new RuntimeException("Not implemented");
}