NewConnectionWizard wizard = ContextInjectionFactory.make( NewConnectionWizard.class, context); WizardDialog dialog = new WizardDialog(shell, wizard); dialog.open();
IEclipseContext childContext = context.createChild(); childContext.set("a_for", "apple"); MPart connectionPart = partService.createPart("partdescriptor.connection"); connectionPart.setContext(childContext); partService.showPart(connectionPart, PartState.ACTIVATE);