PythonTestScript script = fn.getPythonTestScript();
boolean generateDoc = testCasePane.isDocTabSelected() && !script.isDocSynchronized();
if (generateDoc) {
testCasePane.parent.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
script.generateDoc();
// Generate the documentation
setTestCaseDoc(script.getTestcaseDoc(), false);
testCasePane.parent.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
}
else