void () { boolean swapSides = myVcsSettings.shouldSwapSidesInCompareBranches(); HtmlChunk branchNameText = HtmlChunk.text(myBranchName).code().bold(); HtmlChunk currentBranchNameText = HtmlChunk.text(myCurrentBranchName).code().bold(); String diffBetween; if (swapSides) { diffBetween = DvcsBundle.message("compare.branches.diff.panel.diff.between.files.in.branch.and.current.working.tree.on.branch", branchNameText, currentBranchNameText); } else { diffBetween = DvcsBundle.message("compare.branches.diff.panel.difference.between.current.working.tree.on.branch.and.files.in.branch", currentBranchNameText, branchNameText); } String swapBranches = DvcsBundle.message("compare.branches.diff.panel.swap.branches"); myLabel.setText(XmlStringUtil.wrapInHtml(diffBetween + "&emsp;" + HtmlChunk.link("", swapBranches))); // NON-NLS }