Beispiel #1
0
 private void writeState(XMLWriter writer) {
   writer.startTag(RepositoriesViewContentHandler.REPOSITORIES_VIEW_TAG, null, true);
   // Write the repositories
   Collection repos = Arrays.asList(getKnownRepositoryLocations());
   Iterator it = repos.iterator();
   while (it.hasNext()) {
     CVSRepositoryLocation location = (CVSRepositoryLocation) it.next();
     RepositoryRoot root = getRepositoryRootFor(location);
     root.writeState(writer);
   }
   writer.endTag(RepositoriesViewContentHandler.REPOSITORIES_VIEW_TAG);
 }
Beispiel #2
0
 private void writeCommentHistory(XMLWriter writer) {
   writer.startTag(ELEMENT_COMMIT_HISTORY, null, false);
   for (int i = 0; i < previousComments.length && i < maxComments; i++)
     writer.printSimpleTag(ELEMENT_COMMIT_COMMENT, previousComments[i]);
   writer.endTag(ELEMENT_COMMIT_HISTORY);
 }
Beispiel #3
0
 private void writeCommentTemplates(XMLWriter writer) {
   writer.startTag(ELEMENT_COMMENT_TEMPLATES, null, false);
   for (int i = 0; i < commentTemplates.length; i++)
     writer.printSimpleTag(ELEMENT_COMMIT_COMMENT, commentTemplates[i]);
   writer.endTag(ELEMENT_COMMENT_TEMPLATES);
 }