public void init(String wizardId, String packName, String typeName) { wizard = (NewBatchArtifactWizard) WorkbenchUtils.findWizardByDefId(wizardId); wizard.init(BatchUIPlugin.getDefault().getWorkbench(), new StructuredSelection(jp)); wizard.setOpenEditorAfterFinish(false); open(); page = (NewTypeWizardPage) dialog.getSelectedPage(); setTypeName(packName, typeName); }
public void init(String wizardId) { wizard = (NewBeansXMLCreationWizard) WorkbenchUtils.findWizardByDefId(wizardId); tck = ResourcesPlugin.getWorkspace().getRoot().getProject("tck"); jp = EclipseUtil.getJavaProject(tck); wizard.init(CDIUIPlugin.getDefault().getWorkbench(), new StructuredSelection(jp)); dialog = new WizardDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), wizard); wizard.setOpenEditorAfterFinish(false); dialog.setBlockOnOpen(false); dialog.open(); }
public void init(String wizardId, String packName, String typeName) { wizard = (NewElementWizard) WorkbenchUtils.findWizardByDefId(wizardId); tck = ResourcesPlugin.getWorkspace().getRoot().getProject("tck"); jp = EclipseUtil.getJavaProject(tck); wizard.init(CDIUIPlugin.getDefault().getWorkbench(), new StructuredSelection(jp)); if (wizard instanceof NewCDIElementWizard) { ((NewCDIElementWizard) wizard).setOpenEditorAfterFinish(false); } else if (wizard instanceof NewAnnotationLiteralCreationWizard) { ((NewAnnotationLiteralCreationWizard) wizard).setOpenEditorAfterFinish(false); } dialog = new WizardDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), wizard); dialog.setBlockOnOpen(false); dialog.open(); page = (NewTypeWizardPage) dialog.getSelectedPage(); setTypeName(packName, typeName); }
public void init(String wizardId) { wizard = (NewJobXMLCreationWizard) WorkbenchUtils.findWizardByDefId(wizardId); wizard.init(BatchUIPlugin.getDefault().getWorkbench(), new StructuredSelection(jp)); wizard.setOpenEditorAfterFinish(false); open(); }