diff options
author | Dani Megert | 2010-10-19 08:22:46 +0000 |
---|---|---|
committer | Dani Megert | 2010-10-19 08:22:46 +0000 |
commit | 6154db8b8a9c17e9bf097b8d7a5e0212678f2028 (patch) | |
tree | c1c10558dc2a4ce78a47d8239abb5f0902ba3e18 /org.eclipse.text | |
parent | e604324cec0ba9a783e39b006e6c524286925e41 (diff) | |
download | eclipse.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')
-rw-r--r-- | org.eclipse.text/projection/org/eclipse/jface/text/projection/ProjectionMapping.java | 4 |
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; } |