Пример #1
0
 public void getAddedDescription(ChangeText txt) {
   htmlLayoutChange = new HtmlLayoutChange();
   htmlLayoutChange.setEndingTag(node.getEndTag());
   htmlLayoutChange.setOpeningTag(node.getOpeningTag());
   htmlLayoutChange.setType(Type.TAG_ADDED);
   if (sem == TagChangeSematic.MOVED) {
     txt.addText(getMovedTo() + " " + getArticle().toLowerCase() + " ");
     txt.addHtml("<b>");
     txt.addText(getDescription().toLowerCase());
     txt.addHtml("</b>");
   } else if (sem == TagChangeSematic.STYLE) {
     txt.addHtml("<b>");
     txt.addText(getDescription());
     txt.addHtml("</b>");
     txt.addText(" " + getStyleAdded().toLowerCase());
   } else {
     txt.addHtml("<b>");
     txt.addText(getDescription());
     txt.addHtml("</b>");
     txt.addText(" " + getAdded().toLowerCase());
   }
   addAttributes(txt, node.getAttributes());
   txt.addText(".");
 }
Пример #2
0
  public String getDescription() {

    return getString("diff-" + node.getQName());
  }
Пример #3
0
 protected String getArticle() {
   return getString("diff-" + node.getQName() + "-article");
 }