File testcaseRequirement = fn.getPythonTestScript().getTestcaseRequirements();
if (testcaseRequirement != null) {
setTestCaseRequirement(testcaseRequirement, false);
}
// regenerate the doc if file date of script > file date of doc
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
// update the screen with the doc of the selected test script
setTestCaseDoc(script.getTestcaseDoc(), false);
// Get the user preferences to display the testcase tab
GUIConfiguration guiConfiguration = GUIConfiguration.getInstance();
String testCaseTabOnSelect = "none"; // default
if (guiConfiguration.containsKey(TEST_CASE_TAB_ON_SELECT_PROPERTY)) {
testCaseTabOnSelect = guiConfiguration.getString(TEST_CASE_TAB_ON_SELECT_PROPERTY).toLowerCase();