dialog.open();
dialog.resetSelection();
if (dialog.isFinished()) {
final IErlFunctionClause functionClause = dialog.getFunctionClause();
refactoring = new FoldRemoteExpressionRefactoring(functionClause, sel);
pages.add(new SelectionInputPage("Fold expression",
"Please select expression which should be fold!",
"Select expressions which should be folded!",
(CostumWorkflowRefactoringWithPositionsSelection) refactoring));