tags:

views:

317

answers:

3

I have several different processes within a single project that I work on. I am constantly opening and closing tabs(java files) in the code editor for that particular process. Each process almost always uses the same java files.

I was wondering if it is possible to save what files are opened as part of the working set so I can select what working set I want and have all the java files open that I will need to work with. Currently the working set just sets the tree to these files, but I am looking to also have it open the files I need.

I hope this makes sense...

A: 

You need a Macro. Searching using this term at Eclipse plugin sites like eclipseplugincentral.com and so on must yield enough suggestions, for example Practically Macro. Good luck.

BalusC
+1  A: 

Mylyn should be your answer here.

Mylyn is a task-focused interface for Eclipse that makes working with very large workspaces as easy as working with small ones.
Mylyn extends Eclipse with mechanisms for keeping track of the tasks that you work on.

Mylyn monitors your work activity on those tasks to identify information relevant to the task-at-hand. Mylyn monitors Eclipse and captures your interaction in a task context.
System artifacts such as files, types, methods, and fields get assigned a degree-of-interest based on how recently and frequently you interact with them.
This results in uninteresting elements being filtered from view within Eclipse, allowing you to focus in on what is important.

VonC
+1 didn't knew it was possible with mylyn. It's however worth noting that mylyn ships by default with "Eclipse for Java EE" version so that you don't need to download/install it separately.
BalusC
@BalusC: true, Mylyn is included in every distro but the classic one: see http://www.eclipse.org/downloads/packages/compare-packages
VonC
man, I love this site. Thanks for the input, I will play around with this today and see how it works. I will give an update later.
northpole
I installed and set up Mylyn and first impression...bad a$$! It is not exactly what I was asking for, however, it is much more than I was asking for and in a good way. This is exactly the type of thing I needed right now. Takes a huge project and makes it "smaller" Thanks!
northpole
+1  A: 

Eclipse provides multiple ways of structuring the IDE desktop:

  • Perspectives: Customization of the positions of open and closed views and editors. You can copy and rename existing perspectives like the Java perspective and suit them to your needs by customizing them. See the Window menu or right-click on the perspective icon in the upper right corner
  • Task Management Tools like Mylyn: see answer by VonC
  • Multiple Windows: You can open new windows and move them to your second monitor. Select Window > New Window to open a new window. Each window keeps track of its own open editors.
  • Multiple Instances of Eclipse: You can always use multiple workspaces and multiple instances of Eclipse. However, this is only recommended when working on different projects, as both instances would overwrite each others files when rebuilding.
  • Hotkeys: By using shortcuts like Ctrl-T and Alt-Left/Alt-Right and Ctrl-Q you can quickly jump to previous locations where you have edited source files. This is a great help in navigating the open workspace.
mhaller