protected String changeEditorContents() {
		assertNotNull("Editor not opened and initialized", editorTextArea);
		assertNotNull("Editor not opened and initialized", buffer);

		// just insert some text into the buffer
		buffer.append("Test text: ").append(testName.getMethodName());

		runSwing(() -> {
			editorTextArea.setText(buffer.toString());
		});

		waitForSwing();
		return buffer.toString();
	}
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