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 / outline / XMLOutlinePage.java
index e1da92e..0daae7d 100644 (file)
@@ -8,7 +8,7 @@
  * Contributors:
  *     Christopher Lenz - initial API and implementation
  * 
- * $Id: XMLOutlinePage.java,v 1.2 2005-05-06 00:55:42 stefanbjarni Exp $
+ * $Id: XMLOutlinePage.java,v 1.3 2006-10-21 23:14:14 pombredanne Exp $
  */
 
 package net.sourceforge.phpeclipse.xml.ui.internal.outline;
@@ -48,7 +48,8 @@ public class XMLOutlinePage extends ContentOutlinePage {
        /**
         * Constructor.
         * 
-        * @param editor The associated text editor
+        * @param editor
+        *            The associated text editor
         */
        public XMLOutlinePage(XMLEditor editor) {
                this.editor = editor;
@@ -64,8 +65,8 @@ public class XMLOutlinePage extends ContentOutlinePage {
                TreeViewer viewer = getTreeViewer();
                viewer.setContentProvider(new XMLOutlineContentProvider());
                viewer.setLabelProvider(new DecoratingLabelProvider(
-                               new XMLOutlineLabelProvider(),
-                               new ProblemsLabelDecorator(editor)));
+                               new XMLOutlineLabelProvider(), new ProblemsLabelDecorator(
+                                               editor)));
                viewer.setInput(getDocument());
        }
 
@@ -74,15 +75,15 @@ public class XMLOutlinePage extends ContentOutlinePage {
        /**
         * Selects a specific element in the outline page.
         * 
-        * @param element the element to select
+        * @param element
+        *            the element to select
         */
        public void select(ISourceReference element) {
                TreeViewer viewer = getTreeViewer();
                if (viewer != null) {
                        ISelection selection = viewer.getSelection();
                        if (selection instanceof IStructuredSelection) {
-                               IStructuredSelection structuredSelection =
-                                       (IStructuredSelection) selection;
+                               IStructuredSelection structuredSelection = (IStructuredSelection) selection;
                                List elements = structuredSelection.toList();
                                if (!elements.contains(element)) {
                                        if (element == null) {
@@ -118,7 +119,7 @@ public class XMLOutlinePage extends ContentOutlinePage {
        // Private Methods ---------------------------------------------------------
 
        /**
-        * Returns the parsed model of the XML document that is loaded into the 
+        * Returns the parsed model of the XML document that is loaded into the
         * associated editor.
         * 
         * @return the parsed XML document