Search in sources :

Example 1 with SaveArchimateModelAsTemplateWizard

use of com.archimatetool.templates.impl.wizard.SaveArchimateModelAsTemplateWizard in project archi by archimatetool.

the class SaveAsTemplateHandler method execute.

@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
    IArchimateModel model = getActiveArchimateModel();
    if (model != null) {
        WizardDialog dialog = new ExtendedWizardDialog(workbenchWindow.getShell(), new SaveArchimateModelAsTemplateWizard(model), // $NON-NLS-1$
        "SaveModelAsTemplateWizard");
        dialog.open();
    }
    return null;
}
Also used : ExtendedWizardDialog(com.archimatetool.editor.ui.components.ExtendedWizardDialog) IArchimateModel(com.archimatetool.model.IArchimateModel) WizardDialog(org.eclipse.jface.wizard.WizardDialog) ExtendedWizardDialog(com.archimatetool.editor.ui.components.ExtendedWizardDialog) SaveArchimateModelAsTemplateWizard(com.archimatetool.templates.impl.wizard.SaveArchimateModelAsTemplateWizard)

Aggregations

ExtendedWizardDialog (com.archimatetool.editor.ui.components.ExtendedWizardDialog)1 IArchimateModel (com.archimatetool.model.IArchimateModel)1 SaveArchimateModelAsTemplateWizard (com.archimatetool.templates.impl.wizard.SaveArchimateModelAsTemplateWizard)1 WizardDialog (org.eclipse.jface.wizard.WizardDialog)1