Search in sources :

Example 76 with EObject

use of org.eclipse.emf.ecore.EObject in project applause by applause.

the class InternalApplauseDslParser method ruleListItemCellDeclaration.

// $ANTLR end "entryRuleListItemCellDeclaration"
// $ANTLR start "ruleListItemCellDeclaration"
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2299:1: ruleListItemCellDeclaration returns [EObject current=null] : (otherlv_0= 'listitemcell' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( (lv_members_3_0= ruleUIComponentMemberDeclaration ) )* otherlv_4= '}' ) ;
public final EObject ruleListItemCellDeclaration() throws RecognitionException {
    EObject current = null;
    Token otherlv_0 = null;
    Token lv_name_1_0 = null;
    Token otherlv_2 = null;
    Token otherlv_4 = null;
    EObject lv_members_3_0 = null;
    enterRule();
    try {
        // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2302:28: ( (otherlv_0= 'listitemcell' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( (lv_members_3_0= ruleUIComponentMemberDeclaration ) )* otherlv_4= '}' ) )
        // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2303:1: (otherlv_0= 'listitemcell' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( (lv_members_3_0= ruleUIComponentMemberDeclaration ) )* otherlv_4= '}' )
        {
            // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2303:1: (otherlv_0= 'listitemcell' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( (lv_members_3_0= ruleUIComponentMemberDeclaration ) )* otherlv_4= '}' )
            // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2303:3: otherlv_0= 'listitemcell' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( (lv_members_3_0= ruleUIComponentMemberDeclaration ) )* otherlv_4= '}'
            {
                otherlv_0 = (Token) match(input, 46, FOLLOW_46_in_ruleListItemCellDeclaration5210);
                newLeafNode(otherlv_0, grammarAccess.getListItemCellDeclarationAccess().getListitemcellKeyword_0());
                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2307:1: ( (lv_name_1_0= RULE_ID ) )
                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2308:1: (lv_name_1_0= RULE_ID )
                {
                    // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2308:1: (lv_name_1_0= RULE_ID )
                    // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2309:3: lv_name_1_0= RULE_ID
                    {
                        lv_name_1_0 = (Token) match(input, RULE_ID, FOLLOW_RULE_ID_in_ruleListItemCellDeclaration5227);
                        newLeafNode(lv_name_1_0, grammarAccess.getListItemCellDeclarationAccess().getNameIDTerminalRuleCall_1_0());
                        if (current == null) {
                            current = createModelElement(grammarAccess.getListItemCellDeclarationRule());
                        }
                        setWithLastConsumed(current, "name", lv_name_1_0, "ID");
                    }
                }
                otherlv_2 = (Token) match(input, 19, FOLLOW_19_in_ruleListItemCellDeclaration5244);
                newLeafNode(otherlv_2, grammarAccess.getListItemCellDeclarationAccess().getLeftCurlyBracketKeyword_2());
                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2329:1: ( (lv_members_3_0= ruleUIComponentMemberDeclaration ) )*
                loop40: do {
                    int alt40 = 2;
                    int LA40_0 = input.LA(1);
                    if ((LA40_0 == RULE_ID)) {
                        alt40 = 1;
                    }
                    switch(alt40) {
                        case 1:
                            // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2330:1: (lv_members_3_0= ruleUIComponentMemberDeclaration )
                            {
                                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2330:1: (lv_members_3_0= ruleUIComponentMemberDeclaration )
                                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2331:3: lv_members_3_0= ruleUIComponentMemberDeclaration
                                {
                                    newCompositeNode(grammarAccess.getListItemCellDeclarationAccess().getMembersUIComponentMemberDeclarationParserRuleCall_3_0());
                                    pushFollow(FOLLOW_ruleUIComponentMemberDeclaration_in_ruleListItemCellDeclaration5265);
                                    lv_members_3_0 = ruleUIComponentMemberDeclaration();
                                    state._fsp--;
                                    if (current == null) {
                                        current = createModelElementForParent(grammarAccess.getListItemCellDeclarationRule());
                                    }
                                    add(current, "members", lv_members_3_0, "UIComponentMemberDeclaration");
                                    afterParserOrEnumRuleCall();
                                }
                            }
                            break;
                        default:
                            break loop40;
                    }
                } while (true);
                otherlv_4 = (Token) match(input, 20, FOLLOW_20_in_ruleListItemCellDeclaration5278);
                newLeafNode(otherlv_4, grammarAccess.getListItemCellDeclarationAccess().getRightCurlyBracketKeyword_4());
            }
        }
        leaveRule();
    } catch (RecognitionException re) {
        recover(input, re);
        appendSkippedTokens();
    } finally {
    }
    return current;
}
Also used : EObject(org.eclipse.emf.ecore.EObject) AntlrDatatypeRuleToken(org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken)

