示例#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");
 }