doc
diff --git a/bundles/org.eclipse.wst.sse.core/src/org/eclipse/wst/sse/core/filebuffers/BasicStructuredDocumentFactory.java b/bundles/org.eclipse.wst.sse.core/src/org/eclipse/wst/sse/core/filebuffers/BasicStructuredDocumentFactory.java
index d261f05..4ba41d6 100644
--- a/bundles/org.eclipse.wst.sse.core/src/org/eclipse/wst/sse/core/filebuffers/BasicStructuredDocumentFactory.java
+++ b/bundles/org.eclipse.wst.sse.core/src/org/eclipse/wst/sse/core/filebuffers/BasicStructuredDocumentFactory.java
@@ -27,16 +27,33 @@
import org.eclipse.wst.sse.core.modelhandler.IModelHandler;
+/**
+ * Generic IDocumentFactory for IStructuredDocuments. This class is not meant
+ * to be subclassed.
+ *
+ * @since 1.0
+ */
public class BasicStructuredDocumentFactory implements IDocumentFactory, IExecutableExtension {
- // The content type ID used to declare this factory; it is used to find
- // the corresponding ModelHandler
+ /*
+ * The content type ID used to declare this factory; it is used to find
+ * the corresponding support for creating the document
+ */
private String fContentTypeIdentifier = null;
+ /**
+ * Constructor, only to be used by the
+ * org.eclipse.core.filebuffers.documentCreation extension point.
+ */
public BasicStructuredDocumentFactory() {
super();
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.eclipse.core.filebuffers.IDocumentFactory#createDocument()
+ */
public IDocument createDocument() {
IDocument document = null;
IContentType contentType = Platform.getContentTypeManager().getContentType(getContentTypeIdentifier());
@@ -64,6 +81,12 @@
return fContentTypeIdentifier;
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.eclipse.core.runtime.IExecutableExtension#setInitializationData(org.eclipse.core.runtime.IConfigurationElement,
+ * java.lang.String, java.lang.Object)
+ */
public void setInitializationData(IConfigurationElement config, String propertyName, Object data) throws CoreException {
fContentTypeIdentifier = config.getAttribute("contentTypeId");
if (data != null) {