Example 77 with EObject

use of org.eclipse.emf.ecore.EObject in project applause by applause.

the class InternalApplauseDslParser method ruleDataType.

// $ANTLR end "entryRuleDataType"
// $ANTLR start "ruleDataType"
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:299:1: ruleDataType returns [EObject current=null] : (otherlv_0= 'datatype' ( (lv_name_1_0= ruleKeywordedID ) ) ) ;
public final EObject ruleDataType() throws RecognitionException {
    EObject current = null;
    Token otherlv_0 = null;
    AntlrDatatypeRuleToken lv_name_1_0 = null;
    enterRule();
    try {
        // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:302:28: ( (otherlv_0= 'datatype' ( (lv_name_1_0= ruleKeywordedID ) ) ) )
        // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:303:1: (otherlv_0= 'datatype' ( (lv_name_1_0= ruleKeywordedID ) ) )
        {
            // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:303:1: (otherlv_0= 'datatype' ( (lv_name_1_0= ruleKeywordedID ) ) )
            // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:303:3: otherlv_0= 'datatype' ( (lv_name_1_0= ruleKeywordedID ) )
            {
                otherlv_0 = (Token) match(input, 16, FOLLOW_16_in_ruleDataType751);
                newLeafNode(otherlv_0, grammarAccess.getDataTypeAccess().getDatatypeKeyword_0());
                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:307:1: ( (lv_name_1_0= ruleKeywordedID ) )
                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:308:1: (lv_name_1_0= ruleKeywordedID )
                {
                    // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:308:1: (lv_name_1_0= ruleKeywordedID )
                    // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:309:3: lv_name_1_0= ruleKeywordedID
                    {
                        newCompositeNode(grammarAccess.getDataTypeAccess().getNameKeywordedIDParserRuleCall_1_0());
                        pushFollow(FOLLOW_ruleKeywordedID_in_ruleDataType772);
                        lv_name_1_0 = ruleKeywordedID();
                        state._fsp--;
                        if (current == null) {
                            current = createModelElementForParent(grammarAccess.getDataTypeRule());
                        }
                        set(current, "name", lv_name_1_0, "KeywordedID");
                        afterParserOrEnumRuleCall();
                    }
                }
            }
        }
        leaveRule();
    } catch (RecognitionException re) {
        recover(input, re);
        appendSkippedTokens();
    } finally {
    }
    return current;
}
Also used : EObject(org.eclipse.emf.ecore.EObject) AntlrDatatypeRuleToken(org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken) AntlrDatatypeRuleToken(org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken)

Example 78 with EObject

use of org.eclipse.emf.ecore.EObject in project applause by applause.

the class InternalApplauseDslParser method entryRuleEntityMemberCallTail.

// $ANTLR end "ruleEntityMemberCall"
// $ANTLR start "entryRuleEntityMemberCallTail"
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2801:1: entryRuleEntityMemberCallTail returns [EObject current=null] : iv_ruleEntityMemberCallTail= ruleEntityMemberCallTail EOF ;
public final EObject entryRuleEntityMemberCallTail() throws RecognitionException {
    EObject current = null;
    EObject iv_ruleEntityMemberCallTail = null;
    try {
        // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2802:2: (iv_ruleEntityMemberCallTail= ruleEntityMemberCallTail EOF )
        // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2803:2: iv_ruleEntityMemberCallTail= ruleEntityMemberCallTail EOF
        {
            newCompositeNode(grammarAccess.getEntityMemberCallTailRule());
            pushFollow(FOLLOW_ruleEntityMemberCallTail_in_entryRuleEntityMemberCallTail6335);
            iv_ruleEntityMemberCallTail = ruleEntityMemberCallTail();
            state._fsp--;
            current = iv_ruleEntityMemberCallTail;
            match(input, EOF, FOLLOW_EOF_in_entryRuleEntityMemberCallTail6345);
        }
    } catch (RecognitionException re) {
        recover(input, re);
        appendSkippedTokens();
    } finally {
    }
    return current;
}
Also used : EObject(org.eclipse.emf.ecore.EObject)

