Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » (newbie) Using VE to create Wizard pages
(newbie) Using VE to create Wizard pages [message #102712] Wed, 17 August 2005 20:13 Go to next message
Eclipse UserFriend
Originally posted by: busch.roguewave.com

Hi Folks,

I just downloaded VE and started working with it to help speed up
development of a multi-page wizard plugin project. I've skimmed through
the tutorial here
http://www-128.ibm.com/developerworks/opensource/library/os- ecvisual/ and
got my wizard to display a panel just fine but it seems like I lose the
wizard functionality of Back Next Finish Cancel buttons as well as the
general wizard look and feel.

Am I doing something wrong? Is there a tutorial I can read to figure this
out?

Thanks!

Mike
Re: (newbie) Using VE to create Wizard pages [message #102778 is a reply to message #102712] Thu, 18 August 2005 14:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jdstinto.us.ibm.com

Hi Mike,

I have a few questions for you to help me understand your problem a
little better. Also it looks like that tutorial is pretty old (0.5
release time frame) we are up to 1.1, so you may actually find better
help inside of eclipse (Help->Help Contents->Visual Editor for Java User
Guide).

1) I looked through the tutorial as well, and I did not see any steps
creating a wizard, so the wizard you mention is the one you are trying
to create for your project, correct?

2) If so, When you say you lose the functionality of the Back, Next,
Finish, and Cancel buttons what does that entail. Each of these buttons
will need event listeners on them, and these will only work when running
your program (for instance Run As->Java Bean). During design time they
will be inactive.

3) When you say you lose the general look and feel what specifically is
this. I see you are dropping a panel, so it will not have the same
borders and looks as a frame, is that what you mean? If you mean
general Java look and feel check out Window->Preferences->Java->Visual
Editor and notice the Swing Look and feel box that you can select a
specific look and feel with.

If that's enough to get you going great, otherwise post back with some
follow up info and we'll see what we can do for you.

Good luck!
-Jon

> Hi Folks,
>
> I just downloaded VE and started working with it to help speed up
> development of a multi-page wizard plugin project. I've skimmed through
> the tutorial here
> http://www-128.ibm.com/developerworks/opensource/library/os- ecvisual/ and
> got my wizard to display a panel just fine but it seems like I lose the
> wizard functionality of Back Next Finish Cancel buttons as well as the
> general wizard look and feel.
>
> Am I doing something wrong? Is there a tutorial I can read to figure this
> out?
>
> Thanks!
>
> Mike
Re: (newbie) Using VE to create Wizard pages [message #102798 is a reply to message #102778] Thu, 18 August 2005 14:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: busch.roguewave.com

On Thu, 18 Aug 2005 10:19:12 -0400, Jonathan Stinton wrote:

Answers inline:


> 1) I looked through the tutorial as well, and I did not see any steps
> creating a wizard, so the wizard you mention is the one you are trying
> to create for your project, correct?
>
Correct. I started a new "Hello World" plugin and pointed the Action
class's run() method to instantiate my wizard class. The wizard class then
instantiates the wizard page classes.

> 2) If so, When you say you lose the functionality of the Back, Next,
> Finish, and Cancel buttons what does that entail. Each of these buttons
> will need event listeners on them, and these will only work when running
> your program (for instance Run As->Java Bean). During design time they
> will be inactive.
>
Wizard pages bring a certain amount of "look and feel" as well as
functionality to the party. Just by extending the WizardPage class you
should automatically get a dialog with "Back" "Next" etc. buttons, and they
have default behavior.

When I follow that tutorial and drop a Shell on the canvas and instantiate
it in the createControl() method, it gives me a blank dialog with no wizard
functionality.

> 3) When you say you lose the general look and feel what specifically is
> this. I see you are dropping a panel, so it will not have the same
> borders and looks as a frame, is that what you mean? If you mean
> general Java look and feel check out Window->Preferences->Java->Visual
> Editor and notice the Swing Look and feel box that you can select a
> specific look and feel with.
>

Specifically, wizard pages have an area below the title bar that contains a
description of what the page does as well as an icon. While I know I can
re-create this behavior, why should I have to when I should get it for
free?

I didn't see anything in the docs that addresses my questions but I'll go
back through them and see if I can find more.

