Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Replacing the debug perspective with my own
Replacing the debug perspective with my own [message #336351] Tue, 09 June 2009 13:02 Go to next message
Eclipse User
Originally posted by: subs._nospam_consertum.com

Hi,

I wish to replace the standard Debug perspective
(org.eclipse.debug.ui.DebugPerspective) wiht my own.

I have created the perspective and it works as I want, but I can't work
out how to make it the 'default'. I can change it through the UI, but I
want to set it programmatically.

Can somebody point me in the right direction?

Thanks
--
Derek
Re: Replacing the debug perspective with my own [message #336387 is a reply to message #336351] Wed, 10 June 2009 03:06 Go to previous messageGo to next message
Eclipse User
Originally posted by: eclipse-news.rizzoweb.com

Derek wrote:
> Hi,
>
> I wish to replace the standard Debug perspective
> (org.eclipse.debug.ui.DebugPerspective) wiht my own.
>
> I have created the perspective and it works as I want, but I can't work
> out how to make it the 'default'. I can change it through the UI, but I
> want to set it programmatically.
>
> Can somebody point me in the right direction?

I'm not 100% sure what you mean by making it the "default." Do you mean
that whenever you launch a program in debug mode, it should switch to
your custom perspective? If so, you can control that in the Preferences;
just type "perspectives" in the search field of the Preferences dialog
and you'll find the appropriate page.

By the way, another option would be to just customize the Debug
perspective the way you want it and then save it under the same name.

Hope this helps,
Eric
Re: Replacing the debug perspective with my own [message #336398 is a reply to message #336387] Wed, 10 June 2009 08:01 Go to previous messageGo to next message
Eclipse User
Originally posted by: subs._nospam_consertum.com

Hi Eric,

Thanks for the tip, but that doesn't help. See comments below:

Eric Rizzo wrote:
> Derek wrote:
>> Hi,
>>
>> I wish to replace the standard Debug perspective
>> (org.eclipse.debug.ui.DebugPerspective) wiht my own.
>>
>> I have created the perspective and it works as I want, but I can't
>> work out how to make it the 'default'. I can change it through the UI,
>> but I want to set it programmatically.
>>
>> Can somebody point me in the right direction?
>
> I'm not 100% sure what you mean by making it the "default." Do you mean
> that whenever you launch a program in debug mode, it should switch to
> your custom perspective?
Yes, this is what I want.
If so, you can control that in the Preferences;
> just type "perspectives" in the search field of the Preferences dialog
> and you'll find the appropriate page.
No, I want to do this programmatically. I want this behavior for the
users of my Eclipse-based product.
>
> By the way, another option would be to just customize the Debug
> perspective the way you want it and then save it under the same name.
>
> Hope this helps,
> Eric

--
Derek
Re: Replacing the debug perspective with my own [message #336452 is a reply to message #336398] Fri, 12 June 2009 17:40 Go to previous message
Eclipse User
Originally posted by: eclipse-news.rizzoweb.com

Derek wrote:
> Hi Eric,
>
> Thanks for the tip, but that doesn't help. See comments below:
>
> Eric Rizzo wrote:
>> Derek wrote:
>>> Hi,
>>>
>>> I wish to replace the standard Debug perspective
>>> (org.eclipse.debug.ui.DebugPerspective) wiht my own.
>>>
>>> I have created the perspective and it works as I want, but I can't
>>> work out how to make it the 'default'. I can change it through the
>>> UI, but I want to set it programmatically.
>>>
>>> Can somebody point me in the right direction?
>>
>> I'm not 100% sure what you mean by making it the "default." Do you
>> mean that whenever you launch a program in debug mode, it should
>> switch to your custom perspective?
> Yes, this is what I want.
> If so, you can control that in the Preferences;
>> just type "perspectives" in the search field of the Preferences dialog
>> and you'll find the appropriate page.
> No, I want to do this programmatically. I want this behavior for the
> users of my Eclipse-based product.

I would take a look at the code of that preferences page to see what it
does behind the scenes. Use Plug-in Spy to find the class that
implements the preferences page.
http://www.eclipse.org/pde/incubator/spy/

Hope this helps,
Eric
Previous Topic:Resource tree locked?
Next Topic:[Update Site] Creating required dependencies
Goto Forum:
  


Current Time: Sat Oct 25 03:01:13 GMT 2014

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

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