public void updateTitle(ComponentProvider provider) {

		String title = provider.getTitle();
		if (title == null) {
			title = "";
		}

		ComponentPlaceholder placeholder = getActivePlaceholder(provider);
		if (placeholder == null) {
			return; // shouldn't happen
		}

		placeholder.update();
		scheduleUpdate();

		DetachedWindowNode wNode = placeholder.getDetachedWindowNode();
		if (wNode != null) {
			wNode.updateTitle();
		}
	}
Set whether a component's header should be shown; the header is the component that is dragged
in order to move the component within the tool, or out of the tool into a separate window.

@param provider provider of the visible component in the tool
@param b true means to show the header
Ghidra/Framework/Docking/src/main/java/docking/DockingWindowManager.java