Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Setting the default perspective
Setting the default perspective [message #448779] Tue, 02 May 2006 06:44 Go to next message
Eclipse UserFriend
Hi,

I have created new perspective for my plugin, but I want not only to
display it on user's demand, but I want it to be set on the start up of
my plugin. Can anyone help me, how achieve this?

Thanks in advance for your help,
Jakub Jurkiewicz
Re: Setting the default perspective [message #448783 is a reply to message #448779] Tue, 02 May 2006 08:14 Go to previous messageGo to next message
Eclipse UserFriend
Jakub Jurkiewicz wrote:
> Hi,
>
> I have created new perspective for my plugin, but I want not only to
> display it on user's demand, but I want it to be set on the start up of
> my plugin. Can anyone help me, how achieve this?
>
> Thanks in advance for your help,
> Jakub Jurkiewicz

default perspectives are per-product, not per plugin. You would have to
update plugins/org.eclipse.sdk_3.*/plugin_customization.ini
the line:
org.eclipse.ui/defaultPerspectiveId=org.eclipse.jdt.ui.JavaP erspective

Later,
PW
Re: Setting the default perspective [message #448790 is a reply to message #448783] Tue, 02 May 2006 10:01 Go to previous messageGo to next message
Eclipse UserFriend
There is also WorkbenchAdvisor.getInitialWindowPerspectiveId(), but I
think that method is only invoked when there is no saved state.

Paul Webster wrote:
> Jakub Jurkiewicz wrote:
>
>> Hi,
>>
>> I have created new perspective for my plugin, but I want not only to
>> display it on user's demand, but I want it to be set on the start up
>> of my plugin. Can anyone help me, how achieve this?
>>
>> Thanks in advance for your help,
>> Jakub Jurkiewicz
>
>
> default perspectives are per-product, not per plugin. You would have to
> update plugins/org.eclipse.sdk_3.*/plugin_customization.ini
> the line:
> org.eclipse.ui/defaultPerspectiveId=org.eclipse.jdt.ui.JavaP erspective
>
> Later,
> PW
Re: Setting the default perspective [message #449406 is a reply to message #448783] Fri, 12 May 2006 03:22 Go to previous messageGo to next message
Eclipse UserFriend
Paul Webster napisał(a):
> Jakub Jurkiewicz wrote:
>> Hi,
>>
>> I have created new perspective for my plugin, but I want not only to
>> display it on user's demand, but I want it to be set on the start up
>> of my plugin. Can anyone help me, how achieve this?
>>
>> Thanks in advance for your help,
>> Jakub Jurkiewicz
>
> default perspectives are per-product, not per plugin. You would have to
> update plugins/org.eclipse.sdk_3.*/plugin_customization.ini
> the line:
> org.eclipse.ui/defaultPerspectiveId=org.eclipse.jdt.ui.JavaP erspective
>
> Later,
> PW

When I start eclipse this change in plugin_customization.ini works, but
when I run my plugin it doesn't work anymore.
Any other ideas?

Jakub Jurkiewicz
Re: Setting the default perspective [message #449420 is a reply to message #449406] Fri, 12 May 2006 14:09 Go to previous message
Eclipse UserFriend
Try preferences.ini in your plug-in. (See Section 19.2 and 13.5 of
McAffer and Lemiux's RCP book)
Previous Topic:A common problem
Next Topic:F1 Help question
Goto Forum:
  


Current Time: Sun Aug 31 07:20:47 EDT 2025

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

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

Back to the top