protected String changeFileOnDisk(ResourceFile file) throws IOException {
		String fileText = readFileContents(file);
		String updatedText =
			fileText + "\nChanges to file on disk for test: " + testName.getMethodName() + "\n";

		writeStringToFile(file, updatedText);

		return updatedText;
	}
This call will:
-open the file in an editor
-update the text area and buffer fields of this test
@param file the file to open
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/script/AbstractGhidraScriptMgrPluginTest.java