use of org.palladiosimulator.editors.sirius.ui.wizard.model.NewModelWizard in project Palladio-Editors-Sirius by PalladioSimulator.
the class ModelCreation method execute.
@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
Shell activeShell = HandlerUtil.getActiveShell(event);
NewModelWizard wizard = getModelCreationWizard();
IWorkbench workbench = PlatformUI.getWorkbench();
IStructuredSelection selection = (IStructuredSelection) workbench.getActiveWorkbenchWindow().getSelectionService().getSelection();
wizard.init(workbench, selection);
WizardDialog dialog = new WizardDialog(activeShell, wizard);
dialog.open();
return null;
}
Aggregations