Home » Eclipse Projects » Rich Client Platform (RCP) » Intro shown on every startup of RCP
| |
Re: Intro shown on every startup of RCP [message #435706 is a reply to message #435631] |
Mon, 22 August 2005 06:06   |
Eclipse User |
|
|
|
Thanks for the tip Alex.
I also had the same problem with Eclipse, and I know from other developers
that they are getting the same problem.
Even more, if you create a sample RCP application from the wizards, and
declare the default intro page (org.eclipse.platform), and export it using
the product export wizard, then you'll see that the intro page always
appear! And is a project very, very simple.
Now, I took a look and examined the code of the openIntro method and it
seems that the error is that Eclipse is not able to save the API prefs in
the PrefUtils.saveAPIPrefs() call. There is no other possibility.
To fix this, I created my own check mechanism with my own preferences
file, and all worked fine. But the bug is there yet.
Regards,
Martin
|
|
|
Re: Intro shown on every startup of RCP [message #435711 is a reply to message #435706] |
Mon, 22 August 2005 08:29   |
Eclipse User |
|
|
|
mpermar wrote:
> Thanks for the tip Alex.
>
> I also had the same problem with Eclipse, and I know from other
> developers that they are getting the same problem.
> Even more, if you create a sample RCP application from the wizards, and
> declare the default intro page (org.eclipse.platform), and export it
> using the product export wizard, then you'll see that the intro page
> always appear! And is a project very, very simple.
>
> Now, I took a look and examined the code of the openIntro method and it
> seems that the error is that Eclipse is not able to save the API prefs
> in the PrefUtils.saveAPIPrefs() call. There is no other possibility.
> To fix this, I created my own check mechanism with my own preferences
> file, and all worked fine. But the bug is there yet.
>
> Regards,
>
> Martin
>
Hi Martin
Its exactly the same problem in my RCP. Did you write a bug report?
Regards,
Dirk
|
|
| | | | |
Re: Intro shown on every startup of RCP [message #435961 is a reply to message #435878] |
Fri, 26 August 2005 03:43  |
Eclipse User |
|
|
|
Hi.
You don't need to close the intro view manually. You can override the
openIntro() method in your window workbench advisor, and if the intro view
didn't exists, then you do not call super.openIntro() method, otherwise
you continue with your process.
Regards.
> mpermar wrote:
>> Nice work.
>>
>> I also have voted and commented.
>>
>> Martin
>>
> yes. I encountered the same problem.
> While can't wait for a fix, I worked out a workaround for the issue. The
> main steps are:
> 1. remember whether there is intro view when the RCP exits
> 2. next time the RCp starts, check the remembered info, and if no intro
> view, then alrways close the into view immediately
> 3. otherwise, just put the into view into the standby mode.
> Note: you alwyas want to let the intro view be put into the standby mode
> first even if it needs to be close because otherwise those other fast
> view such as search help etc will have the exact problem as the intro view.
> Thanks.
> Bing.
|
|
|
Goto Forum:
Current Time: Sat Aug 30 09:06:04 EDT 2025
Powered by FUDForum. Page generated in 0.04629 seconds
|