RCP with an Intro / Welcome page [message #536256] |
Thu, 27 May 2010 09:36  |
Eclipse User |
|
|
|
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 06:14   |
Eclipse User |
|
|
|
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 18:46  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03780 seconds