Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Xenos2016-10-04 04:39:30 +0000
committerSergey Prigogin2016-10-04 19:33:53 +0000
commit8bf2a6706eba011ce457203099d94f52ca3a10da (patch)
tree25d5a9135638bed6ac9f5b59118c9776c9a49b94
parentc0dabd040a98465747ebac2598a6ccc8fb0ab4f7 (diff)
downloadeclipse.platform.text-8bf2a6706eba011ce457203099d94f52ca3a10da.tar.gz
eclipse.platform.text-8bf2a6706eba011ce457203099d94f52ca3a10da.tar.xz
eclipse.platform.text-8bf2a6706eba011ce457203099d94f52ca3a10da.zip
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>
-rw-r--r--org.eclipse.jface.text/src/org/eclipse/jface/text/TextViewerHoverManager.java3
1 files changed, 3 insertions, 0 deletions
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 0148a3a3b10..de9da1cea86 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.swt.widgets.Display;
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 @@ class TextViewerHoverManager extends AbstractHoverInformationControlManager impl
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));

Back to the top