Thanks!
Re: (newbie) Using VE to create Wizard pages [message #102801 is a reply to message #102798] Thu, 18 August 2005 15:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jdstinto.us.ibm.com

Mike,

This explains a lot. You had mentioned panels and I figured you were
talking about Swing JPanels (based on the tutorial link) and hand
building the whole wizard.

What is really going is on it seems is that you are trying to create a
JFace Wizard. Unfortunately right now, we don't directly provde this
fuctionality. As of 1.1 we have Views and Editor, we hope by 1.2 to
provide full Wizard support.

The way around this for now is to create your custom composite with
everything you want in it, this will allow you to use the VE. Then in
another class extend WizardPage and use the provided fields you want
there. In your custom WizardPage you can embed your custom composite
[in the createControl method I believe you would use new
customComposite(parent, style)] and that should do the trick I think.

Let me know how it works, some of the other developers might have some
more help if you need it.

Thanks,
Jon


> On Thu, 18 Aug 2005 10:19:12 -0400, Jonathan Stinton wrote:
>
> Answers inline:
>
>
>
>>1) I looked through the tutorial as well, and I did not see any steps
>>creating a wizard, so the wizard you mention is the one you are trying
>>to create for your project, correct?
>>
>
> Correct. I started a new "Hello World" plugin and pointed the Action
> class's run() method to instantiate my wizard class. The wizard class then
> instantiates the wizard page classes.
>
>
>>2) If so, When you say you lose the functionality of the Back, Next,
>>Finish, and Cancel buttons what does that entail. Each of these buttons
>>will need event listeners on them, and these will only work when running
>>your program (for instance Run As->Java Bean). During design time they
>>will be inactive.
>>
>
> Wizard pages bring a certain amount of "look and feel" as well as
> functionality to the party. Just by extending the WizardPage class you
> should automatically get a dialog with "Back" "Next" etc. buttons, and they
> have default behavior.
>
> When I follow that tutorial and drop a Shell on the canvas and instantiate
> it in the createControl() method, it gives me a blank dialog with no wizard
> functionality.
>
>
>>3) When you say you lose the general look and feel what specifically is
>>this. I see you are dropping a panel, so it will not have the same
>>borders and looks as a frame, is that what you mean? If you mean
>>general Java look and feel check out Window->Preferences->Java->Visual
>>Editor and notice the Swing Look and feel box that you can select a
>>specific look and feel with.
>>
>
>
> Specifically, wizard pages have an area below the title bar that contains a
> description of what the page does as well as an icon. While I know I can
> re-create this behavior, why should I have to when I should get it for
> free?
>
> I didn't see anything in the docs that addresses my questions but I'll go
> back through them and see if I can find more.
>
> Thanks!
>
Re: (newbie) Using VE to create Wizard pages [message #102819 is a reply to message #102798] Thu, 18 August 2005 15:14 Go to previous message
Ben is currently offline BenFriend
Messages: 14
Registered: July 2009
Junior Member
> When I follow that tutorial and drop a Shell on the canvas and instantiate
> it in the createControl() method, it gives me a blank dialog with no wizard
> functionality.

Shouldn't you instead make a Panel, and insert that in creteControl()?
Re: (newbie) Using VE to create Wizard pages [message #610330 is a reply to message #102712] Thu, 18 August 2005 14:19 Go to previous message
Jonathan Stinton is currently offline Jonathan StintonFriend
Messages: 10
Registered: July 2009
Junior Member
Hi Mike,

I have a few questions for you to help me understand your problem a
little better. Also it looks like that tutorial is pretty old (0.5
release time frame) we are up to 1.1, so you may actually find better
help inside of eclipse (Help->Help Contents->Visual Editor for Java User
Guide).

1) I looked through the tutorial as well, and I did not see any steps
creating a wizard, so the wizard you mention is the one you are trying
to create for your project, correct?

2) If so, When you say you lose the functionality of the Back, Next,
Finish, and Cancel buttons what does that entail. Each of these buttons
will need event listeners on them, and these will only work when running
your program (for instance Run As->Java Bean). During design time they
will be inactive.

3) When you say you lose the general look and feel what specifically is
this. I see you are dropping a panel, so it will not have the same
borders and looks as a frame, is that what you mean? If you mean
general Java look and feel check out Window->Preferences->Java->Visual
Editor and notice the Swing Look and feel box that you can select a
specific look and feel with.

If that's enough to get you going great, otherwise post back with some
follow up info and we'll see what we can do for you.

Good luck!
-Jon

> Hi Folks,
>
> I just downloaded VE and started working with it to help speed up
> development of a multi-page wizard plugin project. I've skimmed through
> the tutorial here
> http://www-128.ibm.com/developerworks/opensource/library/os- ecvisual/ and
> got my wizard to display a panel just fine but it seems like I lose the
> wizard functionality of Back Next Finish Cancel buttons as well as the
> general wizard look and feel.
>
> Am I doing something wrong? Is there a tutorial I can read to figure this
> out?
>
> Thanks!
>
> Mike
Re: (newbie) Using VE to create Wizard pages [message #610331 is a reply to message #102778] Thu, 18 August 2005 14:34 Go to previous message
Eclipse UserFriend
Originally posted by: busch.roguewave.com

On Thu, 18 Aug 2005 10:19:12 -0400, Jonathan Stinton wrote:

Answers inline:


> 1) I looked through the tutorial as well, and I did not see any steps
> creating a wizard, so the wizard you mention is the one you are trying
> to create for your project, correct?
>
Correct. I started a new "Hello World" plugin and pointed the Action
class's run() method to instantiate my wizard class. The wizard class then
instantiates the wizard page classes.

