WizardPage.finish() when user clicks on NEXT [message #293170] |
Wed, 19 October 2005 10:10  |
Eclipse User |
|
|
|
Originally posted by: fabian.eberhardt.sap.com
Hi,
I have a Wizard with two WizardPages (CreateProjectPage and
CreateWorkingsetPage). The first page create three new projects. The
second page create a WorkingSet (user sets name and select projects).
At the moment I can call the CreateProjectPage.finish() and
CreateWorkingsetPage.finish() in the method Wizard.performFinish(). With
other words: when user clicks FINISH.
But the CreateProjectPage.finish() have to be called when User clicks
NEXT to come to the second page.
I use the extensionPoints and have therefore no extra WizardDialog. Thus
i can't make use of the WizardDialog.nextPressed().
Any ideas?
Thanks.
Regards,
Fabian
|
|
|
|
|
|
|
|
|
|
|
Re: WizardPage.finish() when user clicks on NEXT [message #293223 is a reply to message #293221] |
Thu, 20 October 2005 05:00  |
Eclipse User |
|
|
|
Originally posted by: arne.anka.ginguppin.de
i use another hack, not very pretty imo but it works (and at least nobody
came up with a better solution this thread ;-)
both methods are from my last page. i need to create two objects and show
their contents for a final confirmation (on cancle i dismiss the newly
created objects)
public boolean isPageComplete(){
if(isCurrentPage()) return true;
return false;
}
public boolean canFlipToNextPage(){
//create objects
LongtermNewWizard wiz=((LongtermNewWizard)getWizard());
wiz.customer=new Customer(a, lot, of, params);
wiz.boat=new Boat(a, lot, of, params);
//show content
epc.setPersonalText(wiz.customer.getDataAsString());
epc.setBoatText(wiz.boat.getDataAsString());
//we don't want [Next Page] to be enabled
return false;
}
maybe it helps ...
|
|
|
Powered by
FUDForum. Page generated in 0.06918 seconds