public String getStackFrameLabel(StackFrame stackFrame) throws DebugException {
   CallFrame callFrame = stackFrame.getCallFrame();
   String name = callFrame.getFunctionName();
   Script script = callFrame.getScript();
   String scriptName;
   if (script == null) {
     scriptName = Messages.StackFrame_UnknownScriptName;
   } else {
     scriptName = VmResourceId.forScript(script).getVisibleName();
   }
   int line = stackFrame.getLineNumber();
   if (line != -1) {
     name = NLS.bind(Messages.StackFrame_NameFormat, new Object[] {name, scriptName, line});
   }
   return name;
 }