Wizard Second Page Not Displaying [message #249873] |
Sat, 05 June 2004 13:48  |
Eclipse User |
|
|
|
Originally posted by: ram.novedea.com
Hi,
I am developing Wizard pages. I have two pages that are needed on the
wizard. I tested each page individually and they show up properly. But
when I activate them both and click next on the first page, the second
page is blank. I am puzzled with this behaviour. Why the second page is
not getting displayed when it works fine individually. Am I missing
something?
I would appreciate your help.
|
|
|
|
Re: Wizard Second Page Not Displaying [message #333412 is a reply to message #249888] |
Tue, 09 December 2008 19:07  |
Eclipse User |
|
|
|
Hi,
it would have been helpful if you had posted the solution to your
problem, although it might have been a stupid error, because it would
have saved me a whole day of debugging and searching.
Anyway, I know this is a very old message but for everyone who runs into
the same problem, I hope I can give you a pointer in the right direction.
The reason for that behavior was a small mistake in the
WizardPage#createControl(Composite) method. My method looked like this:
@Override
public void createControl(Composite parent) {
Composite baseComposite = new Composite(parent,SWT.NULL);
//...
setPageComplete(false);
setControl(parent);
}
The error is passing "parent" as an argument to the setControl method
which should be the "baseComposite" in my case. Stupid error but hard to
find.
I hope this will help anyone experiencing the same behavior.
Cheers,
Dominik
On 05.06.2004 14:37, Ramdhan Yadav Kotamaraja wrote:
> Sorry, it was a code issue and now solved.
>
> Ramdhan Yadav Kotamaraja wrote:
>
>> Hi,
>
>> I am developing Wizard pages. I have two pages that are needed on the
>> wizard. I tested each page individually and they show up properly. But
>> when I activate them both and click next on the first page, the second
>> page is blank. I am puzzled with this behaviour. Why the second page is
>> not getting displayed when it works fine individually. Am I missing
>> something?
>
>> I would appreciate your help.
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.05619 seconds