String () { StringBuilder content = new StringBuilder(); String separator = "\n"; StringUtil.join(HgUtil.getNamesWithoutHashes(myRepository.getMQAppliedPatches()), separator, content); content.append(separator); //append unapplied patches for (int i = 0; i < myPatchTable.getRowCount(); i++) { content.append(getPatchName(i)).append(separator); } return content.toString(); }