1 11 package org.eclipse.jdt.internal.debug.ui.console; 12 13 14 import org.eclipse.core.runtime.CoreException; 15 import org.eclipse.core.runtime.IStatus; 16 import org.eclipse.core.runtime.Status; 17 import org.eclipse.debug.ui.console.IConsole; 18 import org.eclipse.jdt.internal.debug.ui.JDIDebugUIPlugin; 19 20 23 public class J9StackTraceHyperlink extends JavaStackTraceHyperlink { 24 25 28 public J9StackTraceHyperlink(IConsole console) { 29 super(console); 30 } 31 32 35 protected String getTypeName() throws CoreException { 36 String linkText = getLinkText(); 37 int index = linkText.lastIndexOf('('); 38 if (index >= 0) { 39 String typeName = linkText.substring(0, index); 40 index = typeName.lastIndexOf('.'); 42 if (index >= 0) { 43 typeName = typeName.substring(0, index); 44 } 45 return typeName.replace('/', '.'); 47 } else { 48 IStatus status = new Status(IStatus.ERROR, JDIDebugUIPlugin.getUniqueIdentifier(), 0, ConsoleMessages.getString("J9StackTraceHyperlink.Unable_to_parse_type_name_from_hyperlink._1"), null); throw new CoreException(status); 50 } 51 } 52 53 56 protected int getLineNumber() { 57 return -1; 58 } 59 60 } 61 | Popular Tags |