private void renameView() {
		ViewProviderService vps = getCurrentViewProvider();
		String oldName = vps.getViewName();
		String newName =
			OptionDialog.showInputSingleLineDialog(tabbedPane, "Rename Tab", "New name:", oldName);

		if (StringUtils.isBlank(newName)) {
			return;
		}

		if (!newName.equals(oldName)) {
			if (vps.viewRenamed(newName)) {
				int selectedIndex = tabbedPane.getSelectedIndex();
				tabbedPane.setTitleAt(selectedIndex, newName);
				DockingTabRenderer renderer =
					(DockingTabRenderer) tabbedPane.getTabComponentAt(selectedIndex);
				renderer.setTitle(newName, newName);
				map.remove(oldName);
				map.put(newName, vps);
			}
		}
	}
Pop up editor window to allow the user to rename view.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/programtree/ViewPanel.java