Package com.aptana.interactive_console.console.codegen

Examples of com.aptana.interactive_console.console.codegen.SafeScriptConsoleCodeGenerator


            fail();
        } catch (RuntimeException e) {
            assertEquals("getPyCode Forced Failure", e.getMessage());
        }

        IScriptConsoleCodeGenerator wrapped = new SafeScriptConsoleCodeGenerator(generator);
        assertEquals(false, wrapped.hasPyCode());
        assertEquals(null, wrapped.getPyCode());

        StructuredSelection selection = new StructuredSelection(generator);
        IScriptConsoleCodeGenerator wrappedSelection = new SafeScriptConsoleCodeGenerator(getGen(selection));
        assertEquals(false, wrappedSelection.hasPyCode());
        assertEquals(null, wrappedSelection.getPyCode());
    }
View Full Code Here


            private SafeScriptConsoleCodeGenerator getSafeGenerator() {
                ISelection selection = LocalSelectionTransfer.getTransfer().getSelection();
                IScriptConsoleCodeGenerator codeGenerator = PythonSnippetUtils
                        .getScriptConsoleCodeGeneratorAdapter(selection);
                return new SafeScriptConsoleCodeGenerator(codeGenerator);
            }
View Full Code Here

TOP

Related Classes of com.aptana.interactive_console.console.codegen.SafeScriptConsoleCodeGenerator

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.