Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » RCP with an Intro / Welcome page
RCP with an Intro / Welcome page [message #536256] Thu, 27 May 2010 13:36 Go to next message
Vincenzo Caselli is currently offline Vincenzo CaselliFriend
Messages: 51
Registered: July 2009
Member
I created a new plug-in with an Intro.
The Welcome page shows correctly, can be closed and reopened from Menu, ok for now.
If then I add a View in the Perspective, then the view does not show. Only if I change
configurer.setSaveAndRestore(true);
to
configurer.setSaveAndRestore(false);
it shows.
But this way, when I try to reopen the Welcome page, the welcome is blank and it shows next to the View, not covering over all the window ad usual.
What am I doing wrong?
Thanks
Vincenzo
Re: RCP with an Intro / Welcome page [message #541344 is a reply to message #536256] Sun, 20 June 2010 10:14 Go to previous messageGo to next message
Wim Jongman is currently offline Wim JongmanFriend
Messages: 423
Registered: July 2009
Senior Member
Hi Vincenzo,

If you use setSaveAndRestore(true) and the view was not open, then it will
not reopen. If you want to show the view again, start with -clean. Please
make sure to initialize the perspective in the generated Perspective class.

--

Best Regards,
Wim Jongman
-- ASCII question, get an ANSI!
(Eclipse Old Skool Quote Service)

> I created a new plug-in with an Intro.
> The Welcome page shows correctly, can be closed and reopened from Menu, ok
for now.
> If then I add a View in the Perspective, then the view does not show. Only
if I change
> configurer.setSaveAndRestore(true);
> to
> configurer.setSaveAndRestore(false);
> it shows.
> But this way, when I try to reopen the Welcome page, the welcome is blank
and it shows next to the View, not covering over all the window ad usual.
> What am I doing wrong?
> Thanks
> Vincenzo
Re: RCP with an Intro / Welcome page [message #541402 is a reply to message #541344] Sun, 20 June 2010 22:46 Go to previous message
Vincenzo Caselli is currently offline Vincenzo CaselliFriend
Messages: 51
Registered: July 2009
Member
Hi Wim,
what you say is clear, but maybe I did not explain well the problem I am encountering.
I would like to have an application with both the Welcome page (with the possibility to recall it with the Help > Welcome menu item if the welcome page has been closed) and one or more custom Views, Perspectives and so on. That's indeed what Eclipse IDE does.

So I started with the "RCP Application with an Intro" template (which comes with configurer.setSaveAndRestore(true)).

Then tried to add a custom View. This was done via the plugin.xml by:
- adding a view (ViewA)
- adding a perspectiveExtension
- adding the ViewA to the perspectiveExtension
this way (which normally works, when saveAndRestore is false) I cannot see ViewA.
Consider that the same result is obtained if the ViewA is not declaratively added via the perspectiveExtension, but directly added by code in the generated Perspective class.
So the question is: what is the correct way to show a View starting from the "RCP Application with an Intro" template with saveAndRestore = true?
Thanks
Best regards

Vincenzo Caselli


Previous Topic:No features in Target Platform when using p2 sites
Next Topic:Sleeping Jobs in ProgressView
Goto Forum:
  


Current Time: Tue Apr 23 11:22:26 GMT 2024

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

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

Back to the top