public String createProposalValue(final MobaIndex index, final MobaIndexEntry entry) { StringConcatenation _builder = new StringConcatenation(); _builder.append("index://"); String _id = index.getId(); _builder.append(_id, ""); _builder.append(":"); String _templateId = entry.getTemplateId(); _builder.append(_templateId, ""); _builder.newLineIfNotEmpty(); return _builder.toString(); }
public StyledString createStyledString(final MobaIndex index, final MobaIndexEntry entry) { final StyledString result = new StyledString("index://"); StringConcatenation _builder = new StringConcatenation(); String _id = index.getId(); _builder.append(_id, ""); _builder.append(":"); String _templateId = entry.getTemplateId(); _builder.append(_templateId, ""); result.append(_builder.toString()); StringConcatenation _builder_1 = new StringConcatenation(); _builder_1.append(" "); _builder_1.append("- "); String _templateDescription = entry.getTemplateDescription(); _builder_1.append(_templateDescription, " "); result.append(_builder_1.toString(), StyledString.COUNTER_STYLER); return result; }