Example 79 with EObject

use of org.eclipse.emf.ecore.EObject in project applause by applause.

the class InternalApplauseDslParser method entryRuleDataSource.

// $ANTLR end "ruleTypeMapping"
// $ANTLR start "entryRuleDataSource"
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:660:1: entryRuleDataSource returns [EObject current=null] : iv_ruleDataSource= ruleDataSource EOF ;
public final EObject entryRuleDataSource() throws RecognitionException {
    EObject current = null;
    EObject iv_ruleDataSource = null;
    try {
        // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:661:2: (iv_ruleDataSource= ruleDataSource EOF )
        // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:662:2: iv_ruleDataSource= ruleDataSource EOF
        {
            newCompositeNode(grammarAccess.getDataSourceRule());
            pushFollow(FOLLOW_ruleDataSource_in_entryRuleDataSource1548);
            iv_ruleDataSource = ruleDataSource();
            state._fsp--;
            current = iv_ruleDataSource;
            match(input, EOF, FOLLOW_EOF_in_entryRuleDataSource1558);
        }
    } catch (RecognitionException re) {
        recover(input, re);
        appendSkippedTokens();
    } finally {
    }
    return current;
}
Also used : EObject(org.eclipse.emf.ecore.EObject)

Example 80 with EObject

use of org.eclipse.emf.ecore.EObject in project applause by applause.

the class InternalApplauseDslParser method ruleUIComponentDeclaration.

