Search in sources :

Example 1 with NewPalladioProjectWizard

use of org.palladiosimulator.editors.sirius.ui.wizard.project.NewPalladioProjectWizard in project Palladio-Editors-Sirius by PalladioSimulator.

the class PalladioProjectCreation method execute.

@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
    Shell activeShell = HandlerUtil.getActiveShell(event);
    NewPalladioProjectWizard wizard = new NewPalladioProjectWizard();
    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;
}
Also used : IWorkbench(org.eclipse.ui.IWorkbench) Shell(org.eclipse.swt.widgets.Shell) NewPalladioProjectWizard(org.palladiosimulator.editors.sirius.ui.wizard.project.NewPalladioProjectWizard) IStructuredSelection(org.eclipse.jface.viewers.IStructuredSelection) WizardDialog(org.eclipse.jface.wizard.WizardDialog)

Aggregations

IStructuredSelection (org.eclipse.jface.viewers.IStructuredSelection)1 WizardDialog (org.eclipse.jface.wizard.WizardDialog)1 Shell (org.eclipse.swt.widgets.Shell)1 IWorkbench (org.eclipse.ui.IWorkbench)1 NewPalladioProjectWizard (org.palladiosimulator.editors.sirius.ui.wizard.project.NewPalladioProjectWizard)1