public void setRootNodeAllowedToCollapse(boolean allowed) {
			if (allowRootCollapse == allowed) {
				return;
			}
			allowRootCollapse = allowed;

			if (!allowed) {
				if (model != null && model.getRoot() != null) {
					runTask(new GTreeExpandNodeToDepthTask(GTree.this, getJTree(),
						model.getModelRoot(), 1));
				}
			}
		}
Enable or disable using double-click to open and close tree nodes.  The default is true.
@param b true to enable
Ghidra/Framework/Docking/src/main/java/docking/widgets/tree/GTree.java