Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

java

eclipse

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

like image 377
northpole Avatar asked Nov 03 '09 18:11

northpole


People also ask

How do I open multiple tabs in Eclipse?

Ctrl + Shift + E Show activity on this post. To accomplish this, simply drag a tab up to your title bar and release. It will create another row of tabs.

How do I save all in Eclipse?

1 Answer. Show activity on this post. Under preferences General->Workspace, there's an "Save automatically before build" option.

How do I save work in Eclipse?

As you type in your program, occasionally select File->Save from the menu to save your work. You may enjoy the "content assist" feature of Eclipse. If you type a partial input and then hit CTRL+SPACE, a dialog shows all possible completions. Just pick the one you want from the list.


2 Answers

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.

like image 123
VonC Avatar answered Sep 20 '22 20:09

VonC


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.
like image 45
mhaller Avatar answered Sep 17 '22 20:09

mhaller