Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Keller2012-04-27 15:45:55 +0000
committerMarkus Keller2012-04-27 15:52:52 +0000
commit9558f5a5e14eaec888fafeb1bde73d2af5fb2aea (patch)
tree25d68925a051c7dd63b16baf8fbd12676dd5dc0c
parent71814d48a923c5a6fa5a7ec51a196e366a6dcc37 (diff)
downloadeclipse.platform.text-9558f5a5e14eaec888fafeb1bde73d2af5fb2aea.tar.gz
eclipse.platform.text-9558f5a5e14eaec888fafeb1bde73d2af5fb2aea.tar.xz
eclipse.platform.text-9558f5a5e14eaec888fafeb1bde73d2af5fb2aea.zip
F2 should not try to enrich hovers that don't want to be enriched.v20120427-1552I20120430-1500I20120430-1300I20120429-2000I20120429-1800I20120429-1245I20120429-1000
-rw-r--r--org.eclipse.jface.text/src/org/eclipse/jface/text/TextViewerHoverManager.java5
1 files changed, 4 insertions, 1 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 784671f950b..14e9738f468 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
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2008 IBM Corporation and others.
+ * Copyright (c) 2000, 2012 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
@@ -358,6 +358,9 @@ class TextViewerHoverManager extends AbstractHoverInformationControlManager impl
return true;
}
+ if (iControl instanceof IInformationControlExtension5) {
+ return true; // The iControl didn't return an information presenter control creator, so let's stop here.
+ }
return false;
}

Back to the top