Function function = interpreter.getRegisteredFunctions().get(functionName);
if (function != null) {
PlotFunctionAction action = new PlotFunctionAction("Function preview",
function, FunctionDialog.this);
action.doAction();
} else {
UserMessages.showWarning("No function selected");
}
}