Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarsten Thoms2017-08-29 22:39:22 -0400
committerDani Megert2017-09-18 11:06:54 -0400
commit9bd6b4bc5f92f9582dadc1ccf23a7f02cbe4d637 (patch)
tree11628c98ef03bf26cb9c5b8315e30cc1770a3935
parentaf04cf1999227a7e74d86c687b4289e27cd594fd (diff)
downloadeclipse.platform.text-9bd6b4bc5f92f9582dadc1ccf23a7f02cbe4d637.tar.gz
eclipse.platform.text-9bd6b4bc5f92f9582dadc1ccf23a7f02cbe4d637.tar.xz
eclipse.platform.text-9bd6b4bc5f92f9582dadc1ccf23a7f02cbe4d637.zip
Bug 521494 - Print class name of invalid input typeI20170918-2000
Caller provides a wrong type of input, but it is not known yet which type of input is provided. Adding the input type should help to identify the problem. Change-Id: I2b3cbd70378234b082aa76c27f346722c79b239c Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
-rw-r--r--org.eclipse.jface.text/src/org/eclipse/jface/internal/text/html/BrowserInformationControl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/html/BrowserInformationControl.java b/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/html/BrowserInformationControl.java
index 43bc6bc4c..c10b485b3 100644
--- a/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/html/BrowserInformationControl.java
+++ b/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/html/BrowserInformationControl.java
@@ -271,7 +271,7 @@ public class BrowserInformationControl extends AbstractInformationControl implem
*/
@Override
public void setInput(Object input) {
- Assert.isLegal(input == null || input instanceof String || input instanceof BrowserInformationControlInput);
+ Assert.isLegal(input == null || input instanceof String || input instanceof BrowserInformationControlInput, input != null ? input.getClass().getName() : "null"); //$NON-NLS-1$
if (input instanceof String) {
setInformation((String)input);

Back to the top