void () { myInclude.addActionListener(e -> myListener.run()); myUrlText.setText(myInfo.getUrl().toString()); myFixedSelectLocal.addActionListener(e -> { if (mySelectedBranch != null) { Pair<WorkingCopyInfo, Url> info = IntegratedSelectedOptionsDialog.selectWorkingCopy(myProject, myInfo.getUrl(), mySelectedBranch.getUrl(), false, null, null); if (info != null) { calculateBranchPathByBranch(mySelectedBranch.getUrl(), info.getFirst().getLocalPath()); } myListener.run(); } }); myBranchField.getTextField().setEditable(false); myBranchField.addActionListener(e -> { final VirtualFile vf = SvnUtil.getVirtualFile(myInfo.getPath()); if (vf != null) { SelectBranchPopup.show(myProject, vf, (project, configuration, url, revision) -> { refreshSelectedBranch(new WCInfoWithBranches.Branch(url)); calculateBranchPathByBranch(mySelectedBranch.getUrl(), null); myListener.run(); }, message("popup.title.select.branch")); } }); if (myInfo.getBranches().isEmpty()) { calculateBranchPathByBranch(null, null); } else { refreshSelectedBranch(myInfo.getBranches().get(0)); calculateBranchPathByBranch(mySelectedBranch.getUrl(), null); } }