Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » default perspective for launch
default perspective for launch [message #69966] Tue, 10 June 2003 17:49 Go to next message
Eclipse UserFriend
Hello,

can somebody please give me a hint how to specify the default
perspective for a given launch type?

thanks,
Christian Sell
Re: default perspective for launch [message #70026 is a reply to message #69966] Tue, 10 June 2003 18:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: darin_swanson.oti.com

In the launch configuration dialog, select the launch configuration type and
then set the default perspective for the launch mode.

HTH
Darins

"Christian Sell" <cse@dynabean.de> wrote in message
news:bc5jqa$e3c$1@rogue.oti.com...
> Hello,
>
> can somebody please give me a hint how to specify the default
> perspective for a given launch type?
>
> thanks,
> Christian Sell
>
Re: default perspective for launch [message #70634 is a reply to message #70026] Wed, 11 June 2003 05:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: christian.sell.netcologne.de

huh? You lost me..

1. What launch configuration dialog are you talking about? The only one
I know is when creating a launch configuration. That is one step too far.

2. In that dialog, all I can specify is which perspective to switch to
when the launch is run. Among the perspective choices, there is a
"default" choice. It is the value of that "default" choice that I want
to determine in advance!

3. I want to do this programmatically, i.e. along with my
ILaunchConfigurationDelegate, i want to specify what "default" stands
for. I have found no way to do this.

thanks,
Christian

Darin Swanson wrote:
> In the launch configuration dialog, select the launch configuration type and
> then set the default perspective for the launch mode.
>
> HTH
> Darins
>
> "Christian Sell" <cse@dynabean.de> wrote in message
> news:bc5jqa$e3c$1@rogue.oti.com...
>
>>Hello,
>>
>>can somebody please give me a hint how to specify the default
>>perspective for a given launch type?
>>
>>thanks,
>>Christian Sell
>>
>
>
>
Re: default perspective for launch [message #70707 is a reply to message #70634] Wed, 11 June 2003 09:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: darin_swanson.oti.com

Ok..in the future we both need to specify which build / stream of Eclipse we
are talking about. :-)

I was talking about 3.0...it appears you were talking about 2.1? And I
assumed you were using the UI...you did not state that you wanted to do it
programmatically.

In the 2.1 code stream you will need to set the debug preference for:
IDebugUIConstants.PREF_SHOW_DEBUG_PERSPECTIVE_DEFAULT and
IDebugUIConstants.PREF_SHOW_RUN_PERSPECTIVE_DEFAULT.
See the DebugPreferencePage as an example of where this is done currently.
In 3.0 you specify the perspective for the launch configuration type
directly using DebugUITools.setLaunchPerspective(ILaunchConfigurationType
type, String mode, String perspective);

Hope I have helped you this time,
Darins

"Christian Sell" <christian.sell@netcologne.de> wrote in message
news:bc6tiv$afb$1@rogue.oti.com...
> huh? You lost me..
>
> 1. What launch configuration dialog are you talking about? The only one
> I know is when creating a launch configuration. That is one step too far.
>
> 2. In that dialog, all I can specify is which perspective to switch to
> when the launch is run. Among the perspective choices, there is a
> "default" choice. It is the value of that "default" choice that I want
> to determine in advance!
>
> 3. I want to do this programmatically, i.e. along with my
> ILaunchConfigurationDelegate, i want to specify what "default" stands
> for. I have found no way to do this.
>
> thanks,
> Christian
>
> Darin Swanson wrote:
> > In the launch configuration dialog, select the launch configuration type
and
> > then set the default perspective for the launch mode.
> >
> > HTH
> > Darins
> >
> > "Christian Sell" <cse@dynabean.de> wrote in message
> > news:bc5jqa$e3c$1@rogue.oti.com...
> >
> >>Hello,
> >>
> >>can somebody please give me a hint how to specify the default
> >>perspective for a given launch type?
> >>
> >>thanks,
> >>Christian Sell
> >>
> >
> >
> >
>
>
Re: default perspective for launch [message #70739 is a reply to message #70707] Wed, 11 June 2003 09:30 Go to previous messageGo to next message
Eclipse UserFriend
I have meanwhile looked into the source code of
org.eclipse.debug.internal.ui.launchConfigurations.Perspecti veManager,
and it appears to me that the preference keys you mention:

IDebugUIConstants.PREF_SHOW_DEBUG_PERSPECTIVE_DEFAULT and
IDebugUIConstants.PREF_SHOW_RUN_PERSPECTIVE_DEFAULT

have to be set in the PreferenceStore of the DebugUIPlugin and will thus
have global effect for all launches. I was expecting to be able to
specify the meaning of "default" in the context of a specifiy launch
type (which would make sense IMO). That does not seem possible - does
3.0 allow that?

What I am doing now is subclass CommonTab in my
LaunchconfigurationTabGroup, and implement the seDefaults method such:
config.setAttribute(IDebugUIConstants.ATTR_TARGET_DEBUG_PERS PECTIVE,
MY_PERSPECTIVE_ID);
config.setAttribute(IDebugUIConstants.ATTR_TARGET_RUN_PERSPE CTIVE,
MY_PERSPECTIVE_ID);

I dont like that solution, but it seems the only one for now.

thanks,
Christian

Darin Swanson wrote:
> Ok..in the future we both need to specify which build / stream of Eclipse we
> are talking about. :-)
>
> I was talking about 3.0...it appears you were talking about 2.1? And I
> assumed you were using the UI...you did not state that you wanted to do it
> programmatically.
>
> In the 2.1 code stream you will need to set the debug preference for:
> IDebugUIConstants.PREF_SHOW_DEBUG_PERSPECTIVE_DEFAULT and
> IDebugUIConstants.PREF_SHOW_RUN_PERSPECTIVE_DEFAULT.
> See the DebugPreferencePage as an example of where this is done currently.
> In 3.0 you specify the perspective for the launch configuration type
> directly using DebugUITools.setLaunchPerspective(ILaunchConfigurationType
> type, String mode, String perspective);
>
> Hope I have helped you this time,
> Darins
>
> "Christian Sell" <christian.sell@netcologne.de> wrote in message
> news:bc6tiv$afb$1@rogue.oti.com...
>
>>huh? You lost me..
>>
>>1. What launch configuration dialog are you talking about? The only one
>>I know is when creating a launch configuration. That is one step too far.
>>
>>2. In that dialog, all I can specify is which perspective to switch to
>>when the launch is run. Among the perspective choices, there is a
>>"default" choice. It is the value of that "default" choice that I want
>>to determine in advance!
>>
>>3. I want to do this programmatically, i.e. along with my
>>ILaunchConfigurationDelegate, i want to specify what "default" stands
>>for. I have found no way to do this.
>>
>>thanks,
>>Christian
>>
>>Darin Swanson wrote:
>>
>>>In the launch configuration dialog, select the launch configuration type
>
> and
>
>>>then set the default perspective for the launch mode.
>>>
>>>HTH
>>>Darins
>>>
>>>"Christian Sell" <cse@dynabean.de> wrote in message
>>>news:bc5jqa$e3c$1@rogue.oti.com...
>>>
>>>
>>>>Hello,
>>>>
>>>>can somebody please give me a hint how to specify the default
>>>>perspective for a given launch type?
>>>>
>>>>thanks,
>>>>Christian Sell
>>>>
>>>
>>>
>>>
>>
>
>
Re: default perspective for launch [message #70752 is a reply to message #70739] Wed, 11 June 2003 10:02 Go to previous message
Eclipse UserFriend
Originally posted by: darin_swanson.oti.com

Yes, in 3.0 using DebugUITools.setLaunchPerspective(ILaunchConfigurationType
type, String mode, String perspective) you set the default perspective for
the type and the mode.
Glad to see we have anticipated you needs :-)

Darins

"Christian Sell" <cse@dynabean.de> wrote in message
news:bc7aul$nqe$1@rogue.oti.com...
> I have meanwhile looked into the source code of
> org.eclipse.debug.internal.ui.launchConfigurations.Perspecti veManager,
> and it appears to me that the preference keys you mention:
>
> IDebugUIConstants.PREF_SHOW_DEBUG_PERSPECTIVE_DEFAULT and
> IDebugUIConstants.PREF_SHOW_RUN_PERSPECTIVE_DEFAULT
>
> have to be set in the PreferenceStore of the DebugUIPlugin and will thus
> have global effect for all launches. I was expecting to be able to
> specify the meaning of "default" in the context of a specifiy launch
> type (which would make sense IMO). That does not seem possible - does
> 3.0 allow that?
>
> What I am doing now is subclass CommonTab in my
> LaunchconfigurationTabGroup, and implement the seDefaults method such:
> config.setAttribute(IDebugUIConstants.ATTR_TARGET_DEBUG_PERS PECTIVE,
> MY_PERSPECTIVE_ID);
> config.setAttribute(IDebugUIConstants.ATTR_TARGET_RUN_PERSPE CTIVE,
> MY_PERSPECTIVE_ID);
>
> I dont like that solution, but it seems the only one for now.
>
> thanks,
> Christian
>
> Darin Swanson wrote:
> > Ok..in the future we both need to specify which build / stream of
Eclipse we
> > are talking about. :-)
> >
> > I was talking about 3.0...it appears you were talking about 2.1? And I
> > assumed you were using the UI...you did not state that you wanted to do
it
> > programmatically.
> >
> > In the 2.1 code stream you will need to set the debug preference for:
> > IDebugUIConstants.PREF_SHOW_DEBUG_PERSPECTIVE_DEFAULT and
> > IDebugUIConstants.PREF_SHOW_RUN_PERSPECTIVE_DEFAULT.
> > See the DebugPreferencePage as an example of where this is done
currently.
> > In 3.0 you specify the perspective for the launch configuration type
> > directly using
DebugUITools.setLaunchPerspective(ILaunchConfigurationType
> > type, String mode, String perspective);
> >
> > Hope I have helped you this time,
> > Darins
> >
> > "Christian Sell" <christian.sell@netcologne.de> wrote in message
> > news:bc6tiv$afb$1@rogue.oti.com...
> >
> >>huh? You lost me..
> >>
> >>1. What launch configuration dialog are you talking about? The only one
> >>I know is when creating a launch configuration. That is one step too
far.
> >>
> >>2. In that dialog, all I can specify is which perspective to switch to
> >>when the launch is run. Among the perspective choices, there is a
> >>"default" choice. It is the value of that "default" choice that I want
> >>to determine in advance!
> >>
> >>3. I want to do this programmatically, i.e. along with my
> >>ILaunchConfigurationDelegate, i want to specify what "default" stands
> >>for. I have found no way to do this.
> >>
> >>thanks,
> >>Christian
> >>
> >>Darin Swanson wrote:
> >>
> >>>In the launch configuration dialog, select the launch configuration
type
> >
> > and
> >
> >>>then set the default perspective for the launch mode.
> >>>
> >>>HTH
> >>>Darins
> >>>
> >>>"Christian Sell" <cse@dynabean.de> wrote in message
> >>>news:bc5jqa$e3c$1@rogue.oti.com...
> >>>
> >>>
> >>>>Hello,
> >>>>
> >>>>can somebody please give me a hint how to specify the default
> >>>>perspective for a given launch type?
> >>>>
> >>>>thanks,
> >>>>Christian Sell
> >>>>
> >>>
> >>>
> >>>
> >>
> >
> >
>
Previous Topic:How to attach a SRC folder to a IJavaProject
Next Topic:Urgent: Unrecoverable crash on Linux
Goto Forum:
  


Current Time: Sat May 10 04:39:27 EDT 2025

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

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

Back to the top