public static String[] getErrorMessages(IScriptEvaluationResult result) {
   if (result == null) {
     return new String[0];
   }
   String messages[] = result.getErrorMessages();
   if (messages.length > 0) {
     return messages;
   }
   DebugException exception = result.getException();
   if (exception != null) {
     return new String[] {exception.getMessage()};
   }
   return new String[0];
 }
 public IValue getValue() {
   return result.getValue();
 }
 public String getExpressionText() {
   return result.getSnippet();
 }
 public IDebugTarget getDebugTarget() {
   return result.getThread().getDebugTarget();
 }
 public boolean hasErrors() {
   return result.hasErrors();
 }