void (@NotNull AnActionEvent e) { RepositoryTreeNode node = myBrowserComponent.getSelectedNode(); if (node == null || (!(node.getParent() instanceof RepositoryTreeRootNode))) { return; } Url oldUrl = node.getURL(); final SvnApplicationSettings settings = SvnApplicationSettings.getInstance(); AddRepositoryLocationDialog dialog = new AddRepositoryLocationDialog(myBrowserComponent.getProject(), settings.getTypedUrlsListCopy()); dialog.setTitle(message("repository.browser.edit.location.dialog.title")); dialog.setSelected(oldUrl); dialog.show(); if (dialog.getExitCode() == DialogWrapper.OK_EXIT_CODE) { Url url = dialog.getSelected(); if (url != null) { settings.addTypedUrl(url.toDecodedString()); settings.removeCheckoutURL(oldUrl.toString()); settings.addCheckoutURL(url.toDecodedString()); myBrowserComponent.removeURL(oldUrl); myBrowserComponent.addURL(url); } } }