// $ANTLR end "entryRuleUIComponentDeclaration"
// $ANTLR start "ruleUIComponentDeclaration"
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2368:1: ruleUIComponentDeclaration returns [EObject current=null] : (otherlv_0= 'uicomponent' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( (lv_members_3_0= ruleUIComponentMemberDeclaration ) )* otherlv_4= '}' ) ;
public final EObject ruleUIComponentDeclaration() throws RecognitionException {
    EObject current = null;
    Token otherlv_0 = null;
    Token lv_name_1_0 = null;
    Token otherlv_2 = null;
    Token otherlv_4 = null;
    EObject lv_members_3_0 = null;
    enterRule();
    try {
        // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2371:28: ( (otherlv_0= 'uicomponent' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( (lv_members_3_0= ruleUIComponentMemberDeclaration ) )* otherlv_4= '}' ) )
        // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2372:1: (otherlv_0= 'uicomponent' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( (lv_members_3_0= ruleUIComponentMemberDeclaration ) )* otherlv_4= '}' )
        {
            // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2372:1: (otherlv_0= 'uicomponent' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( (lv_members_3_0= ruleUIComponentMemberDeclaration ) )* otherlv_4= '}' )
            // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2372:3: otherlv_0= 'uicomponent' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( (lv_members_3_0= ruleUIComponentMemberDeclaration ) )* otherlv_4= '}'
            {
                otherlv_0 = (Token) match(input, 47, FOLLOW_47_in_ruleUIComponentDeclaration5361);
                newLeafNode(otherlv_0, grammarAccess.getUIComponentDeclarationAccess().getUicomponentKeyword_0());
                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2376:1: ( (lv_name_1_0= RULE_ID ) )
                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2377:1: (lv_name_1_0= RULE_ID )
                {
                    // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2377:1: (lv_name_1_0= RULE_ID )
                    // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2378:3: lv_name_1_0= RULE_ID
                    {
                        lv_name_1_0 = (Token) match(input, RULE_ID, FOLLOW_RULE_ID_in_ruleUIComponentDeclaration5378);
                        newLeafNode(lv_name_1_0, grammarAccess.getUIComponentDeclarationAccess().getNameIDTerminalRuleCall_1_0());
                        if (current == null) {
                            current = createModelElement(grammarAccess.getUIComponentDeclarationRule());
                        }
                        setWithLastConsumed(current, "name", lv_name_1_0, "ID");
                    }
                }
                otherlv_2 = (Token) match(input, 19, FOLLOW_19_in_ruleUIComponentDeclaration5395);
                newLeafNode(otherlv_2, grammarAccess.getUIComponentDeclarationAccess().getLeftCurlyBracketKeyword_2());
                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2398:1: ( (lv_members_3_0= ruleUIComponentMemberDeclaration ) )*
                loop41: do {
                    int alt41 = 2;
                    int LA41_0 = input.LA(1);
                    if ((LA41_0 == RULE_ID)) {
                        alt41 = 1;
                    }
                    switch(alt41) {
                        case 1:
                            // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2399:1: (lv_members_3_0= ruleUIComponentMemberDeclaration )
                            {
                                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2399:1: (lv_members_3_0= ruleUIComponentMemberDeclaration )
                                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2400:3: lv_members_3_0= ruleUIComponentMemberDeclaration
                                {
                                    newCompositeNode(grammarAccess.getUIComponentDeclarationAccess().getMembersUIComponentMemberDeclarationParserRuleCall_3_0());
                                    pushFollow(FOLLOW_ruleUIComponentMemberDeclaration_in_ruleUIComponentDeclaration5416);
                                    lv_members_3_0 = ruleUIComponentMemberDeclaration();
                                    state._fsp--;
                                    if (current == null) {
                                        current = createModelElementForParent(grammarAccess.getUIComponentDeclarationRule());
                                    }
                                    add(current, "members", lv_members_3_0, "UIComponentMemberDeclaration");
                                    afterParserOrEnumRuleCall();
                                }
                            }
                            break;
                        default:
                            break loop41;
                    }
                } while (true);
                otherlv_4 = (Token) match(input, 20, FOLLOW_20_in_ruleUIComponentDeclaration5429);
                newLeafNode(otherlv_4, grammarAccess.getUIComponentDeclarationAccess().getRightCurlyBracketKeyword_4());
            }
        }
        leaveRule();
    } catch (RecognitionException re) {
        recover(input, re);
        appendSkippedTokens();
    } finally {
    }
    return current;
}
Also used : EObject(org.eclipse.emf.ecore.EObject) AntlrDatatypeRuleToken(org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken)

Aggregations

EObject (org.eclipse.emf.ecore.EObject)7112 AntlrDatatypeRuleToken (org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken)1950 Resource (org.eclipse.emf.ecore.resource.Resource)304 Test (org.junit.Test)301 IPropertiesEditionEvent (org.eclipse.emf.eef.runtime.api.notify.IPropertiesEditionEvent)262 PropertiesEditionEvent (org.eclipse.emf.eef.runtime.impl.notify.PropertiesEditionEvent)262 ArrayList (java.util.ArrayList)207 GridData (org.eclipse.swt.layout.GridData)198 SelectionEvent (org.eclipse.swt.events.SelectionEvent)190 URI (org.eclipse.emf.common.util.URI)189 SelectionAdapter (org.eclipse.swt.events.SelectionAdapter)187 InternalEObject (org.eclipse.emf.ecore.InternalEObject)181 ReferencesTable (org.eclipse.emf.eef.runtime.ui.widgets.ReferencesTable)162 ReferencesTableListener (org.eclipse.emf.eef.runtime.ui.widgets.ReferencesTable.ReferencesTableListener)162 ViewerFilter (org.eclipse.jface.viewers.ViewerFilter)138 ResourceSet (org.eclipse.emf.ecore.resource.ResourceSet)128 IStructuredSelection (org.eclipse.jface.viewers.IStructuredSelection)127 List (java.util.List)125 XtextResource (org.eclipse.xtext.resource.XtextResource)124 EReference (org.eclipse.emf.ecore.EReference)96