Search in sources :

Example 71 with EObject

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

the class InternalApplauseDslParser method ruleAttribute.

// $ANTLR end "entryRuleAttribute"
// $ANTLR start "ruleAttribute"
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:443:1: ruleAttribute returns [EObject current=null] : ( ( (otherlv_0= RULE_ID ) ) ( (lv_many_1_0= '[]' ) )? ( (lv_name_2_0= ruleKeywordedID ) ) ) ;
public final EObject ruleAttribute() throws RecognitionException {
    EObject current = null;
    Token otherlv_0 = null;
    Token lv_many_1_0 = null;
    AntlrDatatypeRuleToken lv_name_2_0 = null;
    enterRule();
    try {
        // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:446:28: ( ( ( (otherlv_0= RULE_ID ) ) ( (lv_many_1_0= '[]' ) )? ( (lv_name_2_0= ruleKeywordedID ) ) ) )
        // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:447:1: ( ( (otherlv_0= RULE_ID ) ) ( (lv_many_1_0= '[]' ) )? ( (lv_name_2_0= ruleKeywordedID ) ) )
        {
            // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:447:1: ( ( (otherlv_0= RULE_ID ) ) ( (lv_many_1_0= '[]' ) )? ( (lv_name_2_0= ruleKeywordedID ) ) )
            // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:447:2: ( (otherlv_0= RULE_ID ) ) ( (lv_many_1_0= '[]' ) )? ( (lv_name_2_0= ruleKeywordedID ) )
            {
                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:447:2: ( (otherlv_0= RULE_ID ) )
                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:448:1: (otherlv_0= RULE_ID )
                {
                    // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:448:1: (otherlv_0= RULE_ID )
                    // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:449:3: otherlv_0= RULE_ID
                    {
                        if (current == null) {
                            current = createModelElement(grammarAccess.getAttributeRule());
                        }
                        otherlv_0 = (Token) match(input, RULE_ID, FOLLOW_RULE_ID_in_ruleAttribute1081);
                        newLeafNode(otherlv_0, grammarAccess.getAttributeAccess().getTypeTypeCrossReference_0_0());
                    }
                }
                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:460:2: ( (lv_many_1_0= '[]' ) )?
                int alt8 = 2;
                int LA8_0 = input.LA(1);
                if ((LA8_0 == 21)) {
                    alt8 = 1;
                }
                switch(alt8) {
                    case 1:
                        // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:461:1: (lv_many_1_0= '[]' )
                        {
                            // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:461:1: (lv_many_1_0= '[]' )
                            // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:462:3: lv_many_1_0= '[]'
                            {
                                lv_many_1_0 = (Token) match(input, 21, FOLLOW_21_in_ruleAttribute1099);
                                newLeafNode(lv_many_1_0, grammarAccess.getAttributeAccess().getManyLeftSquareBracketRightSquareBracketKeyword_1_0());
                                if (current == null) {
                                    current = createModelElement(grammarAccess.getAttributeRule());
                                }
                                setWithLastConsumed(current, "many", true, "[]");
                            }
                        }
                        break;
                }
                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:475:3: ( (lv_name_2_0= ruleKeywordedID ) )
                // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:476:1: (lv_name_2_0= ruleKeywordedID )
                {
                    // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:476:1: (lv_name_2_0= ruleKeywordedID )
                    // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:477:3: lv_name_2_0= ruleKeywordedID
                    {
                        newCompositeNode(grammarAccess.getAttributeAccess().getNameKeywordedIDParserRuleCall_2_0());
                        pushFollow(FOLLOW_ruleKeywordedID_in_ruleAttribute1134);
                        lv_name_2_0 = ruleKeywordedID();
                        state._fsp--;
                        if (current == null) {
                            current = createModelElementForParent(grammarAccess.getAttributeRule());
                        }
                        set(current, "name", lv_name_2_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 72 with EObject

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

the class InternalApplauseDslParser method entryRuleListItemCellDeclaration.

// $ANTLR end "ruleUIActionDeleteAction"
// $ANTLR start "entryRuleListItemCellDeclaration"
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2290:1: entryRuleListItemCellDeclaration returns [EObject current=null] : iv_ruleListItemCellDeclaration= ruleListItemCellDeclaration EOF ;
public final EObject entryRuleListItemCellDeclaration() throws RecognitionException {
    EObject current = null;
    EObject iv_ruleListItemCellDeclaration = null;
    try {
        // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2291:2: (iv_ruleListItemCellDeclaration= ruleListItemCellDeclaration EOF )
        // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2292:2: iv_ruleListItemCellDeclaration= ruleListItemCellDeclaration EOF
        {
            newCompositeNode(grammarAccess.getListItemCellDeclarationRule());
            pushFollow(FOLLOW_ruleListItemCellDeclaration_in_entryRuleListItemCellDeclaration5163);
            iv_ruleListItemCellDeclaration = ruleListItemCellDeclaration();
            state._fsp--;
            current = iv_ruleListItemCellDeclaration;
            match(input, EOF, FOLLOW_EOF_in_entryRuleListItemCellDeclaration5173);
        }
    } catch (RecognitionException re) {
        recover(input, re);
        appendSkippedTokens();
    } finally {
    }
    return current;
}
Also used : EObject(org.eclipse.emf.ecore.EObject)

Example 73 with EObject

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

the class InternalApplauseDslParser method entryRuleUIActionNavigateAction.

// $ANTLR end "ruleUIActionSpecification"
// $ANTLR start "entryRuleUIActionNavigateAction"
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2176:1: entryRuleUIActionNavigateAction returns [EObject current=null] : iv_ruleUIActionNavigateAction= ruleUIActionNavigateAction EOF ;
public final EObject entryRuleUIActionNavigateAction() throws RecognitionException {
    EObject current = null;
    EObject iv_ruleUIActionNavigateAction = null;
    try {
        // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2177:2: (iv_ruleUIActionNavigateAction= ruleUIActionNavigateAction EOF )
        // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2178:2: iv_ruleUIActionNavigateAction= ruleUIActionNavigateAction EOF
        {
            newCompositeNode(grammarAccess.getUIActionNavigateActionRule());
            pushFollow(FOLLOW_ruleUIActionNavigateAction_in_entryRuleUIActionNavigateAction4893);
            iv_ruleUIActionNavigateAction = ruleUIActionNavigateAction();
            state._fsp--;
            current = iv_ruleUIActionNavigateAction;
            match(input, EOF, FOLLOW_EOF_in_entryRuleUIActionNavigateAction4903);
        }
    } catch (RecognitionException re) {
        recover(input, re);
        appendSkippedTokens();
    } finally {
    }
    return current;
}
Also used : EObject(org.eclipse.emf.ecore.EObject)

Example 74 with EObject

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

the class InternalApplauseDslParser method entryRuleScreenSection.

// $ANTLR end "ruleScreen"
// $ANTLR start "entryRuleScreenSection"
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1634:1: entryRuleScreenSection returns [EObject current=null] : iv_ruleScreenSection= ruleScreenSection EOF ;
public final EObject entryRuleScreenSection() throws RecognitionException {
    EObject current = null;
    EObject iv_ruleScreenSection = null;
    try {
        // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1635:2: (iv_ruleScreenSection= ruleScreenSection EOF )
        // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1636:2: iv_ruleScreenSection= ruleScreenSection EOF
        {
            newCompositeNode(grammarAccess.getScreenSectionRule());
            pushFollow(FOLLOW_ruleScreenSection_in_entryRuleScreenSection3692);
            iv_ruleScreenSection = ruleScreenSection();
            state._fsp--;
            current = iv_ruleScreenSection;
            match(input, EOF, FOLLOW_EOF_in_entryRuleScreenSection3702);
        }
    } catch (RecognitionException re) {
        recover(input, re);
        appendSkippedTokens();
    } finally {
    }
    return current;
}
Also used : EObject(org.eclipse.emf.ecore.EObject)

Example 75 with EObject

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

the class InternalApplauseDslParser method ruleRESTURL.

// $ANTLR end "entryRuleRESTURL"
// $ANTLR start "ruleRESTURL"
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1074:1: ruleRESTURL returns [EObject current=null] : (this_AbsoluteRESTURL_0= ruleAbsoluteRESTURL | this_RelativeRESTURL_1= ruleRelativeRESTURL ) ;
public final EObject ruleRESTURL() throws RecognitionException {
    EObject current = null;
    EObject this_AbsoluteRESTURL_0 = null;
    EObject this_RelativeRESTURL_1 = null;
    enterRule();
    try {
        // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1077:28: ( (this_AbsoluteRESTURL_0= ruleAbsoluteRESTURL | this_RelativeRESTURL_1= ruleRelativeRESTURL ) )
        // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1078:1: (this_AbsoluteRESTURL_0= ruleAbsoluteRESTURL | this_RelativeRESTURL_1= ruleRelativeRESTURL )
        {
            // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1078:1: (this_AbsoluteRESTURL_0= ruleAbsoluteRESTURL | this_RelativeRESTURL_1= ruleRelativeRESTURL )
            int alt15 = 2;
            int LA15_0 = input.LA(1);
            if ((LA15_0 == 30)) {
                alt15 = 1;
            } else if ((LA15_0 == 31)) {
                alt15 = 2;
            } else {
                NoViableAltException nvae = new NoViableAltException("", 15, 0, input);
                throw nvae;
            }
            switch(alt15) {
                case 1:
                    // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1079:5: this_AbsoluteRESTURL_0= ruleAbsoluteRESTURL
                    {
                        newCompositeNode(grammarAccess.getRESTURLAccess().getAbsoluteRESTURLParserRuleCall_0());
                        pushFollow(FOLLOW_ruleAbsoluteRESTURL_in_ruleRESTURL2436);
                        this_AbsoluteRESTURL_0 = ruleAbsoluteRESTURL();
                        state._fsp--;
                        current = this_AbsoluteRESTURL_0;
                        afterParserOrEnumRuleCall();
                    }
                    break;
                case 2:
                    // ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1089:5: this_RelativeRESTURL_1= ruleRelativeRESTURL
                    {
                        newCompositeNode(grammarAccess.getRESTURLAccess().getRelativeRESTURLParserRuleCall_1());
                        pushFollow(FOLLOW_ruleRelativeRESTURL_in_ruleRESTURL2463);
                        this_RelativeRESTURL_1 = ruleRelativeRESTURL();
                        state._fsp--;
                        current = this_RelativeRESTURL_1;
                        afterParserOrEnumRuleCall();
                    }
                    break;
            }
        }
        leaveRule();
    } catch (RecognitionException re) {
        recover(input, re);
        appendSkippedTokens();
    } finally {
    }
    return current;
}
Also used : EObject(org.eclipse.emf.ecore.EObject)

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