window in eclipse that lists open files - eclipse

I'm looking for a way to get a window (like the package explorer) that just lists the files that eclipse has open - ideally like a permanent ctrl-e, or ctrl-F6.
I was thinking this might be possible with some kind of configuration of mylyn. Currently when I have the package explorer in 'context focus' mode, it lists the entities I'm interested in but provides too much detail; I'd like to hide the method and class elements.
Anyone know if this is possible?

This won't give you exactly what you're asking for, but it might work for you. You can get mylyn to only show you the files and not their structural contents.
In the package window, select filters from the drop-down. Exclude all the java things you don't want. Then switch the mylyn context filter on for the package window. You now have only the files visible in the current context excluding all the usual expanded structural information.

Related

Eclipse: quick search on filename

Very often while working in Eclipse I realize that I remember class name, but forgot in which package this class is. Using Search is not very convenient. Too many clicks and key presses. I wonder, is there a plugin to simplify this process? For example, would be great if there was text-edit box in the top of package explorer which could filter showing packages and .java files depending of entered text. Anyone knows something like that?
Eclipse does provide similar functions:
Open Resource Shift+Ctrl+R for all resource files (including Java files)
Open Type Shift+Ctrl+T for all Java classes in classpath.
They also filter the list as you type.
Note that they search all files of all opened projects in current workspace.

Quick find a field or method in Eclipse's workspace

I find it extremely useful to use the Ctrl(cmd)+o shortcut on Eclipse to find a member field or method in a class (and use it again to get the ones from the super class).
However, I would like to know if there is a similar way to quickly search in the project and/or workspace for a field or method you know the name of but not where it is (similarly to how it is done to find a type Ctrl(cmd)+Shift+T or a resource Ctrl(cmd)+Shift+R).
If is not available where can I request it?
ctrl+o (cmd+o) opens the quick outline where you can search for a method within the current class.
Pressing ctrl+o again extends the search scope to the complete class hierarchy.
The closest thing I know of is the Java Search, which allows you to specify searching for a method, field, class, etc. If you're in the Java or Java Browsing perspective, Ctrl+H will open the Search dialog with Java Search as the selected type.
If you want to request a feature or enhancement, enter it into Eclipse's Bugzilla. Keep in mind that the backlog of feature requests is HUGE, so the most effective way to get yours noticed is to take initiative and submit a patch.
With the ctrl+h you will have some more options to search.
Under java search option you may find search for type, method, package, constuctor, field.
Also you may find "Limit To" option to narrow your search result and get precise search result!
The quickest way that I'm aware of is by using ctrl+h to bring up the Java search dialog.
If you are using mac cmd + shift + l will open a search box where you can search for any variable or method through out the project.
ctrl+h will bring up java search option. Enter your string and see. It also has different patterns like .java, .jsp, then select scope then search.
There's no way to do this in Eclipse. When you search for a method that's in a JAR Eclipse will not find it unless you already had the folder open.
You have to play around with it and use indirect ways of finding the method.

Eclipse content assist (for PHP or anything) not using active working set

The Eclipse content assist for PHP (and I'm assuming for other types as well) isn't using the currently active working set - it's searching ALL files in the project. How do I change it to only use the active working set?
When doing a Ctrl+Shift+R search, it was also looking for all files in the project (not what I wanted), until I clicked the small black triangle in that window and selected the working set I wanted it to use. Now it successfully only shows the files that match my search string in the working set. However, this doesn't change anything in the autocomplete content assist feature (i.e. doing a Ctrl+Space to complete the name of a function or variable). Is there any way to accomplish this?
I'm using Eclipse Indigo release, so it's very recent.
I'm afraid it's not possible the way you put it. Eclipse Working Sets just give you a way to organize your projects.
However you may want to take a look at Mylyn, which is fully integrated with Eclipse platform. Here and here is a nice overview of what you can do with Mylyn. But briefly, what it allows you to do is to create a task and maintain a context associated with it. This way, only the relevant files will be displayed in Project Explorer and autocomplete would suggest you only task-focused options.

Is there a tool to explicitly organize files in Eclipse into groups without moving them into different packages?

Is there a plugin that lets you manually add files to lists/categories? Something like Mylyn but manual and more files--kind of the way Gmail manages mail--a tagging system.
If I let mylyn manage my windows it actually closes them without any way to shut off (Something I absolutely cannot tolerate, I use my open windows to remind me of what I'm working on--my memory absolutely NEEDS the help)--on top of that it automatically adds files to lists just because that list happens to be open when I start doing something else.
I guess I'm thinking of a plugin that offers a different version of the "Package Explorer", one that is organized by task instead of by package hierarchy, and allows you to move files around at will.
...or is there a way to adapt an existing tool to do this (without actually moving the files around, of course!) Bookmarks don't seem to offer a "Grouping" but using a common first word for the description in my bookmarks may work... Any other ideas?
After messing with it a bit more, it looks like bookmarks might do what I want. It is possible to filter bookmarks by searching the subject string, so as long as I put tags in the subject string I can select a sub-filter and have it bring up all the relevant files for a given task.
I won't accept this for a while in case someone has a better answer (a plugin perhaps?)

How to search all open files in Eclipse?

Simple question: how do I search all the files currently open in Eclipse? Note: I don't wanna search all the files I have in that workspace, just the ones open in tabs. Is there an easy way to do this?
Closest way is selecting several resources in Navigator or Package Explorer view, then press Ctrl+H and choose 'Selected Resources' radio button. It will limit search only to selected files.
CTRL+E on Windows or Linux, and Command+E on OSX.
There's no way to do that at the moment.
The easiest solution would be to select your files manually (holding CTRL + click on file) and to specify "selected resources" as your search scope.
This may come too late for the original poster, but just in case somebody else needs to find out an answer, I had the same problem and found my solution by installing a plug-in named Instasearch. You can get it by going to Help/Eclipse Marketplace and searching for Instasearch.
You can find more about this plug-in in the following address.
http://marketplace.eclipse.org/content/instasearch
Spring produces a stand-alone Eclipse plugin (no dependencies on Spring) called Quick Search
http://marketplace.eclipse.org/content/quick-search-eclipse
For efficiency, it searches your open files first. So while it isn't purely restricting to opened files as you requested, you can still get a similar effect in practice by just clicking the first results that come up.
The currently opened files simply aren't considered special in eclipse - you have far more advanced methods of organizing your files: projects and working sets.
Working sets allow you to define sets of files, which can be used as constraints for many operations. You have to define them explicitly, but then they don't change just because you've closed a file.
There is no find-in-open-files command in Eclipse, no.
I think that the main reason find-in-open-files is not implemented in Eclipse is probably because the set of open files is for many users rather insignificant. (In fact, I don't know (or care) which files I have open. (I even have Eclipse set to automatically close editors/files when they become too many). If I want to navigate to a file, I open it. Limiting a search to the files I currently have open would be completely pointless for me.)