|
|
Re: how to populate WizardPage at view time? [message #83263 is a reply to message #81643] |
Wed, 16 April 2008 15:09 |
Eclipse User |
|
|
|
Originally posted by: rherrmann.innoopract.com
David,
as you are using a WizardDialog, have you tried to use
WizardDialog#addPageChangingListener ?
Cheers,
Rüdiger
David Donohue wrote:
> Well for others w/ this problem:
> This solution applies for wizards in RAP version of JFace wizards, but
> likely applies to RCP version as well.
>
> As far as I could find, it turns out that the wizard infrastructure does
> not notify either the IWizard nor the IWizardPage when the next button
> is pressed. So I had to subclass the WizardDialog like this
>
> public class DynaWizardDialog extends WizardDialog {
>
> public DynaWizardDialog(Shell parentShell, IWizard newWizard) {
> super(parentShell, newWizard);
> // TODO Auto-generated constructor stub
> }
>
> @Override
> public void nextPressed() {
> IWizardPage nextPage = getCurrentPage().getNextPage();
> if (nextPage instanceof DynaWizardPage) {
> ((DynaWizardPage)nextPage).onEnterPage();
> }
> super.nextPressed();
> }
> }
>
> and added a method to my own subclass of WizardPage, to receive the
> onEnterPage call:
>
> public class DynaWizardPage extends WizardPage {
>
> public void onEnterPage() {
> ...
> }
> }
>
|
|
|
Re: how to populate WizardPage at view time? [message #83511 is a reply to message #83263] |
Fri, 18 April 2008 05:06 |
|
Rüdiger,
> as you are using a WizardDialog, have you tried to use
> WizardDialog#addPageChangingListener ?
You statement above implies that we can put wizard in container other than
Dialog, is it possible to put it in IEditorPart or IViewPart for instance ?
Regards,
Setya
|
|
|
Re: how to populate WizardPage at view time? [message #83802 is a reply to message #83511] |
Mon, 21 April 2008 09:52 |
Eclipse User |
|
|
|
Originally posted by: rherrmann.innoopract.com
Hi Setya,
with a custom implementation of IWizardContainer it is possible to
place a wizard in a container other than a dialog.
Though technically possible, I am not sure if this is something a
user would expect.
Cheers,
Rüdiger
Setya wrote:
> Rüdiger,
>
>> as you are using a WizardDialog, have you tried to use
>> WizardDialog#addPageChangingListener ?
>
> You statement above implies that we can put wizard in container other
> than Dialog, is it possible to put it in IEditorPart or IViewPart for
> instance ?
>
> Regards,
>
> Setya
>
|
|
|
Powered by
FUDForum. Page generated in 0.02051 seconds