Join Todd Perkins for an in-depth discussion in this video Setting up an Eclipse workspace, part of Eclipse Essential Training.
- Workspaces enable you to control where your Eclipse projects are stored. Now the reason you might want to use different workspaces is maybe you're working with multiple languages. For example, you wanna keep all your Java projects in the same place, and then you wanna keep all of your C and C++ projects in another place. That way you keep your Package Explorer nice and clean, so you can work on only Java projects at one time, and then only C++ projects at another time. What we've seen so far with workspaces is that when you launch Eclipse, a popup window shows up that asks you what to use for your workspace.
You can show or hide that popup window through Eclipse preferences. That's under General, Startup and Shutdown, Workspaces, then you can check or uncheck this box. So let's say we want to change workspaces. I'll go to File, Switch Workspace, and then click Other. Now here I can set a new workspace. I'm going to Browse to my Desktop, and I'm going to choose alternate workspace.
So once inside of that alternate workspace folder, I'll click Open, and then I've set my workspace, so I'll click OK. Notice that when I click OK, Eclipse will restart, and that first project that I had previously in the Project Explorer will disappear. I'm gonna set up the window right here, and hide the welcome screen, and in the Package Explorer I now see nothing. That doesn't mean my project was deleted, that means I'm just working in a new workspace.
So here I'll create a new Java Project, we'll call this NewWorkspace, hit Finish, and there we go. If I wanna go back to the other workspace, I just go to File, Switch Workspace, and choose the other one, and of course, again, Eclipse will reboot, and open up that other workspace. And there we have it, and there's my first project, and the Java file that I had on the screen earlier in this movie.
So if you have a whole bunch of projects that you're working with, and you want to keep your Package Explorer organized, then you can use workspaces to do so, and you can switch workspaces through the File menu.
- What is Eclipse?
- Setting up a workspace
- Adding external files to a project
- Installing add-ons
- Refactoring code
- Working with tasks
- Customizing formatting
- Using Git for version control
- Developing Java, PHP, C/C++, Perl, and Python apps with Eclipse
- Setting up testing servers
- Testing apps
- Debugging apps
Skill Level Beginner
1. Introduction to Eclipse
2. Working with Code
3. Using Git for Version Control
4. Using Eclipse for Java Development
5. Using Eclipse for PHP Development
6. Using Eclipse for C/C++ Development
7. Using Eclipse for Perl Development
8. Using Eclipse for Python Development
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.