void rename() {
		setEditable(true);
		TreePath path = getSelectionPath();

		if (path != null) {
			startEditingAtPath(path);
		}
	}
Start editing operation to rename node.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/programtree/ProgramDnDTree.java