Package net.cakenet.jsaton.script.ruby

Examples of net.cakenet.jsaton.script.ruby.RubyScript


    public List getFolds(RSyntaxTextArea textArea) {
        if (!(textArea instanceof RubyScriptEditorPane))
            return null;

        RubyScriptEditorPane rsp = (RubyScriptEditorPane) textArea;
        RubyScript script = (RubyScript) rsp.script;
        script.setScript(rsp.getText());
        Node root = script.getAST();
        if(root == null) {
            if (foldCache.containsKey(textArea))
                return foldCache.get(textArea);
            return null;
        }
View Full Code Here


    public RubyScriptEditorPane(ScriptEditor editor) {
        super(editor);
        if(!(script instanceof RubyScript))
            throw new RuntimeException("We can only do ruby scripts...");
        getDocument().addDocumentListener(this);
        RubyScript rs = (RubyScript) script;
        super.addParser(rs);
    }
View Full Code Here

        initToolWindows();
        initRecent();
        System.setIn(log.log.getInputStream());
        System.setErr(new PrintStream(log.log.createOutputStream(System.err, err)));
        System.setOut(new PrintStream(log.log.createOutputStream(System.out, out)));
        ScriptEditor se = newScriptWindow(new RubyScript());
        selectWindow.setInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW, null);
        selectWindow.setInputMap(JComponent.WHEN_FOCUSED, null);
        selectWindow.setInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, null);
        MouseAdapter mad = new MouseAdapter() {
            private Cursor prevCursor;
View Full Code Here

    public static Script create(ScriptLanguage lang) {
        if(lang == null)
            throw new RuntimeException("null");
        switch(lang) {
            case RUBY:
                return new RubyScript();
            default:
                throw new RuntimeException("No support for " + lang + " in load script...");
        }
    }
View Full Code Here

TOP

Related Classes of net.cakenet.jsaton.script.ruby.RubyScript

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.