Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Getting information from a wizard
Getting information from a wizard [message #176662] Mon, 11 April 2005 17:39 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 #176678 is a reply to message #176670] Mon, 11 April 2005 18:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jdelgad.correo.ugr.es

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 #176693 is a reply to message #176678] Mon, 11 April 2005 19:12 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:adding more menu items to the right click menu of palette of gef-editor
Next Topic:draw2D.Button doesn't support modification for its text
Goto Forum:
  


Current Time: Tue Apr 23 07:30:17 GMT 2024

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

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

Back to the top