Cosmetics.

Add missing Override annotations in o.e.dltk.internal.ui.text.hover
package.

Change-Id: Ifc5c04137dadea003e0461a2d262bfe6fbc9ecc1
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
diff --git a/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/AbstractScriptEditorTextHover.java b/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/AbstractScriptEditorTextHover.java
index 89ddc35..88e7237 100644
--- a/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/AbstractScriptEditorTextHover.java
+++ b/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/AbstractScriptEditorTextHover.java
@@ -1,11 +1,10 @@
 /*******************************************************************************
- * Copyright (c) 2000, 2007 IBM Corporation and others.
+ * Copyright (c) 2000, 2016 IBM Corporation and others.
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
  * http://www.eclipse.org/legal/epl-v10.html
  *
- 
  *******************************************************************************/
 package org.eclipse.dltk.internal.ui.text.hover;
 
@@ -61,6 +60,7 @@
 	private IEditorPart fEditor;
 	private IPreferenceStore fStore;
 
+	@Override
 	public void setPreferenceStore(IPreferenceStore store) {
 		fStore = store;
 	}
@@ -72,6 +72,7 @@
 		return fStore;
 	}
 
+	@Override
 	public void setEditor(IEditorPart editor) {
 		fEditor = editor;
 	}
@@ -92,6 +93,7 @@
 		return null;
 	}
 
+	@Override
 	public IRegion getHoverRegion(final ITextViewer textViewer, int offset) {
 
 		// final IRegion[] result = new IRegion[] { ScriptWordFinder.findWord(
@@ -113,6 +115,7 @@
 		return ScriptWordFinder.findWord(textViewer.getDocument(), offset);
 	}
 
+	@Override
 	public String getHoverInfo(ITextViewer textViewer, IRegion hoverRegion) {
 
 		String nature = null;
@@ -208,8 +211,10 @@
 		return null;
 	}
 
