This chapter Eclipse Working Sets demonstrate the use of Working Sets. The Working sets are a convenient grouping mechanism inside Eclipse. User can group parts of a project and can also group multiple projects. The unrelated things can also be grouped if needed. Following are the concepts covered.
Working Sets
Creating a Working Sets
Customizing Working sets
Removing Working sets
Working Sets
Description
Eclipse comes with a large set of different views and permits the user to represent the data in various forms and with different points. Most of these views are navigation oriented.
Working sets are very flexible. There are multiple features in Eclipse that will take advantage of existing working sets. One of the most important is building. User can group multiple projects together and then by using a single command can build them all. One of the most convenient is searching. The searches can be limited for few projects or for some packages inside a project.
Rather than choosing a set of projects and compiling them together, user can utilize a Working Set in order to build a set of projects.
Creating a Working Sets
Description
User can create different Working Sets and can choose which Working Set to be displayed in the Navigator view. The Working sets can be created between a group of Packages and a projects. Follow the steps shown below for creating Working sets for some bunch full of Packages.
Step 1
Select some bunch full of Packages as per the need from the Source folder of a Project as shown in the image below.
Step 2
Right click on the selected Packages and select Assign Working Sets from the explored menu as shown in the image below.
Step 3
Now, a popup window appears knows as Working Set Assignments, click New button in order to select the type of Working set as shown in the image below.
Step 4
A new popup window appears known as New Working Set for selecting the Working set type, click Java as working set type and proceed by clicking Next button as shown in the image.
Now the window redirects and provides some options for creating Working Set name, give the preferred name and proceed by clicking Finish button as shown in the image below
Step 5
Finally the window gets back to Working Set Assignments main window and now by clicking OK button, will create a Working Set as shown in the image below.
Customizing Working sets
Description
User can customize Working environment to make it a little more convenient to work with working sets, in order to do working sets customization follow the steps shown below.
Step 1
First go to Window menu -> click Perspective -> click Customize Perspective as indicated in the image below.
Step 2
Now, a popup window appears known as Customize Perspective providing four sub sections like Tool Bar Visibility, Menu Visibility, Action Set Availability, Shortcuts.
Select Action Set Availability section -> scroll down in Available action sets -> tick the check boxes Windows Working Set and Working Set Manipulation -> Click OK button as indicated in the image below.
Step 3
Now, the tool bar at the top get added with three new icons for Customizing, Adding and Removing the elements from the Working Sets as shown in the image below.
Step 4
For modifying Working set click drop down arrow from the first icon among the three new icons added and click Edit option as indicated in the image below.
Now, a window appears know as Select Working Sets provided with the available Working sets, select the preferred Working set by ticking the Check box and proceed by clicking the Edit button as indicated in the image below.
A popup window appears know as Edit Working Set provided with some options for adding or removing the elements and click Finish button after performing all the required changes as shown in the image below.
Step 5
In order to quickly remove the element from Working Sets, Select the preferred Element or Package from the Package Explorer and click the drop-down arrow from third icon among the three new icons and select the respective Working Set as indicated in the image below.
Now, in order to add the removed element or any other element to the Working Set, select the preferred element and click the drop-down arrow on the second icon among the three new added icons and select the respective Working Set as indicated in the image below.
Removing Working sets
Description
The unwanted Working Sets can be removed easily in Eclipse and can be done in few clicks as follows.
Select View Menu in Package Explorer window -> click Select Working Sets as indicated in the image below.
Now, select the required Working Set from the available list and click Remove button -> click OK button as indicated in the image below.
Summary
Key Points
Working sets are very flexible.
Working sets are used to build a set of projects and are most powerful feature in eclipse to get concentrate on a subset of things inside Eclipse, based on the workflow.
User can customize Working environment to make it a little more convenient to work with working sets like by adding or removing the elements in working sets.