Package com.dubture.twig.core.codeassist.context

Examples of com.dubture.twig.core.codeassist.context.TestContext


    @Override
    public void apply(ICompletionReporter reporter) throws Exception
    {

        TestContext ctx = (TestContext) getContext();

        IScriptProject project = ctx.getSourceModule().getScriptProject();
        Test[] tests = TwigModelAccess.getDefault().getTests(project);
        SourceRange range = getReplacementRange(ctx);
        String prefix = ctx.getPrefix();

        for (Test test : tests) {
            if (CodeAssistUtils.startsWithIgnoreCase(test.getElementName(),
                    prefix)) {
                test.setScriptProject(project);
View Full Code Here


        contexts.add(new VariableFieldContext());
        contexts.add(new TemplateVariablesContext());
        contexts.add(new QuotesContext());
        contexts.add(new FunctionContext());
        contexts.add(new TagContext());
        contexts.add(new TestContext());
        contexts.add(new BlocknameContext());

        IConfigurationElement[] config = Platform.getExtensionRegistry()
                .getConfigurationElementsFor(CONTEXTYFACTORY_ID);
View Full Code Here

TOP

Related Classes of com.dubture.twig.core.codeassist.context.TestContext

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.