package org.jboss.tools.bpmn2.reddeer.dialog;
import org.jboss.reddeer.jface.wizard.NewWizardDialog;
import org.jboss.reddeer.swt.impl.text.LabeledText;
/**
*
*/
public class BPMN2ModelWizard extends NewWizardDialog {
/**
* Creates a new instance of BPMN2ModelWizard.
*/
public BPMN2ModelWizard() {
super("BPMN2", "BPMN2 Model");
}
/**
* Create a new process definition in the root of the first project.
*
* @param processName
* name of the file.
*/
public void execute(String processName) {
execute(new String[0], processName);
}
/**
* Create a new process definition.
*
* @param location
* path where the file is supposed to be stored (including project name)
* @param processName
* name of the file. Must end with bpmn2
*/
public void execute(String[] location, String processName) {
open();
new LabeledText("Enter or select the parent folder:").setText(ProjectPath.valueOf(location));
new LabeledText("File name:").setText(processName);
finish();
}
}