GMF中,创建向导页

来源:互联网 发布:绣花软件分哪几种 编辑:程序博客网 时间:2024/05/09 05:00
          创建向导页很简单,直接new一个GMF生成的XXXCreateWizard就行了

          TestCreationWizard creationwizard = new TestCreationWizard();

          creationwizard .init(PlatformUI.getWorkbench(), StructuredSelection.EMPTY);

          WizardDialog wizardDialog = new WizardDialog(

                 PlatformUI

                      .getWorkbench().getModalDialogShellProvider()

                              .getShell(), creationwizard );

            wizardDialog.open();