Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » How do you switch projects?(I have three projects, how do I switch between them?)
How do you switch projects? [message #532040] Thu, 06 May 2010 20:42 Go to next message
JanGaiam  is currently offline JanGaiam Friend
Messages: 6
Registered: April 2010
Junior Member
Hi, total newbie to Eclipse here.

Say I have two projects, how do I switch between them so that the resources of Project 1 all close and the resources of Project 2 open?

In text editors like BBEdit and others this is called a workspace, but Eclipse doesn't use that word in the same sense. At least that's the impression I'm getting from the documentation.

I thought the "Navigator" window or the "Explorer" window would do that but both seem to only allow you to open individual resources within a given project and I end up with resources from one project opened with resources from another project.

I want them to open as a bundle.

What am I missing?

[Updated on: Thu, 06 May 2010 20:42]

Report message to a moderator

Re: How do you switch projects? [message #532051 is a reply to message #532040] Thu, 06 May 2010 21:58 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 5/6/2010 2:42 PM, JanGaiam wrote:
> Hi, total newbie to Eclipse here.
>
> Say I have two projects, how do I switch between them so that the
> resources of Project 1 all close and the resources of Project 2 open?
>
> In text editors like BBEdit and others this is called a workspace, but
> Eclipse doesn't use that word in the same sense. At least that's the
> impression I'm getting from the documentation.
>
> I thought the "Navigator" window or the "Explore"r window would do that
> but both seem to only allow you to open individual resources within a
> given project and I end up with resources from one project opened with
> resources from another project.
>
> I want them to open as a bundle.
>
> What am I missing?

If you right-click on a project, you can choose to close it, and/or open
one that is closed. When closed, it's as if the closed project didn't
exist in the workspace though you can still see its folder and then
re-open it.

You can put one project per Eclipse workspace, but it's probably overly
burdensome to do that unless your various projects group in mutually
exclusive ways. Switching between Eclipse workspaces is somewhat slow.

As far as resources opening in the same Eclipse workspace, if you mean
Java and other source files, those won't open magically as they were
when you open their project and you can open any files from as many
projects as happen to be open in the workspace. So, yeah, it's perhaps
not quite what you want.

Another approach is to "install" a second or third copy of Eclipse and
launch it simultaneously so you can switch between them as if different
applications (because they are). However, do not attempt to run a second
Eclipse on the same workspace as is being used by the first.

My guess is that I've just confused you worse here.

Russ Bateman
Re: How do you switch projects? [message #532067 is a reply to message #532040] Fri, 07 May 2010 04:15 Go to previous messageGo to next message
David Wegener is currently offline David WegenerFriend
Messages: 1445
Registered: July 2009
Senior Member
On 05/06/2010 03:42 PM, JanGaiam wrote:
> Hi, total newbie to Eclipse here.
>
> Say I have two projects, how do I switch between them so that the
> resources of Project 1 all close and the resources of Project 2 open?
>
> In text editors like BBEdit and others this is called a workspace, but
> Eclipse doesn't use that word in the same sense. At least that's the
> impression I'm getting from the documentation.
>
> I thought the "Navigator" window or the "Explore"r window would do that
> but both seem to only allow you to open individual resources within a
> given project and I end up with resources from one project opened with
> resources from another project.
>
> I want them to open as a bundle.
>
> What am I missing?

Check out the Mylin plugin. It is a task based view of your workspace.
After you create a task, Mylin keeps track of the files you open. As
you switch back and forth between tasks, Mylin closes and opens files to
get you back to what your workspace looked like when you last worked on
the task.
Re: How do you switch projects? [message #532704 is a reply to message #532040] Mon, 10 May 2010 22:04 Go to previous messageGo to next message
JanGaiam  is currently offline JanGaiam Friend
Messages: 6
Registered: April 2010
Junior Member
O.K., just to make sure I'm understanding things, there is no way in Eclipse to switch between, say a Google map web application development project and a C++ game development project such that the corresponding files/resources of each development project all open and close when I switch between them.

Except maybe with the Mylyn plugin. So I downloaded that and tried searching in the Eclipse help for how to load a plugin or where to put the contents of the zip file or anything relevant to getting Mylyn to work.

Nothing.

Or rather, searching through the help file brought back a dozen unrelated pages that happen to have the word "plugin" on them.

And there is no chapter in the help that I've found about "Extending Eclipse" or "Using Plugins" or anything similar to that.

Frankly, the documentation sucks.

What do I do to "install" or whatever the correct term would be, plugins?
Re: How do you switch projects? [message #532713 is a reply to message #532704] Mon, 10 May 2010 23:32 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 5/10/2010 4:04 PM, JanGaiam wrote:
> O.K., just to make sure I'm understanding things, there is no way in
> Eclipse to switch between, say a Google map web application development
> project and a C++ game development project such that the corresponding
> files/resources of each development project all open and close when I
> switch between them.
>
> Except maybe with the Mylyn plugin. So I downloaded that and tried
> searching in the Eclipse help for how to load a plugin or where to put
> the contents of the zip file or anything relevant to getting Mylyn to work.
>
> Nothing.
>
> Or rather, searching through the help file brought back a dozen
> unrelated pages that happen to have the word "plugin" on them.
> And there is no chapter in the help that I've found about "Extending
> Eclipse" or "Using Plugins" or anything similar to that.
>
> Frankly, the documentation sucks.
>
> What do I do to "install" or whatever the correct term would be, plugins?

Yes, Eclipse is a huge elephant and you kind of have to eat it one
spoonful at a time.

If your "Google map web application" is in Java, then based on what
you've said I would advise you to download Eclipse JEE for that and
download Eclipse C/C++ for the game development.

Use separate workspaces for the projects. You will be running separate
Eclipses (and can have both up at once if you want). Do not cross-open
workspaces.

To understand how to download plug-ins, get started by reading the
"Eclipse tip" at http://www.javahotchocolate.com/enums.html It shows
you how to set up AnyEdit, a small, convenience plug-in. What you learn
doing that should be enough to get you headed in the right direction for
other plug-ins.

Here's a tutorial for Mylyn:
http://www.vogella.de/articles/Mylyn/article.html I haven't done this
tutorial, but I've done a number of Lars' other tutorials and they've
always worked pretty well.

Best of luck,

Russ Bateman
Re: How do you switch projects? [message #532716 is a reply to message #532704] Tue, 11 May 2010 00:16 Go to previous messageGo to next message
David Wegener is currently offline David WegenerFriend
Messages: 1445
Registered: July 2009
Senior Member
On Mon, 2010-05-10 at 18:04 -0400, JanGaiam wrote:
> O.K., just to make sure I'm understanding things, there is no way in Eclipse to switch between, say a Google map web application development project and a C++ game development project such that the corresponding files/resources of each development project all open and close when I switch between them.
>
> Except maybe with the Mylyn plugin. So I downloaded that and tried searching in the Eclipse help for how to load a plugin or where to put the contents of the zip file or anything relevant to getting Mylyn to work.
>
> Nothing.
>
> Or rather, searching through the help file brought back a dozen unrelated pages that happen to have the word "plugin" on them.
>
> And there is no chapter in the help that I've found about "Extending Eclipse" or "Using Plugins" or anything similar to that.
>
> Frankly, the documentation sucks.
>
> What do I do to "install" or whatever the correct term would be, plugins?

For Eclipse provided plugins, you can usually install them using
Help->Install new Software. If your on the Galileo version, select
Galileo update site from Work with combo box. Then select the plugins
you want from the list.

The Workbench User Guide has instructions for Installing new Software
that gives additional details. It is included in the Documentation that
comes with Eclipse (Help->Contents).
Re: How do you switch projects? [message #532936 is a reply to message #532704] Tue, 11 May 2010 15:15 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
On 5/10/10 6:04 PM, JanGaiam wrote:
> O.K., just to make sure I'm understanding things, there is no way in
> Eclipse to switch between, say a Google map web application development
> project and a C++ game development project such that the corresponding
> files/resources of each development project all open and close when I
> switch between them.
>
> Except maybe with the Mylyn plugin. So I downloaded that and tried
> searching in the Eclipse help for how to load a plugin or where to put
> the contents of the zip file or anything relevant to getting Mylyn to work.
>
> Nothing.
>
> Or rather, searching through the help file brought back a dozen
> unrelated pages that happen to have the word "plugin" on them.
> And there is no chapter in the help that I've found about "Extending
> Eclipse" or "Using Plugins" or anything similar to that.
>
> Frankly, the documentation sucks.
>
> What do I do to "install" or whatever the correct term would be, plugins?

Mylyn is included in all of the recent releases (at least the past 2 or
3 years), so you don't have to download or install it unless you're
using an old version (or you installed the Eclipse Classic package,
which is unlikely).

As for "closing" projects, what you're asking for is really just using
separate workspaces. You can then switch between them easily using the
File > Switch Workspace menu. That way, each workspace maintians it's
own state, including preferences, lists of projects, and what files were
last open for editing. If you prefer, you can launch more than one
Eclipse instance, point them at different workspaces; that's nice if you
want to have both open at the same time.

Hope this helps,
Eric
Re: How do you switch projects? [message #533001 is a reply to message #532040] Tue, 11 May 2010 19:30 Go to previous message
JanGaiam  is currently offline JanGaiam Friend
Messages: 6
Registered: April 2010
Junior Member
Ah, that's exactly what I was looking for. Thanks for all the help everyone. Smile
Previous Topic:Plugin environment messed up
Next Topic:CVS tool not accepting Host and Repository Path
Goto Forum:
  


Current Time: Tue Sep 24 11:48:02 GMT 2024

Powered by FUDForum. Page generated in 0.09674 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top