A massive organize imports and formatting of the sources using default Eclipse code...
[phpeclipse.git] / net.sourceforge.phpeclipse.xml.ui / src / net / sourceforge / phpeclipse / xml / ui / internal / editor / XMLDocumentProvider.java
index 5d751b7..999fd08 100644 (file)
@@ -8,7 +8,7 @@
  * Contributors:
  *     Christopher Lenz - initial API and implementation
  * 
- * $Id: XMLDocumentProvider.java,v 1.2 2005-05-06 00:55:42 stefanbjarni Exp $
+ * $Id: XMLDocumentProvider.java,v 1.3 2006-10-21 23:14:14 pombredanne Exp $
  */
 
 package net.sourceforge.phpeclipse.xml.ui.internal.editor;
@@ -23,16 +23,14 @@ import org.eclipse.jface.text.IDocument;
 import org.eclipse.jface.text.IDocumentListener;
 import org.eclipse.ui.editors.text.TextFileDocumentProvider;
 
-
 /**
  * Document provider for XML files.
  * 
  * TODO Merge the encoding detection support from I18NDocumentProvider and
- *      AbstractDocumentProvider into this class
+ * AbstractDocumentProvider into this class
  * 
- * TODO This class currently doubles as a model manager which will need to be 
- *      moved into core at some point, and would make this class pretty much
- *      useless
+ * TODO This class currently doubles as a model manager which will need to be
+ * moved into core at some point, and would make this class pretty much useless
  */
 public class XMLDocumentProvider extends TextFileDocumentProvider {
 
@@ -80,7 +78,8 @@ public class XMLDocumentProvider extends TextFileDocumentProvider {
        }
 
        /*
-        * @see TextFileDocumentProvider#disposeFileInfo(Object, TextFileDocumentProvider.FileInfo)
+        * @see TextFileDocumentProvider#disposeFileInfo(Object,
+        *      TextFileDocumentProvider.FileInfo)
         */
        protected void disposeFileInfo(Object element, FileInfo info) {
                if (info instanceof XMLFileInfo) {
@@ -88,8 +87,8 @@ public class XMLDocumentProvider extends TextFileDocumentProvider {
                        if (document != null) {
                                IXMLDocument xmlDocument = ((XMLFileInfo) info).xmlDocument;
                                if (xmlDocument instanceof IDocumentListener) {
-                                       document.removeDocumentListener(
-                                                       (IDocumentListener) xmlDocument);
+                                       document
+                                                       .removeDocumentListener((IDocumentListener) xmlDocument);
                                }
                        }
                }
@@ -100,11 +99,13 @@ public class XMLDocumentProvider extends TextFileDocumentProvider {
        // Public Methods ----------------------------------------------------------
 
        /**
-        * Creates the XML document model object corresponding to the specified 
+        * Creates the XML document model object corresponding to the specified
         * document.
         * 
-        * @param document the document to parse
-        * @param systemId the system ID of the document
+        * @param document
+        *            the document to parse
+        * @param systemId
+        *            the system ID of the document
         * @return the document model object
         */
        public IXMLDocument createModel(IDocument document, String systemId) {
@@ -114,7 +115,8 @@ public class XMLDocumentProvider extends TextFileDocumentProvider {
        /**
         * Returns the XML document model associated with the specified element.
         * 
-        * @param element the element
+        * @param element
+        *            the element
         * @return the document model associated with the element
         */
        public IXMLDocument getModel(Object element) {