如何用Java创建Eclipse文件夹资源过滤器
Eclipse 文件夹属性对话框允许您编辑资源过滤器(请参阅 eclipse 3.5 filter .git 文件夹)。我想以编程方式做同样的事情。我当前的解决方案是使用如下所示的内部代码来仅包含与“xml”匹配的文件。有谁知道如何在不使用内部代码的情况下做到这一点?
提前致谢
folder.createFilter(
IResourceFilterDescription.FILES | IResourceFilterDescription.INCLUDE_ONLY,
new FileInfoMatcherDescription("NameofFolder",
"1.0-name-matches-false-false-xml"), 0, null);
The Eclipse folder properties dialog allows you to edit the resource filters ( see eclipse 3.5 filter .git folder) . I would like to do the same programmatically. My current solution is to use internal code as shown below to include only file that match 'xml'. Does anyone know how to do this without the use of internal code?
Thanks in advance
folder.createFilter(
IResourceFilterDescription.FILES | IResourceFilterDescription.INCLUDE_ONLY,
new FileInfoMatcherDescription("NameofFolder",
"1.0-name-matches-false-false-xml"), 0, null);
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
解决办法是:
The solution is: