Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » how to invoke a wizard from code
how to invoke a wizard from code [message #293774] Fri, 28 October 2005 16:26 Go to next message
Eclipse UserFriend
Originally posted by: pbeagan.yahoo_dontspamme_.com

I have an existing extension that is a org.eclipse.ui.exportWizard, class
name is my.pkg.CustomExportWizard . I want a user to be able to click a
button on the toolbar to have this wizard come up. I am unsure how to do
this. I can create an org.eclipse.ui.actionSets with the 'hello, world'
template. Now I suppose I need to somehow invoke my export class
my.pkg.CustomExportWizard somehow in the run method but not sure how to do
this. Thanks!


public void run(IAction action) {
MessageDialog.openInformation(
window.getShell(),
"atg.assembler",
"Hello, Eclipse world");
}
Re: how to invoke a wizard from code [message #293775 is a reply to message #293774] Fri, 28 October 2005 18:22 Go to previous message
Eclipse UserFriend
Patrick wrote:

> I have an existing extension that is a org.eclipse.ui.exportWizard, class
> name is my.pkg.CustomExportWizard . I want a user to be able to click a
> button on the toolbar to have this wizard come up. I am unsure how to do
> this. I can create an org.eclipse.ui.actionSets with the 'hello, world'
> template. Now I suppose I need to somehow invoke my export class
> my.pkg.CustomExportWizard somehow in the run method but not sure how to do
> this. Thanks!
>
>
> public void run(IAction action) {
> MessageDialog.openInformation(
> window.getShell(),
> "atg.assembler",
> "Hello, Eclipse world");
> }

make WizardDialog like this :

MyWizard myWizard = new MyWizard(...);
WizardDialog wd = new WizardDialog(getShell(),myWizard);
wd.open()
Previous Topic:Using Eclipse with a custom precompiler
Next Topic:Problem with WorkbenchWindow
Goto Forum:
  


Current Time: Wed May 28 15:53:39 EDT 2025

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

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

Back to the top