1 11 package org.eclipse.pde.internal.core.schema; 12 13 import java.io.PrintWriter ; 14 15 import org.eclipse.pde.internal.core.ischema.IDocumentSection; 16 import org.eclipse.pde.internal.core.ischema.ISchemaObject; 17 18 public class DocumentSection extends SchemaObject implements IDocumentSection { 19 20 private static final long serialVersionUID = 1L; 21 private String sectionId; 22 23 public DocumentSection(ISchemaObject parent, String sectionId, String name) { 24 super(parent, name); 25 this.sectionId = sectionId; 26 } 27 28 public String getSectionId() { 29 return sectionId; 30 } 31 32 public void write(String indent, PrintWriter writer) { 33 String indent2 = indent + Schema.INDENT; 34 String indent3 = indent2 + Schema.INDENT; 35 writer.println(indent + "<annotation>"); writer.println(indent2 + "<appInfo>"); writer.println(indent3 + "<meta.section type=\"" + sectionId + "\"/>"); writer.println(indent2 + "</appInfo>"); writer.println(indent2 + "<documentation>"); writer.println(indent3 + getWritableDescription()); 41 writer.println(indent2 + "</documentation>"); writer.println(indent + "</annotation>"); } 44 } 45 | Popular Tags |