Getting information from a wizard [message #176662] |
Mon, 11 April 2005 17:39  |
Eclipse User |
|
|
|
Originally posted by: jdelgad.correo.ugr.es
Hi,
I have created a wizard for my GEF-based graphical editor. This wizards
includes three radioButton and now the creation of the palette depends on
the radioButton selected. But I create the palette in the JCLECPlugin.java
file and the wizard is created in the JCLECNewWizard.java file. Then, in
the JCLECPlugin.java file, how can I get which radioButton is selected?
Please help. Thank you very much.
--Jose
|
|
|
Re: Getting information from a wizard [message #176670 is a reply to message #176662] |
Mon, 11 April 2005 17:54   |
Eclipse User |
|
|
|
Originally posted by: Lamont_Gilbert.rigidsoftware.com
Jose wrote:
> Hi,
>
> I have created a wizard for my GEF-based graphical editor. This wizards
> includes three radioButton and now the creation of the palette depends
> on the radioButton selected. But I create the palette in the
> JCLECPlugin.java file and the wizard is created in the
> JCLECNewWizard.java file. Then, in the JCLECPlugin.java file, how can I
> get which radioButton is selected?
>
> Please help. Thank you very much.
>
>
> --Jose
>
Who creates the wizard instance? That is where you get the info. For
me I prefer wizards to be self contained so they do all their business
within the wizard class. My wizards dont return anything. My dialogs
on the other hand require help to get their work done.
CL
|
|
|
|
Re: Getting information from a wizard [message #176693 is a reply to message #176678] |
Mon, 11 April 2005 19:12   |
Eclipse User |
|
|
|
Originally posted by: gslade.no.spam.us.ibm.com
Hi Jose
This is not GEF releated at all.
If you are invoking the wizard from some of your own code then you could
new up the wizard instance and keep a handle on it. Then your code
would tell the wizard to open and let it do its thing. When the wizard
had finished and closed you still have the handle on it and so you could
then interogate the wizard instance for whatever you wanted.
If the wizard is invoked outside of your control (say through <ctrl-n>)
then the wizard will have to stash the info somewhere for you to get.
For example, if the purpose of the wizard is to create a file that GEF
would then open then the file will have to contain the info that you
want to get hold of.
Guy
Jose wrote:
> The wizard is created in the plugin.xml file, hence I don't know how to
> obtain information from it.
>
>
> Thank you for your interest in helping me.
>
> --Jose
>
|
|
|
Re: Getting information from a wizard [message #176747 is a reply to message #176678] |
Mon, 11 April 2005 21:12  |
Eclipse User |
|
|
|
Originally posted by: Lamont_Gilbert.rigidsoftware.com
Jose wrote:
> The wizard is created in the plugin.xml file, hence I don't know how to
> obtain information from it.
>
>
> Thank you for your interest in helping me.
>
> --Jose
>
Yes, in this case let the wizard do all the work. If it needs special
access to yoru plugin it should be able to get the instance through some
static methodology. that is how I do my Project wizard which is started
by Eclipse and probably why I just made all my wizards standalone.
CL
|
|
|
Powered by
FUDForum. Page generated in 0.02739 seconds