Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Intro shown on every startup of RCP
Intro shown on every startup of RCP [message #435625] Fri, 19 August 2005 08:35 Go to next message
Dirk Segelhorst is currently offline Dirk SegelhorstFriend
Messages: 26
Registered: July 2009
Junior Member
Hi,

having migrated my RCP from eclipse 3.0 to 3.1, my intro is shown now on
every startup. Is there any 'switch' to stop this behaviour?

Thanks,

Dirk
Re: Intro shown on every startup of RCP [message #435631 is a reply to message #435625] Fri, 19 August 2005 13:16 Go to previous messageGo to next message
Alex Blewitt is currently offline Alex BlewittFriend
Messages: 946
Registered: July 2009
Senior Member
It probably depends on your workbench advisor that you've written for the RCP (and indeed, assuming you've got one :-)

Have a look at the openIntro() method of WorkbenchWindowAdvisor:

http://help.eclipse.org/help31/topic/org.eclipse.platform.do c.isv/reference/api/org/eclipse/ui/application/WorkbenchWind owAdvisor.html#openIntro()

"The default implementation opens the intro in the first window provided if the preference IWorkbenchPreferences.SHOW_INTRO is true. If an intro is shown then this preference will be set to false. Subsequently, and intro will be shown only if WorkbenchConfigurer.getSaveAndRestore() returns true and the introduction was visible on last shutdown. Subclasses may override."

This changed from 3.0 to 3.1 (before, it was elsewhere http://help.eclipse.org/help31/topic/org.eclipse.platform.do c.isv/reference/api/org/eclipse/ui/application/WorkbenchAdvi sor.html#openIntro(org.eclipse.ui.application.IWorkbenchWindowConfigurer)

You should be able to continue to use the old mechanism, but only if you've got the compatibility plugin loaded. If you're looking at supporting 3.1+, then switch to using the new method.

If you're already doing this, check what the preference for the IWorkbenchPreferences.SHOW_INTRO is being set to, and if it's being saved appropriately. (It could be that you're debugging and cleaning the workspace each time, for example ...)
Re: Intro shown on every startup of RCP [message #435706 is a reply to message #435631] Mon, 22 August 2005 10:06 Go to previous messageGo to next message
Martín Pérez Mariñán is currently offline Martín Pérez MariñánFriend
Messages: 62
Registered: July 2009
Member
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 12:29 Go to previous messageGo to next message
Dirk Segelhorst is currently offline Dirk SegelhorstFriend
Messages: 26
Registered: July 2009
Junior Member
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 #435751 is a reply to message #435711] Mon, 22 August 2005 20:50 Go to previous messageGo to next message
Martín Pérez Mariñán is currently offline Martín Pérez MariñánFriend
Messages: 62
Registered: July 2009
Member
No.

First, I thought that it could be my mistake, but after seeing some forum
posts, it seems that there is a lot of people who are getting the same
mistake.

Regards,

Martin
Re: Intro shown on every startup of RCP [message #435753 is a reply to message #435751] Tue, 23 August 2005 05:51 Go to previous messageGo to next message
Dirk Segelhorst is currently offline Dirk SegelhorstFriend
Messages: 26
Registered: July 2009
Junior Member
mpermar wrote:
> No.
> First, I thought that it could be my mistake, but after seeing some
> forum posts, it seems that there is a lot of people who are getting the
> same mistake.
>
> Regards,
>
> Martin
>

Hi Martin,

I reported a new bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=107698

Let's wait and see if it will be affirmed by the eclipse developers.

Regards,

Dirk
Re: Intro shown on every startup of RCP [message #435755 is a reply to message #435753] Tue, 23 August 2005 06:21 Go to previous messageGo to next message
Martín Pérez Mariñán is currently offline Martín Pérez MariñánFriend
Messages: 62
Registered: July 2009
Member
Nice work.

I also have voted and commented.

Martin
Re: Intro shown on every startup of RCP [message #435878 is a reply to message #435755] Thu, 25 August 2005 17:06 Go to previous messageGo to next message
Bing Xu is currently offline Bing XuFriend
Messages: 11
Registered: July 2009
Junior Member
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.
Re: Intro shown on every startup of RCP [message #435961 is a reply to message #435878] Fri, 26 August 2005 07:43 Go to previous message
Martín Pérez Mariñán is currently offline Martín Pérez MariñánFriend
Messages: 62
Registered: July 2009
Member
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.
Previous Topic:Setting State of Actions and Menu Items
Next Topic:Plug-in export problem.
Goto Forum:
  


Current Time: Mon Dec 09 10:28:22 GMT 2024

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

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

Back to the top