Object returnValue; try { returnValue = interp.eval(command); } catch(Throwable e) { returnValue = null;  if(e instanceof TargetError) e = ((TargetError)e).getTarget();  if(e instanceof InvocationTargetException) e = ((InvocationTargetException)e).getTargetException();  Log.log(Log.ERROR,BeanShell.class,e); GUIUtilities.error(view,"beanshell-error", new String[] { command, e.toString() }); }  if(view != null) { interp.setVariable("view",null); interp.setVariable("editPane",null); interp.setVariable("buffer",null); interp.setVariable("textArea",null); }  return returnValue;
	public static void eval(View view)	{		String command = GUIUtilities.input(view,"beanshell-eval-input",null);		if(command != null)		{			Object returnValue = eval(view,command);			if(returnValue != null)			{				String[] args = { returnValue.toString() };				GUIUtilities.message(view,"beanshell-eval",args);			}		}	}