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 / text / XMLAnnotationHover.java
index 11d45ca..3e38663 100644 (file)
@@ -8,7 +8,7 @@
  * Contributors:
  *     Christopher Lenz - initial API and implementation
  * 
- * $Id: XMLAnnotationHover.java,v 1.1 2004-09-02 18:28:03 jsurfer Exp $
+ * $Id: XMLAnnotationHover.java,v 1.2 2006-10-21 23:14:13 pombredanne Exp $
  */
 package net.sourceforge.phpeclipse.xml.ui.internal.text;
 
@@ -24,13 +24,13 @@ import org.eclipse.jface.text.source.IAnnotationHover;
 import org.eclipse.jface.text.source.IAnnotationModel;
 import org.eclipse.jface.text.source.ISourceViewer;
 
-
 /**
  * Implements simple annotation hover to show the associated messages.
  */
 public class XMLAnnotationHover implements IAnnotationHover {
        /*
-        * @see org.eclipse.jface.text.source.IAnnotationHover#getHoverInfo(org.eclipse.jface.text.source.ISourceViewer, int)
+        * @see org.eclipse.jface.text.source.IAnnotationHover#getHoverInfo(org.eclipse.jface.text.source.ISourceViewer,
+        *      int)
         */
        public String getHoverInfo(ISourceViewer sourceViewer, int lineNumber) {
                List annotations = getAnnotationsForLine(sourceViewer, lineNumber);
@@ -69,7 +69,7 @@ public class XMLAnnotationHover implements IAnnotationHover {
                StringBuffer buffer = new StringBuffer();
 
                Iterator e = messages.iterator();
-               while (e.hasNext())  {
+               while (e.hasNext()) {
                        buffer.append("- "); //$NON-NLS-1$
                        buffer.append(e.next());
                        buffer.append('\n');
@@ -98,8 +98,8 @@ public class XMLAnnotationHover implements IAnnotationHover {
                        Position position = model.getPosition(a);
                        if (position != null) {
                                try {
-                                       int annotationLine = document
-                                                       .getLineOfOffset(position.getOffset());
+                                       int annotationLine = document.getLineOfOffset(position
+                                                       .getOffset());
                                        if (annotationLine == line) {
                                                retVal.add(a);
                                        }