Subprocess subprocess = (Subprocess) selectedPart.getModel();
openDetails(subprocess);
}
public void openDetails(Subprocess subprocess) {
SubprocessDialog dialog = new SubprocessDialog(subprocess);
if (dialog.open() != Window.CANCEL) {
subprocess.setVariablesList(dialog.getSubprocessVariables());
subprocess.setSubProcessName(dialog.getSubprocessName());
}
}