161162163164165166167168169170
} public static ScriptEditorPane paneFor(Script script, ScriptEditor editor) { switch (script.language) { case RUBY: return new RubyScriptEditorPane(editor); default: throw new RuntimeException("No editor defined for lang: " + script.language); } }