Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Switch to default perspective
Switch to default perspective [message #181521] Fri, 24 November 2006 09:58 Go to next message
Eclipse UserFriend
Originally posted by: anthonyb.mediatrel.com

Hi to all,

i am coming from VS.Net and some things in Eclipse are looking to me
rather strange...

So, i am developing with PyDev in Pythnon language. I have set the PyDev
as my default perspective and the "problem" i have is that if i debug my
program, the Eclipse "goes" in Debub perpsectibe, which is the right think
to do, but when my app terminates (gracefully or not), it does not switch
back to default perpective (whatever it is) and i am forced to manually do
this every time.

I have tried to find the solution through the menus but with no luck.

Can anyone please help me on this ??

Thanks a lot for any help,

objectref
Re: Switch to default perspective [message #181785 is a reply to message #181521] Mon, 27 November 2006 11:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: anthonyb.mediatrel.com

Anyone ??
Re: Switch to default perspective [message #181805 is a reply to message #181785] Mon, 27 November 2006 17:41 Go to previous messageGo to next message
Ray Hurst is currently offline Ray HurstFriend
Messages: 121
Registered: July 2009
Senior Member
objectref wrote:
> Anyone ??
>

It seems that questions do not get answered if they require extensive
code changes.

I have observed the same behavior in the Java perspective. I set a
breakpoint in the Java perspective, tell it to run, and when it hits the
breakpoint it switches to the debug perspective. I have been switching
back to the Java perspective manually.
Ray
Re: Switch to default perspective [message #181842 is a reply to message #181805] Mon, 27 November 2006 18:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse4.rizzoweb.com

Ray Hurst wrote:
> objectref wrote:
>> Anyone ??
>>
>
> It seems that questions do not get answered if they require extensive
> code changes.
>
> I have observed the same behavior in the Java perspective. I set a
> breakpoint in the Java perspective, tell it to run, and when it hits the
> breakpoint it switches to the debug perspective. I have been switching
> back to the Java perspective manually.
> Ray

That behavior is configurable. Open the Preferences and look under
Run/Debug > Perspectives. Also, I'm pretty sure it prompt the first time
(in a new workspace) and offers to remember your decision then.

Since the original message is not quoted, I can't tell if this answers
that question.

Hope this helps,
Eric
Re: Switch to default perspective [message #181949 is a reply to message #181842] Tue, 28 November 2006 09:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: anthonyb.mediatrel.com

Hi,

this doesn't work...I set that "Open the associated perspective when
application suspends" to "Always".
This implies, as i see it, that when the last line fo code executed in
debugger perpsctive, Eclipse should return to PyDev, which is defined as
the default perspective. But it doesn't and this needes to be manuall done
(every time).
Re: Switch to default perspective [message #182015 is a reply to message #181949] Tue, 28 November 2006 18:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse4.rizzoweb.com

objectref wrote:
>
> Hi,
>
> this doesn't work...I set that "Open the associated perspective when
> application suspends" to "Always".
> This implies, as i see it, that when the last line fo code executed in
> debugger perpsctive, Eclipse should return to PyDev, which is defined as
> the default perspective. But it doesn't and this needes to be manuall
> done (every time).
>

Your inference is incorrect. That option tell Eclipse when to switch to
the associated perspective upon program suspension - meaning when a
breakpoint is hit, it will switch to Debug perspective.
Switching back to another perspective after you're done debugging has to
be manual - how would Eclipse know that you are finished debugging
unless the program ends completely.
If you want to avoid it switching to Debug in the first place, you can
choose "Never" as the option.

Hope this helps,
Eric
Re: Switch to default perspective [message #182137 is a reply to message #182015] Wed, 29 November 2006 14:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: objectref.mediatrel.com

But i want to do this in THAT situation that program terminates normally...

Not in the one that i want to stop debugging myself. Can Eclipse figure
out that my program terminates normally and switch to default perspective
at that time ??
Re: Switch to default perspective [message #182167 is a reply to message #182137] Wed, 29 November 2006 17:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse5.rizzoweb.com

objectref wrote:
>
> But i want to do this in THAT situation that program terminates normally...
>
> Not in the one that i want to stop debugging myself. Can Eclipse figure
> out that my program terminates normally and switch to default
> perspective at that time ??
>

There is no notion of "default" perspective, so how would Eclipse know
which one to switch to? Also, should Eclipse close the Debug perspective
or just change to a different one? What if there is more than one
program running - when one terminates you might still be interested in
debugging the other one, or maybe not.
The point is, the decision abut when to change perspective (and what
perspective to change to) is not reasonable for the machine to make - it
requires a person knowing what he wants to do next.

If you can answer all the possible scenarios with decisions that the
software can make, you should file an enhancement request in Bugzilla.
But you will have to make sure all the scenarios are covered before
anyone will take the request seriously.

Hope this helps,
Eric
Re: Switch to default perspective [message #182284 is a reply to message #182167] Thu, 30 November 2006 09:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: anthonyb.mediatrel.com

#There is no notion of "default" perspective, so how would Eclipse know
which #one to switch to?

And then, what is the choice "Preferences/Perspectives/Make default",
a..decorator ???

So, as you see, Eclipse actually HAS a default perspective that knows
about, so it surely knows to WHAT to switch but propably does not knwow
WHEN.


ps: If you want the ticket to Brazil, let me know...
Re: Switch to default perspective [message #182292 is a reply to message #182167] Thu, 30 November 2006 09:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: anthonyb.mediatrel.com

Damn news editor, no edit capability, so ignore prev post.


Eric Rizzo wrote:

> There is no notion of "default" perspective, so how would Eclipse know
> which one to switch to?


And then, what is the choice "Preferences/Perspectives/Make default",
a..decorator ???

So, Eclipse actually HAS a default perspective that knows about, so it
surely knows to WHAT to switch but propably does not knwow WHEN.



> If you can answer all the possible scenarios with decisions that the
> software can make,

No i cannot, i am only talking about the obvious ones...
Re: Switch to default perspective [message #182577 is a reply to message #182292] Fri, 01 December 2006 18:31 Go to previous message
Eclipse UserFriend
Originally posted by: eclipse5.rizzoweb.com

objectref wrote:
> Damn news editor, no edit capability, so ignore prev post.
>
>
> Eric Rizzo wrote:
>
>> There is no notion of "default" perspective, so how would Eclipse know
>> which one to switch to?
>
>
> And then, what is the choice "Preferences/Perspectives/Make default",
> a..decorator ???
>
> So, Eclipse actually HAS a default perspective that knows about, so it
> surely knows to WHAT to switch but propably does not knwow WHEN.

That "default" is only used as an indicator in the Open Perspective
dialog. I am not really sure why it is still an preference as it seems
to be pretty useless.
The problem is that it does not necessarily make sense to always switch
to that one. Some people might want to switch back to something else
that they were working in before.


>> If you can answer all the possible scenarios with decisions that the
>> software can make,
>
> No i cannot, i am only talking about the obvious ones...

The point is that there are too many unknowns for the software to make a
choice that is sensible in all situations.
As I said, you are free to file a request for the feature; just be aware
that these same questions will like come up.

Hope this helps,
Eric
Previous Topic:Using custom ant script problem in Eclipse.
Next Topic:X cannot be resolved to a type (although it's there)
Goto Forum:
  


Current Time: Tue Apr 23 15:10:19 GMT 2024

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

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

Back to the top