如何找到Eclipse项目&文件夹按名称? [英] How to find Eclipse projects & folders by name?

查看:206
本文介绍了如何找到Eclipse项目&文件夹按名称?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在Eclipse工作区中按名称搜索文件夹/项目?

Is there a way to search for folders/projects by name in the Eclipse workspace?

结果最好在我可以进行批量操作的视图中返回(如关闭,打开,分配工作集)。
只是手动点击数百个项目的列表。

The results would best be returned in a view where I can do bulk operations (like closing, opening, assign working set). It's just to fiddly to manually click through the list of hundreds of projects.

这个看似简单的任务是令我感到悲伤,我在所有的Eclipse年份之后感到尴尬。

This seemingly trivial task is causing grief to me, which I find embarrassing after all my Eclipse years.

我试过:


  1. 搜索对话框(Ctrl + H) - 在众多选项中,我没有找到任何实际选择文件夹或项目的东西(仅文件)


    • 打开资源(Ctrl + R),看起来比对话框更复杂,但再次:仅文件搜索。 BTW,为什么不叫打开文件?资源通常可以是一个文件夹,对吗?

    • 在包/项目资源管理器中使用过滤器但是只支持过滤东西 - 没有办法只保留匹配模式的东西

    • 可以以动态方式设置工作集吗? (给定搜索条件,而不是在一个简单的对话框中固定分配)。编辑:这是获奖选项,见下文。

?也许是第三方插件,能够正确搜索任何东西? (Eclipse / GroovyMonkey)脚本有帮助吗? Mylyn的?
从这样一个成熟的环境来看,这个太多了吗?

Did I miss something? Maybe a 3rd party plugin that gives sane searching for anything? Would (Eclipse/GroovyMonkey) scripting help with this? Mylyn? Is this too much to ask for, from a such mature environment?

我已经在Eclipse论坛上问过了,他们回答:)
像往常一样,我对这些人有更多的信心,并会感谢创意。

I have kindly asked this on Eclipse forums, and they kindly answered "No" :) As usual, I have more confidence in SO folks, and would be grateful for ideas.

当前获胜者是Scott的出色的动态工作集插件,它完全实现了该选项

And the -current- winner is Scott's excellent dynamic working sets plugin, which exactly implements the option 4 above!

推荐答案

首先,我将回答动态工作集问题:

First, I'll answer the "dynamic working set" question:

我写了一个动态工作集插件。它允许您按项目性质,名称的正则表达式和(作为其扩展名)对项目进行分组。maven组和项目名称。

I've written a dynamic working set plugin. It allows you to group projects by project nature, regular expressions for names, and (as an extension to it) maven group and project name.

http://code.google.com/p/javadude/wiki/DynamicWorkingSets

这可能会给你现在所需的一切...

That may give you everything you need for now...

否则,我不认为有什么像你想要的,除非有人为它写一个插件(这将很容易做,一旦用来编写eclipse插件)

Otherwise, I don't think there is anything like what you're looking for, unless someone writes a plugin for it (which would be easy to do, once used to writing eclipse plugins)

这篇关于如何找到Eclipse项目&文件夹按名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