Package org.drools.eclipse.dsl.editor

Examples of org.drools.eclipse.dsl.editor.DSLAdapter


       
    }
   
    @Test
    public void testLoadGrammar() throws Exception {
        DSLAdapter ad = new DSLAdapter();
       
        ad.readConfig( this.getClass().getResourceAsStream( "test.dsl" ) );
        assertNotNull(ad.listConditionItems());
        assertNotNull(ad.listConsequenceItems());
    }
View Full Code Here


    }
   
    protected void addRHSCompletionProposals(List<ICompletionProposal> list, int documentOffset, String prefix, String backText,
            String conditions, String consequence) {
        // super.addRHSCompletionProposals(list, documentOffset, prefix, backText, conditions, consequence);
        DSLAdapter adapter = getDSLRuleEditor().getDSLAdapter();
        if (adapter != null) {
            List<String> dslConsequences = adapter.getDSLTree().getConsequenceChildrenList(prefix, true);
            addDSLProposals(list, documentOffset, prefix, dslConsequences);
        }
    }
View Full Code Here

    }

    protected void addLHSCompletionProposals(List<ICompletionProposal> list, int documentOffset,
            Location location, String prefix, String backText) {
        // super.addLHSCompletionProposals(list, documentOffset, location, prefix, backText);
        DSLAdapter adapter = getDSLRuleEditor().getDSLAdapter();
        if (adapter != null) {
            String lastobj = this.getLastNonDashLine(backText);
            String last = this.getLastLine(backText);
            // we have to check if the last line is when. if it is we set
            // the last line to zero length string
View Full Code Here

    }
   
    protected void addRHSCompletionProposals(List list, int documentOffset, String prefix, String backText,
            String conditions, String consequence) {
        // super.addRHSCompletionProposals(list, documentOffset, prefix, backText, conditions, consequence);
        DSLAdapter adapter = getDSLRuleEditor().getDSLAdapter();
        if (adapter != null) {
            List dslConsequences = adapter.getDSLTree().getConsequenceChildrenList(prefix, true);
            addDSLProposals(list, documentOffset, prefix, dslConsequences);
        }
    }
View Full Code Here

    }

    protected void addLHSCompletionProposals(List list, int documentOffset,
            Location location, String prefix, String backText) {
        // super.addLHSCompletionProposals(list, documentOffset, location, prefix, backText);
        DSLAdapter adapter = getDSLRuleEditor().getDSLAdapter();
        if (adapter != null) {
            String lastobj = this.getLastNonDashLine(backText);
            String last = this.getLastLine(backText);
            // we have to check if the last line is when. if it is we set
            // the last line to zero length string
View Full Code Here

    }
   
    protected void addRHSCompletionProposals(List list, int documentOffset, String prefix, String backText,
            String conditions, String consequence) {
        // super.addRHSCompletionProposals(list, documentOffset, prefix, backText, conditions, consequence);
        DSLAdapter adapter = getDSLRuleEditor().getDSLAdapter();
        if (adapter != null) {
            List dslConsequences = adapter.getDSLTree().getConsequenceChildrenList(prefix, true);
            addDSLProposals(list, documentOffset, prefix, dslConsequences);
        }
    }
View Full Code Here

    }

    protected void addLHSCompletionProposals(List list, int documentOffset,
            Location location, String prefix, String backText) {
        // super.addLHSCompletionProposals(list, documentOffset, location, prefix, backText);
        DSLAdapter adapter = getDSLRuleEditor().getDSLAdapter();
        if (adapter != null) {
            String lastobj = this.getLastNonDashLine(backText);
            String last = this.getLastLine(backText);
            // we have to check if the last line is when. if it is we set
            // the last line to zero length string
View Full Code Here

TOP

Related Classes of org.drools.eclipse.dsl.editor.DSLAdapter

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.