Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Loskutov2020-10-08 07:51:12 +0000
committerAndrey Loskutov2020-10-08 07:51:12 +0000
commit2f1c558935fde3265f976623e9ac81d20e92c405 (patch)
treed9debc50acda333509a42d5a83ee4678b96324c2
parent91ca97311c9424031826c33bac43fcb9fbaac274 (diff)
downloadeclipse.jdt.debug-I20201009-0800.tar.gz
eclipse.jdt.debug-I20201009-0800.tar.xz
eclipse.jdt.debug-I20201009-0800.zip
starts with tab Search not only for spaces, but also for tabs - and trim the result to avoid white space in the link. Change-Id: I2df23d8ba0c9b2e7b65e6e6d4b0efd0e42260e99 Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
-rw-r--r--org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/console/JavaStackTraceHyperlink.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/console/JavaStackTraceHyperlink.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/console/JavaStackTraceHyperlink.java
index 4a1819abe..aeeba2c90 100644
--- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/console/JavaStackTraceHyperlink.java
+++ b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/console/JavaStackTraceHyperlink.java
@@ -314,8 +314,11 @@ public class JavaStackTraceHyperlink implements IHyperlink {
int linkEnd = line.indexOf(')', regionOffsetInLine);
int linkStart = line.lastIndexOf(' ', regionOffsetInLine);
+ if (linkStart == -1) {
+ linkStart = line.lastIndexOf('\t', regionOffsetInLine);
+ }
- return line.substring(linkStart==-1?0:linkStart+1,linkEnd+1);
+ return line.substring(linkStart==-1?0:linkStart+1,linkEnd+1).trim();
} catch (BadLocationException e) {
IStatus status = new Status(IStatus.ERROR, JDIDebugUIPlugin.getUniqueIdentifier(), 0, ConsoleMessages.JavaStackTraceHyperlink_Unable_to_retrieve_hyperlink_text__8, e);
throw new CoreException(status);

Back to the top