[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.newcomer] Re: Calling a wizard

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..