Skip to main content



      Home
Home » Newcomers » Newcomers » Calling a wizard
Calling a wizard [message #270308] Wed, 15 April 2009 09:44 Go to next message
Eclipse UserFriend
I have created my own perspective which contains an icon and a wizard in
the
File->New->Other->MyCategory - MyWizard

I want to call that wizard i.e. make it apppear when i click on the 'icon'
created along with the perspective.

Is there a way??

Please let me know.

Adithya.
Re: Calling a wizard [message #270312 is a reply to message #270308] Wed, 15 April 2009 09:50 Go to previous messageGo to next message
Eclipse UserFriend
adithya wrote:
> I have created my own perspective which contains an icon and a wizard in
> the File->New->Other->MyCategory - MyWizard
>
> I want to call that wizard i.e. make it apppear when i click on the
> 'icon' created along with the perspective.
>
> Is there a way??
>
> Please let me know.
>
> Adithya.
>

MyWizard wizard = new MyWizard ();
wizard.setWindowTitle("wizard title");
WizardDialog dialog = new WizardDialog(this.getShell(), wizard);
dialog.open();

--
hth,
Ankur..
Re: Calling a wizard [message #270316 is a reply to message #270312] Wed, 15 April 2009 10:41 Go to previous messageGo to next message
Eclipse UserFriend
Ankur Sharma wrote:

> adithya wrote:
>> I have created my own perspective which contains an icon and a wizard in
>> the File->New->Other->MyCategory - MyWizard
>>
>> I want to call that wizard i.e. make it apppear when i click on the
>> 'icon' created along with the perspective.
>>
>> Is there a way??
>>
>> Please let me know.
>>
>> Adithya.
>>

> MyWizard wizard = new MyWizard ();
> wizard.setWindowTitle("wizard title");
> WizardDialog dialog = new WizardDialog(this.getShell(), wizard);
> dialog.open();

Where do i write the above code??
In the icon's class or in the Wizard's class as mentioned in the
plugin.xml .
Re: Calling a wizard [message #270324 is a reply to message #270316] Wed, 15 April 2009 13:32 Go to previous message
Eclipse UserFriend
adithya wrote:
> Ankur Sharma wrote:
>
>> adithya wrote:
>>> I have created my own perspective which contains an icon and a wizard
>>> in the File->New->Other->MyCategory - MyWizard
>>>
>>> I want to call that wizard i.e. make it apppear when i click on the
>>> 'icon' created along with the perspective.
>>>
>>> Is there a way??
>>>
>>> Please let me know.
>>>
>>> Adithya.
>>>
>
>> MyWizard wizard = new MyWizard ();
>> wizard.setWindowTitle("wizard title");
>> WizardDialog dialog = new WizardDialog(this.getShell(), wizard);
>> dialog.open();
>
> Where do i write the above code??
> In the icon's class or in the Wizard's class as mentioned in the
> plugin.xml .
>


this code invokes the wizard. So on whatever event you wish should bring up the wizard, you write it there.

--
hth,
Ankur..
Previous Topic:GUI builder for new projects
Next Topic:An error has occurred. See the log file C:\Program
Goto Forum:
  


Current Time: Fri May 09 12:04:19 EDT 2025

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

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

Back to the top