+	@Override
 	public IInformationControlCreator getHoverControlCreator() {
 		return new IInformationControlCreator() {
+			@Override
 			public IInformationControl createInformationControl(Shell parent) {
 				return new DefaultInformationControl(parent,
 						EditorsUI.getTooltipAffordanceString());
diff --git a/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/AnnotationExpandHover.java b/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/AnnotationExpandHover.java
index 4b07ecc..a0f606c 100644
--- a/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/AnnotationExpandHover.java
+++ b/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/AnnotationExpandHover.java
@@ -1,11 +1,10 @@
 /*******************************************************************************
- * Copyright (c) 2000, 2007 IBM Corporation and others.
+ * Copyright (c) 2000, 2016 IBM Corporation and others.
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
  * http://www.eclipse.org/legal/epl-v10.html
  *
- 
  *******************************************************************************/
 package org.eclipse.dltk.internal.ui.text.hover;
 
@@ -56,23 +55,17 @@
 
 	private class InformationControlCreator implements IInformationControlCreator, IInformationControlCreatorExtension {
 
-		/*
-		 * @see org.eclipse.jface.text.IInformationControlCreator#createInformationControl(org.eclipse.swt.widgets.Shell)
-		 */
+		@Override
 		public IInformationControl createInformationControl(Shell parent) {
 			return new AnnotationExpansionControl(parent, SWT.NONE, fAnnotationAccess);
 		}
 
-		/*
-		 * @see org.eclipse.jface.text.IInformationControlCreatorExtension#canReuse(org.eclipse.jface.text.IInformationControl)
-		 */
+		@Override
 		public boolean canReuse(IInformationControl control) {
 			return control instanceof AnnotationExpansionControl;
 		}
 
-		/*
-		 * @see org.eclipse.jface.text.IInformationControlCreatorExtension#canReplace(org.eclipse.jface.text.IInformationControlCreator)
-		 */
+		@Override
 		public boolean canReplace(IInformationControlCreator creator) {
 			return creator == this;
 		}
@@ -80,23 +73,17 @@
 
 	private class VerticalRulerListener implements IVerticalRulerListener {
 
-		/*
-		 * @see org.eclipse.jface.text.source.IVerticalRulerListener#annotationSelected(org.eclipse.jface.text.source.VerticalRulerEvent)
-		 */
+		@Override
 		public void annotationSelected(VerticalRulerEvent event) {
 			fCompositeRuler.fireAnnotationSelected(event);
 		}
 
-		/*
-		 * @see org.eclipse.jface.text.source.IVerticalRulerListener#annotationDefaultSelected(org.eclipse.jface.text.source.VerticalRulerEvent)
-		 */
+		@Override
 		public void annotationDefaultSelected(VerticalRulerEvent event) {
 			fCompositeRuler.fireAnnotationDefaultSelected(event);
 		}
 
-		/*
-		 * @see org.eclipse.jface.text.source.IVerticalRulerListener#annotationContextMenuAboutToShow(org.eclipse.jface.text.source.VerticalRulerEvent, org.eclipse.swt.widgets.Menu)
-		 */
+		@Override
 		public void annotationContextMenuAboutToShow(VerticalRulerEvent event, Menu menu) {
 			fCompositeRuler.fireAnnotationContextMenuAboutToShow(event, menu);
 		}
@@ -125,6 +112,7 @@
 	/*
 	 * @see org.eclipse.jface.text.source.IAnnotationHover#getHoverInfo(org.eclipse.jface.text.source.ISourceViewer, int)
 	 */
+	@Override
 	public String getHoverInfo(ISourceViewer sourceViewer, int line) {
 		// we don't have any sensible return value as text
 		return null;
@@ -177,9 +165,7 @@
 	protected void sort(List exact, final IAnnotationModel model) {
 		class AnnotationComparator implements Comparator {
 
-			/*
-			 * @see java.util.Comparator#compare(java.lang.Object, java.lang.Object)
-			 */
+			@Override
 			public int compare(Object o1, Object o2) {
 				Annotation a1= (Annotation) o1;
 				Annotation a2= (Annotation) o2;
@@ -276,30 +262,22 @@
 		return 0;
 	}
 
-	/*
-	 * @see org.eclipse.jface.text.source.IAnnotationHoverExtension#getHoverControlCreator()
-	 */
+	@Override
 	public IInformationControlCreator getHoverControlCreator() {
 		return fgCreator;
 	}
 
-	/*
-	 * @see org.eclipse.jface.text.source.IAnnotationHoverExtension#getHoverInfo(org.eclipse.jface.text.source.ISourceViewer, org.eclipse.jface.text.source.ILineRange, int)
-	 */
+	@Override
 	public Object getHoverInfo(ISourceViewer sourceViewer, ILineRange lineRange, int visibleLines) {
 		return getHoverInfoForLine(sourceViewer, lineRange.getStartLine());
 	}
 
-	/*
-	 * @see org.eclipse.jface.text.source.IAnnotationHoverExtension#getHoverLineRange(org.eclipse.jface.text.source.ISourceViewer, int)
-	 */
+	@Override
 	public ILineRange getHoverLineRange(ISourceViewer viewer, int lineNumber) {
 		return new LineRange(lineNumber, 1);
 	}
 
-	/*
-	 * @see org.eclipse.jface.text.source.IAnnotationHoverExtension#canHandleMouseCursor()
-	 */
+	@Override
 	public boolean canHandleMouseCursor() {
 		return true;
 	}
diff --git a/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/AnnotationExpansionControl.java b/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/AnnotationExpansionControl.java
index 5758376..c601f88 100644
--- a/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/AnnotationExpansionControl.java
+++ b/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/AnnotationExpansionControl.java
@@ -1,11 +1,10 @@
 /*******************************************************************************
- * Copyright (c) 2000, 2007 IBM Corporation and others.
+ * Copyright (c) 2000, 2016 IBM Corporation and others.
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
  * http://www.eclipse.org/legal/epl-v10.html
  *
- 
  *******************************************************************************/
 package org.eclipse.dltk.internal.ui.text.hover;
 
@@ -167,9 +166,7 @@
 	 * Disposes of an item
 	 */
 	private final static class MyDisposeListener implements DisposeListener {
-		/*
-		 * @see org.eclipse.swt.events.DisposeListener#widgetDisposed(org.eclipse.swt.events.DisposeEvent)
-		 */
+		@Override
 		public void widgetDisposed(DisposeEvent e) {
 			Item item= (Item) ((Widget) e.getSource()).getData();
 			item.deselect();
@@ -185,9 +182,7 @@
 	 * Listener on context menu invocation on the items
 	 */
 	private final class MyMenuDetectListener implements Listener {
-		/*
-		 * @see org.eclipse.swt.widgets.Listener#handleEvent(org.eclipse.swt.widgets.Event)
-		 */
+		@Override
 		public void handleEvent(Event event) {
 			if (event.type == SWT.MenuDetect) {
 				// TODO: show per-item menu
@@ -200,10 +195,12 @@
 							menu.setLocation(event.x, event.y);
 							menu.addMenuListener(new MenuListener() {
 
+								@Override
 								public void menuHidden(MenuEvent e) {
 									dispose();
 								}
 
+								@Override
 								public void menuShown(MenuEvent e) {
 								}
 
@@ -221,9 +218,7 @@
 	 * Listener on mouse events on the items.
 	 */
 	private final class MyMouseListener extends MouseAdapter {
-		/*
-		 * @see org.eclipse.swt.events.MouseListener#mouseDoubleClick(org.eclipse.swt.events.MouseEvent)
-		 */
+		@Override
 		public void mouseDoubleClick(MouseEvent e) {
 			Item item= (Item) ((Widget) e.getSource()).getData();
 			if (e.button == 1 && item.fAnnotation == fInput.fAnnotations[0] && fInput.fDoubleClickListener != null) {
@@ -242,9 +237,7 @@
 //					}
 		}
 
-		/*
-		 * @see org.eclipse.swt.events.MouseListener#mouseUp(org.eclipse.swt.events.MouseEvent)
-		 */
+		@Override
 		public void mouseDown(MouseEvent e) {
 			Item item= (Item) ((Widget) e.getSource()).getData();
 			// TODO for now, to make double click work: disable single click on the first item
@@ -265,18 +258,14 @@
 	 * Listener on mouse track events on the items.
 	 */
 	private final class MyMouseTrackListener implements MouseTrackListener {
-		/*
-		 * @see org.eclipse.swt.events.MouseTrackListener#mouseEnter(org.eclipse.swt.events.MouseEvent)
-		 */
+		@Override
 		public void mouseEnter(MouseEvent e) {
 			Item item= (Item) ((Widget) e.getSource()).getData();
 			if (item != null)
 				item.selected();
 		}
 
-		/*
-		 * @see org.eclipse.swt.events.MouseTrackListener#mouseExit(org.eclipse.swt.events.MouseEvent)
-		 */
+		@Override
 		public void mouseExit(MouseEvent e) {
 
 			Item item= (Item) ((Widget) e.getSource()).getData();
@@ -301,9 +290,7 @@
 
 		}
 
-		/*
-		 * @see org.eclipse.swt.events.MouseTrackListener#mouseHover(org.eclipse.swt.events.MouseEvent)
-		 */
+		@Override
 		public void mouseHover(MouseEvent e) {
 			if (fHoverManager == null) {
 				fHoverManager= new HoverManager();
@@ -362,9 +349,7 @@
 	 * Listener on paint events on the items. Paints the annotation image on the given <code>GC</code>.
 	 */
 	private final class MyPaintListener implements PaintListener {
-		/*
-		 * @see org.eclipse.swt.events.PaintListener#paintControl(org.eclipse.swt.events.PaintEvent)
-		 */
+		@Override
 		public void paintControl(PaintEvent e) {
 			Canvas can= (Canvas) e.getSource();
 			Annotation a= ((Item) can.getData()).fAnnotation;
@@ -386,6 +371,7 @@
 		 */
 		public HoverManager() {
 			super(new IInformationControlCreator() {
+				@Override
 				public IInformationControl createInformationControl(Shell parent) {
 					return new DefaultInformationControl(parent);
 				}
@@ -396,9 +382,7 @@
 			setFallbackAnchors(new Anchor[] {ANCHOR_BOTTOM, ANCHOR_LEFT, ANCHOR_RIGHT} );
 		}
 
-		/*
-		 * @see org.eclipse.jface.text.AbstractInformationControlManager#computeInformation()
-		 */
+		@Override
 		protected void computeInformation() {
 			if (fSelection != null) {
 				Rectangle subjectArea= fSelection.canvas.getBounds();
@@ -457,6 +441,7 @@
 		fDisposeListener= new MyDisposeListener();
 		fViewportListener= new IViewportListener() {
 
+			@Override
 			public void viewportChanged(int verticalOffset) {
 				dispose();
 			}
@@ -483,6 +468,7 @@
 		fComposite.setLayoutData(data);
 		fComposite.addMouseTrackListener(new MouseTrackAdapter() {
 
+			@Override
 			public void mouseExit(MouseEvent e) {
 				if (fComposite == null)
 						return;
@@ -527,17 +513,13 @@
 		setBackgroundColor(display.getSystemColor(SWT.COLOR_INFO_BACKGROUND));
 	}
 
-	/*
-	 * @see org.eclipse.jface.text.IInformationControl#setInformation(java.lang.String)
-	 */
+	@Override
 	public void setInformation(String information) {
 		setInput(null);
 	}
 
 
-	/*
-	 * @see org.eclipse.jface.text.IInformationControlExtension2#setInput(java.lang.Object)
-	 */
+	@Override
 	public void setInput(Object input) {
 		if (fInput != null && fInput.fViewer != null)
 			fInput.fViewer.removeViewportListener(fViewportListener);
@@ -620,16 +602,12 @@
 
 	}
 
-	/*
-	 * @see IInformationControl#setVisible(boolean)
-	 */
+	@Override
 	public void setVisible(boolean visible) {
 		fShell.setVisible(visible);
 	}
 
-	/*
-	 * @see IInformationControl#dispose()
-	 */
+	@Override
 	public void dispose() {
 		if (fShell != null) {
 			if (!fShell.isDisposed())
@@ -646,73 +624,53 @@
 		}
 	}
 
-	/*
-	 * @see org.eclipse.jface.text.IInformationControlExtension#hasContents()
-	 */
+	@Override
 	public boolean hasContents() {
 		return fInput.fAnnotations != null && fInput.fAnnotations.length > 0;
 	}
 
-	/*
-	 * @see org.eclipse.jface.text.IInformationControl#setSizeConstraints(int, int)
-	 */
+	@Override
 	public void setSizeConstraints(int maxWidth, int maxHeight) {
 		//fMaxWidth= maxWidth;
 		//fMaxHeight= maxHeight;
 	}
 
-	/*
-	 * @see org.eclipse.jface.text.IInformationControl#computeSizeHint()
-	 */
+	@Override
 	public Point computeSizeHint() {
 		return fShell.computeSize(SWT.DEFAULT, SWT.DEFAULT);
 	}
 
-	/*
-	 * @see IInformationControl#setLocation(Point)
-	 */
+	@Override
 	public void setLocation(Point location) {
 		fShell.setLocation(location);
 	}
 
-	/*
-	 * @see IInformationControl#setSize(int, int)
-	 */
+	@Override
 	public void setSize(int width, int height) {
 		fShell.setSize(width, height);
 	}
 
-	/*
-	 * @see IInformationControl#addDisposeListener(DisposeListener)
-	 */
+	@Override
 	public void addDisposeListener(DisposeListener listener) {
 		fShell.addDisposeListener(listener);
 	}
 
-	/*
-	 * @see IInformationControl#removeDisposeListener(DisposeListener)
-	 */
+	@Override
 	public void removeDisposeListener(DisposeListener listener) {
 		fShell.removeDisposeListener(listener);
 	}
 
-	/*
-	 * @see IInformationControl#setForegroundColor(Color)
-	 */
+	@Override
 	public void setForegroundColor(Color foreground) {
 		fComposite.setForeground(foreground);
 	}
 
-	/*
-	 * @see IInformationControl#setBackgroundColor(Color)
-	 */
+	@Override
 	public void setBackgroundColor(Color background) {
 		fComposite.setBackground(background);
 	}
 
-	/*
-	 * @see IInformationControl#isFocusControl()
-	 */
+	@Override
 	public boolean isFocusControl() {
 		if (fComposite.isFocusControl())
 			return true;
@@ -725,23 +683,17 @@
 		return false;
 	}
 
-	/*
-	 * @see IInformationControl#setFocus()
-	 */
+	@Override
 	public void setFocus() {
 		fShell.forceFocus();
 	}
 
-	/*
-	 * @see IInformationControl#addFocusListener(FocusListener)
-	 */
+	@Override
 	public void addFocusListener(FocusListener listener) {
 		fShell.addFocusListener(listener);
 	}
 
-	/*
-	 * @see IInformationControl#removeFocusListener(FocusListener)
-	 */
+	@Override
 	public void removeFocusListener(FocusListener listener) {
 		fShell.removeFocusListener(listener);
 	}
diff --git a/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/BestMatchHover.java b/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/BestMatchHover.java
index 0575eb8..226cb5c 100644
--- a/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/BestMatchHover.java
+++ b/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/BestMatchHover.java
@@ -1,11 +1,10 @@
 /*******************************************************************************
- * Copyright (c) 2000, 2007 IBM Corporation and others.
+ * Copyright (c) 2000, 2016 IBM Corporation and others.
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
  * http://www.eclipse.org/legal/epl-v10.html
  *
- 
  *******************************************************************************/
 package org.eclipse.dltk.internal.ui.text.hover;
 
@@ -97,9 +96,6 @@
 			fInstantiatedTextHovers.add(hover);
 	}
 
-	/*
-	 * @see ITextHover#getHoverInfo(ITextViewer, IRegion)
-	 */
 	@Override
 	public String getHoverInfo(ITextViewer textViewer, IRegion hoverRegion) {
 
@@ -120,9 +116,6 @@
 		return null;
 	}
 
-	/*
-	 * @see org.eclipse.jface.text.ITextHoverExtension#getHoverControlCreator()
-	 */
 	@Override
 	public IInformationControlCreator getHoverControlCreator() {
 		if (fBestHover instanceof ITextHoverExtension)
@@ -131,10 +124,7 @@
 		return null;
 	}
 
-	/*
-	 * @see
-	 * IInformationProviderExtension2#getInformationPresenterControlCreator()
-	 */
+	@Override
 	public IInformationControlCreator getInformationPresenterControlCreator() {
 		if (fBestHover instanceof IInformationProviderExtension2)
 			return ((IInformationProviderExtension2) fBestHover)
diff --git a/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/CompletionHoverControlCreator.java b/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/CompletionHoverControlCreator.java
index ba259ee..267a3db 100644
--- a/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/CompletionHoverControlCreator.java
+++ b/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/CompletionHoverControlCreator.java
@@ -59,6 +59,7 @@
 	 * AbstractReusableInformationControlCreator
 	 * #doCreateInformationControl(org.eclipse.swt.widgets.Shell)
 	 */
+	@Override
 	public IInformationControl doCreateInformationControl(Shell parent) {
 		String tooltipAffordanceString = fAdditionalInfoAffordance ? DLTKUIPlugin
 				.getAdditionalInfoAffordanceString()
@@ -67,10 +68,7 @@
 			BrowserInformationControl2 iControl = new BrowserInformationControl2(
 					parent, SWT.TOOL | SWT.NO_TRIM, SWT.NONE,
 					tooltipAffordanceString) {
-				/*
-				 * @see org.eclipse.jface.text.IInformationControlExtension5#
-				 * getInformationPresenterControlCreator()
-				 */
+				@Override
 				public IInformationControlCreator getInformationPresenterControlCreator() {
 					return fInformationPresenterControlCreator;
 				}
@@ -87,6 +85,7 @@
 	 * AbstractReusableInformationControlCreator
 	 * #canReuse(org.eclipse.jface.text.IInformationControl)
 	 */
+	@Override
 	public boolean canReuse(IInformationControl control) {
 		if (!super.canReuse(control))
 			return false;
diff --git a/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/DocumentationHover.java b/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/DocumentationHover.java
index a9562ec..4f373c7 100644
--- a/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/DocumentationHover.java
+++ b/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/DocumentationHover.java
@@ -1,11 +1,10 @@
 /*******************************************************************************
- * Copyright (c) 2000, 2007 IBM Corporation and others.
+ * Copyright (c) 2000, 2016 IBM Corporation and others.
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
  * http://www.eclipse.org/legal/epl-v10.html
  *
- 
  *******************************************************************************/
 package org.eclipse.dltk.internal.ui.text.hover;
 
@@ -280,6 +279,7 @@
 				// }
 
 				IInputChangedListener inputChangeListener = new IInputChangedListener() {
+					@Override
 					public void inputChanged(Object newInput) {
 						backAction.update();
 						forwardAction.update();
@@ -313,6 +313,7 @@
 		}
 	}
 
+	@Override
 	public IInformationControlCreator getInformationPresenterControlCreator() {
 		if (fPresenterControlCreator == null) {
 			fPresenterControlCreator = new PresenterControlCreator(getSite());
@@ -591,6 +592,7 @@
 
 		private ScriptElementImageProvider fImageProvider;
 
+		@Override
 		public String getTitle(Object element) {
 			if (element instanceof IModelElement) {
 				IModelElement member = (IModelElement) element;
@@ -604,6 +606,7 @@
 			}
 		}
 
+		@Override
 		public ImageDescriptor getImage(Object element) {
 			if (element instanceof IModelElement) {
 				final IModelElement modelElement = (IModelElement) element;
diff --git a/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/EditorTextHoverProxy.java b/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/EditorTextHoverProxy.java
index fff8511..427a19f 100644
--- a/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/EditorTextHoverProxy.java
+++ b/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/EditorTextHoverProxy.java
@@ -1,11 +1,10 @@
 /*******************************************************************************
- * Copyright (c) 2000, 2007 IBM Corporation and others.
+ * Copyright (c) 2000, 2016 IBM Corporation and others.
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
  * http://www.eclipse.org/legal/epl-v10.html
  *
- 
  *******************************************************************************/
 
 package org.eclipse.dltk.internal.ui.text.hover;
@@ -58,9 +57,6 @@
 		return true;
 	}
 
-	/*
-	 * @see ITextHover#getHoverRegion(ITextViewer, int)
-	 */
 	@Override
 	public IRegion getHoverRegion(ITextViewer textViewer, int offset) {
 		if (ensureHoverCreated())
@@ -69,9 +65,6 @@
 		return null;
 	}
 
-	/*
-	 * @see ITextHover#getHoverInfo(ITextViewer, IRegion)
-	 */
 	@Override
 	public String getHoverInfo(ITextViewer textViewer, IRegion hoverRegion) {
 		if (ensureHoverCreated())
@@ -99,9 +92,6 @@
 		return isCreated();
 	}
 
-	/*
-	 * @see org.eclipse.jface.text.ITextHoverExtension#getHoverControlCreator()
-	 */
 	@Override
 	public IInformationControlCreator getHoverControlCreator() {
 		if (ensureHoverCreated() && (fHover instanceof ITextHoverExtension))
@@ -110,10 +100,7 @@
 		return null;
 	}
 
-	/*
-	 * @see org.eclipse.jface.text.information.IInformationProviderExtension2#
-	 * getInformationPresenterControlCreator()
-	 */
+	@Override
 	public IInformationControlCreator getInformationPresenterControlCreator() {
 		if (ensureHoverCreated()
 				&& (fHover instanceof IInformationProviderExtension2))
diff --git a/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/ScriptExpandHover.java b/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/ScriptExpandHover.java
index cfecd93..2733f5b 100644
--- a/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/ScriptExpandHover.java
+++ b/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/ScriptExpandHover.java
@@ -1,11 +1,10 @@
 /*******************************************************************************
- * Copyright (c) 2000, 2007 IBM Corporation and others.
+ * Copyright (c) 2000, 2016 IBM Corporation and others.
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
  * http://www.eclipse.org/legal/epl-v10.html
  *
- 
  *******************************************************************************/
 package org.eclipse.dltk.internal.ui.text.hover;
 
@@ -57,18 +56,14 @@
 			super(NO_BREAKPOINT_ANNOTATION, false, ScriptHoverMessages.NoBreakpointAnnotation_addBreakpoint);
 		}
 
-		/*
-		 * @see org.eclipse.jface.text.source.IAnnotationPresentation#paint(org.eclipse.swt.graphics.GC, org.eclipse.swt.widgets.Canvas, org.eclipse.swt.graphics.Rectangle)
-		 */
+		@Override
 		public void paint(GC gc, Canvas canvas, Rectangle bounds) {
 			// draw affordance so the user know she can click here to get a breakpoint
 			Image fImage= DLTKPluginImages.get(DLTKPluginImages.IMG_FIELD_DEFAULT);
 			ImageUtilities.drawImage(fImage, gc, canvas, bounds, SWT.CENTER);
 		}
 
-		/*
-		 * @see org.eclipse.jface.text.source.IAnnotationPresentation#getLayer()
-		 */
+		@Override
 		public int getLayer() {
 			return IAnnotationPresentation.DEFAULT_LAYER;
 		}
@@ -81,9 +76,7 @@
 		super(ruler, access, doubleClickListener);
 	}
 
-	/*
-	 * @see org.eclipse.ui.internal.texteditor.AnnotationExpandHover#getHoverInfoForLine(org.eclipse.jface.text.source.ISourceViewer, int)
-	 */
+	@Override
 	protected Object getHoverInfoForLine(final ISourceViewer viewer, final int line) {
 		final boolean showTemporaryProblems= DLTKUIPlugin.getDefault().getPreferenceStore().getBoolean(PreferenceConstants.EDITOR_CORRECTION_INDICATION);
 		IAnnotationModel model= viewer.getAnnotationModel();
@@ -148,6 +141,7 @@
 		input.fDoubleClickListener= fDblClickListener;
 		input.redoAction= new AnnotationExpansionControl.ICallback() {
 
+			@Override
 			public void run(IInformationControlExtension2 control) {
 				control.setInput(getHoverInfoForLine(viewer, line));
 			}
@@ -180,9 +174,7 @@
 		return showTemporaryProblems /*&& JavaCorrectionProcessor.hasCorrections((Annotation)annotation)*/;
 	}
 
-	/*
-	 * @see org.eclipse.ui.internal.texteditor.AnnotationExpandHover#getOrder(org.eclipse.jface.text.source.Annotation)
-	 */
+	@Override
 	protected int getOrder(Annotation annotation) {
 		if (isBreakpointAnnotation(annotation)) 
 			return 1000;
diff --git a/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/ScriptInformationProvider.java b/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/ScriptInformationProvider.java
index 1858b79..729bf85 100644
--- a/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/ScriptInformationProvider.java
+++ b/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/ScriptInformationProvider.java
@@ -1,11 +1,10 @@
 /*******************************************************************************
- * Copyright (c) 2000, 2007 IBM Corporation and others.
+ * Copyright (c) 2000, 2016 IBM Corporation and others.
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
  * http://www.eclipse.org/legal/epl-v10.html
  *
- 
  *******************************************************************************/
 package org.eclipse.dltk.internal.ui.text.hover;
 
@@ -35,12 +34,15 @@
 
 	class EditorWatcher implements IPartListener {
 
+		@Override
 		public void partOpened(IWorkbenchPart part) {
 		}
 
+		@Override
 		public void partDeactivated(IWorkbenchPart part) {
 		}
 
+		@Override
 		public void partClosed(IWorkbenchPart part) {
 			if (part == fEditor) {
 				fEditor.getSite().getWorkbenchWindow().getPartService()
@@ -49,10 +51,12 @@
 			}
 		}
 
+		@Override
 		public void partActivated(IWorkbenchPart part) {
 			update();
 		}
 
+		@Override
 		public void partBroughtToTop(IWorkbenchPart part) {
 			update();
 		}
@@ -104,6 +108,7 @@
 		}
 	}
 
+	@Override
 	public IRegion getSubject(ITextViewer textViewer, int offset) {
 
 		if (textViewer != null)
@@ -112,6 +117,7 @@
 		return null;
 	}
 
+	@Override
 	public String getInformation(ITextViewer textViewer, IRegion subject) {
 		if (fImplementation != null) {
 			String s = fImplementation.getHoverInfo(textViewer, subject);
@@ -123,10 +129,12 @@
 		return null;
 	}
 
+	@Override
 	public IInformationControlCreator getInformationPresenterControlCreator() {
 		if (fPresenterControlCreator == null) {
 			fPresenterControlCreator = new AbstractReusableInformationControlCreator() {
 
+				@Override
 				public IInformationControl doCreateInformationControl(
 						Shell parent) {
 					if (BrowserInformationControl.isAvailable(parent))
diff --git a/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/ScriptSourceHover.java b/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/ScriptSourceHover.java
index 12020b7..c49df08 100644
--- a/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/ScriptSourceHover.java
+++ b/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/ScriptSourceHover.java
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2000, 2007 IBM Corporation and others.
+ * Copyright (c) 2000, 2016 IBM Corporation and others.
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
@@ -36,6 +36,7 @@
 	/*
 	 * @see JavaElementHover
 	 */
+	@Override
 	protected String getHoverInfo(String nature, IModelElement[] result) {
 		int nResults = result.length;
 
@@ -71,8 +72,10 @@
 		return null;
 	}
 
+	@Override
 	public IInformationControlCreator getHoverControlCreator() {
 		return new IInformationControlCreator() {
+			@Override
 			public IInformationControl createInformationControl(Shell parent) {
 				IEditorPart editor = getEditor();
 				if (editor instanceof ScriptEditor) {
@@ -90,14 +93,10 @@
 		};
 	}
 
-	/*
-	 * @see
-	 * IInformationProviderExtension2#getInformationPresenterControlCreator()
-	 * 
-	 * @since 3.0
-	 */
+	@Override
 	public IInformationControlCreator getInformationPresenterControlCreator() {
 		return new IInformationControlCreator() {
+			@Override
 			public IInformationControl createInformationControl(Shell parent) {
 				int style = SWT.V_SCROLL | SWT.H_SCROLL;
 				int shellStyle = SWT.RESIZE | SWT.TOOL;
diff --git a/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/ScriptTypeHover.java b/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/ScriptTypeHover.java
index a9e1702..17326bd 100644
--- a/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/ScriptTypeHover.java
+++ b/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/ScriptTypeHover.java
@@ -1,11 +1,10 @@
 /*******************************************************************************
- * Copyright (c) 2000, 2007 IBM Corporation and others.
+ * Copyright (c) 2000, 2016 IBM Corporation and others.
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
  * http://www.eclipse.org/legal/epl-v10.html
  *
- 
  *******************************************************************************/
 package org.eclipse.dltk.internal.ui.text.hover;
 
@@ -23,18 +22,22 @@
 		fDocumentationHover = new DocumentationHover();
 	}
 
+	@Override
 	public void setEditor(IEditorPart editor) {
 		fDocumentationHover.setEditor(editor);
 	}
 
+	@Override
 	public void setPreferenceStore(IPreferenceStore store) {
 		fDocumentationHover.setPreferenceStore(store);
 	}
 
+	@Override
 	public IRegion getHoverRegion(ITextViewer textViewer, int offset) {
 		return fDocumentationHover.getHoverRegion(textViewer, offset);
 	}
 
+	@Override
 	public String getHoverInfo(ITextViewer textViewer, IRegion hoverRegion) {
 		return fDocumentationHover.getHoverInfo(textViewer, hoverRegion);
 	}
diff --git a/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/SourceViewerInformationControl.java b/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/SourceViewerInformationControl.java
index cda0431..a42066c 100644
--- a/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/SourceViewerInformationControl.java
+++ b/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/internal/ui/text/hover/SourceViewerInformationControl.java
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2000, 2007 IBM Corporation and others.
+ * Copyright (c) 2000, 2016 IBM Corporation and others.
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
@@ -179,11 +179,13 @@
 
 		fText.addKeyListener(new KeyListener() {
 
+			@Override
 			public void keyPressed(KeyEvent e) {
 				if (e.character == 0x1B) // ESC
 					fShell.dispose();
 			}
 
+			@Override
 			public void keyReleased(KeyEvent e) {
 			}
 		});
@@ -326,9 +328,6 @@
 		styledText.setFont(font);
 	}
 
-	/*
-	 * @see org.eclipse.jface.text.IInformationControlExtension2#setInput(java.lang.Object)
-	 */
 	public void setInput(Object input) {
 		if (input instanceof String)
 			setInformation((String) input);
@@ -336,9 +335,7 @@
 			setInformation(null);
 	}
 
-	/*
-	 * @see IInformationControl#setInformation(String)
-	 */
+	@Override
 	public void setInformation(String content) {
 		if (content == null) {
 			fViewer.setInput(null);
@@ -354,18 +351,12 @@
 		fViewer.setInput(doc);
 	}
 
-	/*
-	 * @see IInformationControl#setVisible(boolean)
-	 */
+	@Override
 	public void setVisible(boolean visible) {
 		fShell.setVisible(visible);
 	}
 
-	/**
-	 * {@inheritDoc}
-	 * 
-	 * @since 3.0
-	 */
+	@Override
 	public void widgetDisposed(DisposeEvent event) {
 		if (fStatusTextFont != null && !fStatusTextFont.isDisposed())
 			fStatusTextFont.dispose();
@@ -375,9 +366,7 @@
 		fText = null;
 	}
 
-	/**
-	 * {@inheritDoc}
-	 */
+	@Override
 	public final void dispose() {
 		if (!fIsSystemBackgroundColor)
 			fBackgroundColor.dispose();
@@ -387,9 +376,7 @@
 			widgetDisposed(null);
 	}
 
-	/*
-	 * @see IInformationControl#setSize(int, int)
-	 */
+	@Override
 	public void setSize(int width, int height) {
 
 		if (fStatusField != null) {
@@ -406,24 +393,18 @@
 			fShell.pack(true);
 	}
 
-	/*
-	 * @see IInformationControl#setLocation(Point)
-	 */
+	@Override
 	public void setLocation(Point location) {
 		fShell.setLocation(location);
 	}
 
-	/*
-	 * @see IInformationControl#setSizeConstraints(int, int)
-	 */
+	@Override
 	public void setSizeConstraints(int maxWidth, int maxHeight) {
 		fMaxWidth = maxWidth;
 		fMaxHeight = maxHeight;
 	}
 
-	/*
-	 * @see IInformationControl#computeSizeHint()
-	 */
+	@Override
 	public Point computeSizeHint() {
 		// compute the preferred size
 		int x = SWT.DEFAULT;
@@ -442,66 +423,48 @@
 		return size;
 	}
 
-	/*
-	 * @see IInformationControl#addDisposeListener(DisposeListener)
-	 */
+	@Override
 	public void addDisposeListener(DisposeListener listener) {
 		fShell.addDisposeListener(listener);
 	}
 
-	/*
-	 * @see IInformationControl#removeDisposeListener(DisposeListener)
-	 */
+	@Override
 	public void removeDisposeListener(DisposeListener listener) {
 		fShell.removeDisposeListener(listener);
 	}
 
-	/*
-	 * @see IInformationControl#setForegroundColor(Color)
-	 */
+	@Override
 	public void setForegroundColor(Color foreground) {
 		fText.setForeground(foreground);
 	}
 
-	/*
-	 * @see IInformationControl#setBackgroundColor(Color)
-	 */
+	@Override
 	public void setBackgroundColor(Color background) {
 		fText.setBackground(background);
 	}
 
-	/*
-	 * @see IInformationControl#isFocusControl()
-	 */
+	@Override
 	public boolean isFocusControl() {
 		return fText.isFocusControl();
 	}
 
-	/*
-	 * @see IInformationControl#setFocus()
-	 */
+	@Override
 	public void setFocus() {
 		fShell.forceFocus();
 		fText.setFocus();
 	}
 
-	/*
-	 * @see IInformationControl#addFocusListener(FocusListener)
-	 */
+	@Override
 	public void addFocusListener(FocusListener listener) {
 		fText.addFocusListener(listener);
 	}
 
-	/*
-	 * @see IInformationControl#removeFocusListener(FocusListener)
-	 */
+	@Override
 	public void removeFocusListener(FocusListener listener) {
 		fText.removeFocusListener(listener);
 	}
 
-	/*
-	 * @see IInformationControlExtension#hasContents()
-	 */
+	@Override
 	public boolean hasContents() {
 		return fText.getCharCount() > 0;
 	}