private void updateDescriptionPanel() {
		ResourceFile script = getSelectedScript();
		ScriptInfo info = infoManager.getExistingScriptInfo(script); // null script is ok
		String text =
			script != null ? (info != null ? info.getToolTipText() : "Error! no script info!")
					: null; // no selected script

		// have to do an invokeLater here, since the DefaultCaret class runs in an invokeLater,
		// which will overwrite our location setting
		SwingUtilities.invokeLater(() -> {
			descriptionTextPane.setText(text);
			descriptionTextPane.setCaretPosition(0);
		});
	}
reassign an existing editor component

@param oldScript who the editor is currently assigned to
@param newScript the new script to assign it to
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/script/GhidraScriptComponentProvider.java