> 2) If so, When you say you lose the functionality of the Back, Next,
> Finish, and Cancel buttons what does that entail. Each of these buttons
> will need event listeners on them, and these will only work when running
> your program (for instance Run As->Java Bean). During design time they
> will be inactive.
>
Wizard pages bring a certain amount of "look and feel" as well as
functionality to the party. Just by extending the WizardPage class you
should automatically get a dialog with "Back" "Next" etc. buttons, and they
have default behavior.

When I follow that tutorial and drop a Shell on the canvas and instantiate
it in the createControl() method, it gives me a blank dialog with no wizard
functionality.

> 3) When you say you lose the general look and feel what specifically is
> this. I see you are dropping a panel, so it will not have the same
> borders and looks as a frame, is that what you mean? If you mean
> general Java look and feel check out Window->Preferences->Java->Visual
> Editor and notice the Swing Look and feel box that you can select a
> specific look and feel with.
>

Specifically, wizard pages have an area below the title bar that contains a
description of what the page does as well as an icon. While I know I can
re-create this behavior, why should I have to when I should get it for
free?

I didn't see anything in the docs that addresses my questions but I'll go
back through them and see if I can find more.

Thanks!
Re: (newbie) Using VE to create Wizard pages [message #610332 is a reply to message #102798] Thu, 18 August 2005 15:12 Go to previous message
Jonathan Stinton is currently offline Jonathan StintonFriend
Messages: 10
Registered: July 2009
Junior Member
Mike,

This explains a lot. You had mentioned panels and I figured you were
talking about Swing JPanels (based on the tutorial link) and hand
building the whole wizard.

What is really going is on it seems is that you are trying to create a
JFace Wizard. Unfortunately right now, we don't directly provde this
fuctionality. As of 1.1 we have Views and Editor, we hope by 1.2 to
provide full Wizard support.

The way around this for now is to create your custom composite with
everything you want in it, this will allow you to use the VE. Then in
another class extend WizardPage and use the provided fields you want
there. In your custom WizardPage you can embed your custom composite
[in the createControl method I believe you would use new
customComposite(parent, style)] and that should do the trick I think.

Let me know how it works, some of the other developers might have some
more help if you need it.

Thanks,
Jon


> On Thu, 18 Aug 2005 10:19:12 -0400, Jonathan Stinton wrote:
>
> Answers inline:
>
>
>
>>1) I looked through the tutorial as well, and I did not see any steps
>>creating a wizard, so the wizard you mention is the one you are trying
>>to create for your project, correct?
>>
>
> Correct. I started a new "Hello World" plugin and pointed the Action
> class's run() method to instantiate my wizard class. The wizard class then
> instantiates the wizard page classes.
>
>
>>2) If so, When you say you lose the functionality of the Back, Next,
>>Finish, and Cancel buttons what does that entail. Each of these buttons
>>will need event listeners on them, and these will only work when running
>>your program (for instance Run As->Java Bean). During design time they
>>will be inactive.
>>
>
> Wizard pages bring a certain amount of "look and feel" as well as
> functionality to the party. Just by extending the WizardPage class you
> should automatically get a dialog with "Back" "Next" etc. buttons, and they
> have default behavior.
>
> When I follow that tutorial and drop a Shell on the canvas and instantiate
> it in the createControl() method, it gives me a blank dialog with no wizard
> functionality.
>
>
>>3) When you say you lose the general look and feel what specifically is
>>this. I see you are dropping a panel, so it will not have the same
>>borders and looks as a frame, is that what you mean? If you mean
>>general Java look and feel check out Window->Preferences->Java->Visual
>>Editor and notice the Swing Look and feel box that you can select a
>>specific look and feel with.
>>
>
>
> Specifically, wizard pages have an area below the title bar that contains a
> description of what the page does as well as an icon. While I know I can
> re-create this behavior, why should I have to when I should get it for
> free?
>
> I didn't see anything in the docs that addresses my questions but I'll go
> back through them and see if I can find more.
>
> Thanks!
>
Re: (newbie) Using VE to create Wizard pages [message #610333 is a reply to message #102798] Thu, 18 August 2005 15:14 Go to previous message
Ben is currently offline BenFriend
Messages: 14
Registered: July 2009
Junior Member
> When I follow that tutorial and drop a Shell on the canvas and instantiate
> it in the createControl() method, it gives me a blank dialog with no wizard
> functionality.

Shouldn't you instead make a Panel, and insert that in creteControl()?
Previous Topic:Opening the jave class in ve programmatically
Next Topic:VE custom components
Goto Forum:
  


Current Time: Fri Apr 19 21:11:39 GMT 2024

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

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

Back to the top