Bug 503149 - IndexException thrown during TextViewerHoverManager$4.run

Handle and ignore OperationCanceledException in
TextViewerHoverManager$4.run.

Change-Id: Iccace86e0031e48bf3833e24dac699e610047e9b
Signed-off-by: Stefan Xenos <sxenos@gmail.com>
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/TextViewerHoverManager.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/TextViewerHoverManager.java
index 0148a3a..de9da1c 100644
--- a/org.eclipse.jface.text/src/org/eclipse/jface/text/TextViewerHoverManager.java
+++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/TextViewerHoverManager.java
@@ -20,6 +20,7 @@
 
 import org.eclipse.core.runtime.ILog;
 import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.OperationCanceledException;
 import org.eclipse.core.runtime.Platform;
 import org.eclipse.core.runtime.Status;
 
@@ -186,6 +187,8 @@
 						setInformation(null, null);
 					}
 					hasFinished= true;
+				} catch (OperationCanceledException e) {
+					// Just swallow the exception if the operation was canceled
 				} catch (RuntimeException ex) {
 					String PLUGIN_ID= "org.eclipse.jface.text"; //$NON-NLS-1$
 					ILog log= Platform.getLog(Platform.getBundle(PLUGIN_ID));