Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2010-10-19 08:22:46 +0000
committerDani Megert2010-10-19 08:22:46 +0000
commit6154db8b8a9c17e9bf097b8d7a5e0212678f2028 (patch)
treec1c10558dc2a4ce78a47d8239abb5f0902ba3e18 /org.eclipse.text/projection/org/eclipse/jface
parente604324cec0ba9a783e39b006e6c524286925e41 (diff)
downloadeclipse.platform.text-6154db8b8a9c17e9bf097b8d7a5e0212678f2028.tar.gz
eclipse.platform.text-6154db8b8a9c17e9bf097b8d7a5e0212678f2028.tar.xz
eclipse.platform.text-6154db8b8a9c17e9bf097b8d7a5e0212678f2028.zip
Provide more details when throwing ISE.
Diffstat (limited to 'org.eclipse.text/projection/org/eclipse/jface')
-rw-r--r--org.eclipse.text/projection/org/eclipse/jface/text/projection/ProjectionMapping.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.text/projection/org/eclipse/jface/text/projection/ProjectionMapping.java b/org.eclipse.text/projection/org/eclipse/jface/text/projection/ProjectionMapping.java
index 4cc2339fe7e..a162d298aca 100644
--- a/org.eclipse.text/projection/org/eclipse/jface/text/projection/ProjectionMapping.java
+++ b/org.eclipse.text/projection/org/eclipse/jface/text/projection/ProjectionMapping.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2008 IBM Corporation and others.
+ * Copyright (c) 2000, 2010 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
@@ -477,7 +477,7 @@ public class ProjectionMapping implements IDocumentInformationMapping , IDocumen
int endLine= fSlaveDocument.getLineOfOffset(imageRegion.getOffset() + imageRegion.getLength());
if (endLine != startLine)
- throw new IllegalStateException();
+ throw new IllegalStateException("startLine (" + startLine + ") does not match endLine (" + endLine + ")"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
return startLine;
}

Back to the top