Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Project switching in Eclipse(How to switch to another project)
Project switching in Eclipse [message #632159] Mon, 11 October 2010 19:25 Go to next message
Paul Kinzelman is currently offline Paul KinzelmanFriend
Messages: 8
Registered: August 2010
Junior Member
I'm using 3.5.2/M20100211-3143 to run JS/webOS perspective.

I've been playing and learning JS and it's running fine with a test app. Now I want to get serious and create something. So I do a New | Basic Application, give it a name, and create a bunch of scenes.

But when I try to run it, I still get the old app getting loaded into the Virtual Box. I don't see how to select a different project to debug.

I've tried setting up a working set, and lots of things, but when I select Debug (or F11), it still loads the old test app instead of my new one.
Re: Project switching in Eclipse [message #632341 is a reply to message #632159] Tue, 12 October 2010 15:49 Go to previous messageGo to next message
Paul Kinzelman is currently offline Paul KinzelmanFriend
Messages: 8
Registered: August 2010
Junior Member
I forgot to mention, the obvious way to do it, using Project | Open Project doesn't work. Most of the options on the Project menu are grayed out. Only Build Working Set and Build Automatically are active on that menu. Shouldn't they be available to be selected?

I found I could do Window | Show View | Project Explorer and was able to close all the projects, then I could select one and open it. However, when I open the one I want, go into the webOS perspective, and try to run/debug it (F11) I get a dialog box: Problem Occurred, 'TapCounter' has encountered a problem. An internal error occurred during "TapCounter". The detail shows "An internal error occurred during: "TapCounter". java.lang.NullPointerException

It's still trying to run the one I don't want to run (TapCounter). How do I get it to run the one I want and the project I have open?

[Updated on: Tue, 12 October 2010 16:04]

Report message to a moderator

Re: Project switching in Eclipse [message #632412 is a reply to message #632341] Tue, 12 October 2010 19:44 Go to previous messageGo to next message
Paul Kinzelman is currently offline Paul KinzelmanFriend
Messages: 8
Registered: August 2010
Junior Member
I stumbled over a solution - if I go into the project navigator view (which doesn't seem to always even be available) and right-click the project I want, it seems to debug the new project instead of the old one.

But there should be an easier way to change projects, could somebody please fill me in with how it's supposed to be done?

A lot of times the Windows | Show View does not have the Project Navigator available to be selected, how can I get to that view when it's not there?
Re: Project switching in Eclipse [message #632421 is a reply to message #632412] Tue, 12 October 2010 20:11 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 2010.10.12 13:44, Paul Kinzelman wrote:
> I stumbled over a solution - if I go into the project navigator view
> (which doesn't seem to always even be available) and right-click the
> project I want, it seems to debug the new project instead of the old one.
>
> But there should be an easier way to change projects, could somebody
> please fill me in with how it's supposed to be done?
>
> A lot of times the Windows | Show View does not have the Project
> Navigator available to be selected, how can I get to that view when it's
> not there?

It's not that the Navigator view isn't always available, but, I think,
that not all perspectives include it in the Window menu when they are
active. I've never yet discovered a time when it wasn't reachable via
Window -> Show View -> [ Other -> General -> ] Navigator. However, maybe
I've just never tried getting from there at a time it wasn't available.
Re: Project switching in Eclipse [message #632432 is a reply to message #632421] Tue, 12 October 2010 21:40 Go to previous messageGo to next message
Paul Kinzelman is currently offline Paul KinzelmanFriend
Messages: 8
Registered: August 2010
Junior Member
Oh, thanks, that's pretty deep, I didn't discover it there. At least now I know where to find it if it's not in the list easy to get to.

Any ideas about switching projects so that a debug command will debug the new project? I'd think there would be an easier way to select what project is to be debugged when F11 is pressed.
Re: Project switching in Eclipse [message #632433 is a reply to message #632432] Tue, 12 October 2010 22:00 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 2010.10.12 15:40, Paul Kinzelman wrote:
> Oh, thanks, that's pretty deep, I didn't discover it there. At least now
> I know where to find it if it's not in the list easy to get to.
>
> Any ideas about switching projects so that a debug command will debug
> the new project? I'd think there would be an easier way to select what
> project is to be debugged when F11 is pressed.

I personally use few keyboard equivalents that aren't high-frequency,
but I assume that F11 is the same thing as clicking the bug-shaped icon
in the button bar across the top of some perspectives.

If so, then launching for debug once will set the project in question as
the one that a click on the bug icon or F11 (presumably) will result in
without explicitly choosing which of your myriad, open projects will be
launched.
Re: Project switching in Eclipse [message #632435 is a reply to message #632159] Tue, 12 October 2010 22:12 Go to previous messageGo to next message
Paul Kinzelman is currently offline Paul KinzelmanFriend
Messages: 8
Registered: August 2010
Junior Member
Yes, I think the F11 is the same as squashing the bug.

The question is that if you're debugging one project and want to change to another, how is one supposed to do it? I found a right-click seems to do it, but it seems to me there should be a 'select current project' menu item or something.
Re: Project switching in Eclipse [message #632438 is a reply to message #632435] Tue, 12 October 2010 22:22 Go to previous messageGo to next message
Ted Berrian is currently offline Ted BerrianFriend
Messages: 1
Registered: October 2010
Junior Member
thanks
Re: Project switching in Eclipse [message #632440 is a reply to message #632435] Tue, 12 October 2010 22:28 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 2010.10.12 16:12, Paul Kinzelman wrote:
> Yes, I think the F11 is the same as squashing the bug.
>
> The question is that if you're debugging one project and want to change
> to another, how is one supposed to do it? I found a right-click seems to
> do it, but it seems to me there should be a 'select current project'
> menu item or something.

If I pull down the menu to the side of the bug icon, I can choose which
of all that I've been debugging since I launched Eclipse on the
workspace to debug. Next time, it's that one that's the default.

So, the default is the "last one debugged/run."

Or so it goes in my experience. After all these years, it would be a
huge anomaly for it always to have worked that way for me, yet not
actually be that way.
Re: Project switching in Eclipse [message #632444 is a reply to message #632440] Tue, 12 October 2010 23:45 Go to previous message
Paul Kinzelman is currently offline Paul KinzelmanFriend
Messages: 8
Registered: August 2010
Junior Member
Ok, it looks like the project has to be open, and then the bug-squash pull-down list thing works. I think it was my lack of understanding of how the thing works, and being unable to find the project navigator when it was deep in the Window path.

Thanks for your help!
Previous Topic:"provisional APIs" disclaimers for JSDT APIs
Next Topic:JSON editing support?
Goto Forum:
  


Current Time: Fri Apr 19 04:58:57 GMT 2024

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

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

Back to the top