Java – can I create a Workset with an open file in the current editor?

Eclipse can create a new Workset in the current (Java) editor with all files open?

As far as I know, the only way is to manually select each file in the Project Explorer

Solution

Option #1: view the extended vs presentation plug-in

After installation, you can go to Window > edit session > Save open editor to session to save the open files as a list You can have any number of filesets (called "sessions" in the plug-in)

To reopen the previous set of files, go to Window > edit session > Load session

Compatibility Note: the plug-in is declared to support eclipse only 3.8, but I can do it in 4.5 It's good to install it It seems that the theme does not exist, but the edit session menu option definitely exists

Option #2: with mylyn (almost every eclipse build is included) Mylyn did do more than requested, deciding it as irrelevant code blocks as much as possible, and even providing a filtered view of the file system (which can be disabled by turning off active task switching in the file browser)

See mylyn in action:

>Open the task list view (Window > display view > task list). > Right click in the blank. > In the context menu, select new > local task > enter the name of the task. > Press Ctrl s to save. > At the top left, click the blue - gray circle to "activate" the task (this can also be done by going to the task list view, right clicking the task, and then clicking activate.... warning: activating a new task will close all open editor tabs. > when you open the file, they will be added to the context of the active task. You can manipulate the context by double clicking the task in the task list view, and then click at the bottom of the task editor Context tab Right click an element and select remove from context to disassociate it from the task

Tip: after completing a specific task, be sure to go to the task list view, right-click the task, and then select deactivate to prevent files from being inadvertently added to the context of the task

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>