private void changePassword() {
		RepositoryAdapter repository = activeProject.getRepository();
		if (repository == null) {
			return;
		}
		PasswordChangeDialog dlg = null;
		char[] pwd = null;
		try {
			repository.connect();

			ServerInfo info = repository.getServerInfo();

			if (OptionDialog.OPTION_ONE != OptionDialog.showOptionDialog(tool.getToolFrame(),
				"Confirm Password Change",
				"You are about to change your repository server password for:\n" + info +
					"\n \nThis password is used when connecting to project\n" +
					"repositories associated with this server",
				"Continue", OptionDialog.WARNING_MESSAGE)) {
				return;
			}

			dlg = new PasswordChangeDialog("Change Password", "Repository Server",
				repository.getServerInfo().getServerName(), repository.getServer().getUser());
			tool.showDialog(dlg);
			pwd = dlg.getPassword();
			if (pwd != null) {
				repository.getServer()
						.setPassword(
							HashUtilities.getSaltedHash(HashUtilities.SHA256_ALGORITHM, pwd));
				Msg.showInfo(getClass(), tool.getToolFrame(), "Password Changed",
					"Password was changed successfully");
			}
		}
		catch (IOException e) {
			ClientUtil.handleException(repository, e, "Password Change", tool.getToolFrame());
		}
		finally {
			if (pwd != null) {
				Arrays.fill(pwd, ' ');
			}
			if (dlg != null) {
				dlg.dispose();
			}
		}
	}
menu listener for Project | Add View...
Ghidra/Framework/Project/src/main/java/ghidra/framework/main/ProjectActionManager.java