Replacing the debug perspective with my own [message #336351] |
Tue, 09 June 2009 09:02  |
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 #336398 is a reply to message #336387] |
Wed, 10 June 2009 04:01   |
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 13:40  |
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
|
|
|
Powered by
FUDForum. Page generated in 0.05842 seconds