how to invoke a wizard from code [message #293774] |
Fri, 28 October 2005 16:26  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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()
|
|
|
Powered by
FUDForum. Page generated in 0.03275 seconds