Can you save groups of tabs in Eclipse so you can open them later?

JavaEclipse

Java Problem Overview


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...

Java Solutions


Solution 1 - Java

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.

Following Saheed's answer, don't miss CodeKiller's comment:

> You can

> - Activate the task to reopen all files and

  • Deactivate the task to close all the files.

Bookmarks (mentioned here by user1039663) is a valable alternative.

Solution 2 - Java

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.

Solution 3 - Java

Extended VS Presentation provides capabilities to save sessions.

Unluckily, it only works with Eclipse 3.1 to 3.8:

[Project page at Eclipse Marketplace][2]

![sessions management][3]

[2]: http://marketplace.eclipse.org/content/extended-vs-presentation/metrics#.Us1-d9LuIUM "Project Page at Eclipse Marketplace" [3]: http://i.stack.imgur.com/qqqFC.png

Solution 4 - Java

The accepted answer tells us which tool could be used but does not provide a quick and dirty explanation on how to use it.

In my case, I hadn't finished researching a large code base but I needed to save my progress so I could return to it later hence the need to save all open tabs using Mylyn.

  1. If you already have Mylyn installed, navigate to Window -> Show View -> Task List to view the list of tasks. If you've never used it before, the list will be empty.

  2. Right-click inside the Task List view then New -> Category to create a new category. Right-click again New -> Task to create a new task.

  3. Double-click on the task you just created then click on the Context tab at the bottom left of the view.

  4. Now navigate to each tab which you would like Mylyn to save by clicking on the tab name. Notice how an entry for the source file for that tab is added in Context tab of the Task List view.

Once you've cycled through all the tabs you'd like to save, you can confirm they were saved by closing each one and double-clicking the source file in the Task List to restore the tab.

Solution 5 - Java

I've edited this answer as per below comment (include essential parts of answer in this post).

Yes, you can save off groups of tabs in Eclipse by installing this Session Manager plug-in.

I've wanted this functionality in Eclipse as well. I recently wrote a feature and have been successfully using it for a few months now. It is a new OSGi type extension and works with Eclipse Neon and above.

Here's how to install it.

  • In Eclipse, go to Help → Install New Software
  • Click “Add”, enter a name like “Editor Sessions” and the following URL. http://spillikinaerospace.com/eclipseInstall/
  • Unckeck “Group items by category” to see the feature.
  • Check the box that says “Editor Sessions Manager” and click Next.
  • Read and agree to the short license agreement.
  • Click the remaining install buttons.
  • Allow Eclipse to restart.

Full set of instructions are here: http://chrishull.com/projects/eclipse/

Please give it a try and send comments. I've found it a very useful tool as I work with several Eclipse projects at once and need to recall file groups.

Hope you enjoy it;
-Chris

Solution 6 - Java

In addition to all mentioned... Did you try Bookmarks? You can save multiple bookmarks into one set, there are bookmark sets management option and you can add descriptions with prefixes to group bookmarks on the same set. Finally and more important: you can select multiple bookmarks, select goto and multiple editors will be opened at once.

Solution 7 - Java

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.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionnorthpoleView Question on Stackoverflow
Solution 1 - JavaVonCView Answer on Stackoverflow
Solution 2 - JavamhallerView Answer on Stackoverflow
Solution 3 - JavaskindView Answer on Stackoverflow
Solution 4 - JavaSaheedView Answer on Stackoverflow
Solution 5 - JavaChristopher HullView Answer on Stackoverflow
Solution 6 - Javauser1039663View Answer on Stackoverflow
Solution 7 - JavaBalusCView Answer on Stackoverflow