Example #1
0
 /* Run the script currently in the editor */
 private void runEditorScript() {
   try {
     irbOutput.append("[Running editor script (" + currentScript.getName() + ")]\n");
     String inspected = currentScript.setContents(sourceEditor.getText().toString()).execute();
     irbOutput.append("=> " + inspected + "\n>> ");
     tabs.setCurrentTab(IRB_TAB);
   } catch (IOException e) {
     Toast.makeText(this, "Could not execute script", Toast.LENGTH_SHORT).show();
   }
 }