diff options
Diffstat (limited to 'plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/services/BaseGrammarAccess.java')
-rw-r--r-- | plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/services/BaseGrammarAccess.java | 130 |
1 files changed, 130 insertions, 0 deletions
diff --git a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/services/BaseGrammarAccess.java b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/services/BaseGrammarAccess.java index c0b04f807..c76cb5edb 100644 --- a/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/services/BaseGrammarAccess.java +++ b/plugins/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/services/BaseGrammarAccess.java @@ -390,6 +390,94 @@ public class BaseGrammarAccess extends AbstractGrammarElementFinder { public Keyword getRightCurlyBracketKeyword_7() { return cRightCurlyBracketKeyword_7; } } + public class ImportElements extends AbstractParserRuleElementFinder { + private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Import"); + private final Group cGroup = (Group)rule.eContents().get(1); + private final Keyword cImportKeyword_0 = (Keyword)cGroup.eContents().get(0); + private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1); + private final Group cGroup_1_0 = (Group)cAlternatives_1.eContents().get(0); + private final Assignment cImportedNamespaceAssignment_1_0_0 = (Assignment)cGroup_1_0.eContents().get(0); + private final RuleCall cImportedNamespaceImportedFQNParserRuleCall_1_0_0_0 = (RuleCall)cImportedNamespaceAssignment_1_0_0.eContents().get(0); + private final Keyword cFromKeyword_1_0_1 = (Keyword)cGroup_1_0.eContents().get(1); + private final Keyword cModelKeyword_1_1 = (Keyword)cAlternatives_1.eContents().get(1); + private final Assignment cImportURIAssignment_2 = (Assignment)cGroup.eContents().get(2); + private final RuleCall cImportURISTRINGTerminalRuleCall_2_0 = (RuleCall)cImportURIAssignment_2.eContents().get(0); + + //// ************************************************************** + //// Import rules + //// HOWTO: use a combination of URI global scopes and namespace aware local scope provider + //// this is configured in the work flow by + //// fragment = scoping.ImportURIScopingFragment {} + //// and by overriding configureIScopeProviderDelegate in the runtime module with + //// ImportedNamespaceAwareLocalScopeProvider + //// also configure in the RuntimeModule + //// public Class<? extends ImportUriResolver> bindImportUriResolver() { + //// return PlatformRelativeUriResolver.class; + //// } + //// and in the UiRuntimeModule + //// public Class<? extends org.eclipse.xtext.ui.editor.IURIEditorOpener> bindIURIEditorOpener() { + //// return GlobalNonPlatformURIEditorOpener.class; + //// } + //// public Class<? extends IHyperlinkHelper> bindIHyperlinkHelper() { + //// return ImportAwareHyperlinkHelper.class; + //// } + //// the attribute 'importedNamespace' is picked up by the ImportedNamespaceAwareLocalScopeProvider + //// the attribute 'importURI' is picked up by the ImportUriGlobalScopeProvider + //Import: + // "import" (importedNamespace=ImportedFQN "from" | "model") importURI=STRING; + public ParserRule getRule() { return rule; } + + //"import" (importedNamespace=ImportedFQN "from" | "model") importURI=STRING + public Group getGroup() { return cGroup; } + + //"import" + public Keyword getImportKeyword_0() { return cImportKeyword_0; } + + //importedNamespace=ImportedFQN "from" | "model" + public Alternatives getAlternatives_1() { return cAlternatives_1; } + + //importedNamespace=ImportedFQN "from" + public Group getGroup_1_0() { return cGroup_1_0; } + + //importedNamespace=ImportedFQN + public Assignment getImportedNamespaceAssignment_1_0_0() { return cImportedNamespaceAssignment_1_0_0; } + + //ImportedFQN + public RuleCall getImportedNamespaceImportedFQNParserRuleCall_1_0_0_0() { return cImportedNamespaceImportedFQNParserRuleCall_1_0_0_0; } + + //"from" + public Keyword getFromKeyword_1_0_1() { return cFromKeyword_1_0_1; } + + //"model" + public Keyword getModelKeyword_1_1() { return cModelKeyword_1_1; } + + //importURI=STRING + public Assignment getImportURIAssignment_2() { return cImportURIAssignment_2; } + + //STRING + public RuleCall getImportURISTRINGTerminalRuleCall_2_0() { return cImportURISTRINGTerminalRuleCall_2_0; } + } + + public class ImportedFQNElements extends AbstractParserRuleElementFinder { + private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "ImportedFQN"); + private final Group cGroup = (Group)rule.eContents().get(1); + private final RuleCall cFQNParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0); + private final Keyword cFullStopAsteriskKeyword_1 = (Keyword)cGroup.eContents().get(1); + + //ImportedFQN: + // FQN ".*"?; + public ParserRule getRule() { return rule; } + + //FQN ".*"? + public Group getGroup() { return cGroup; } + + //FQN + public RuleCall getFQNParserRuleCall_0() { return cFQNParserRuleCall_0; } + + //".*"? + public Keyword getFullStopAsteriskKeyword_1() { return cFullStopAsteriskKeyword_1; } + } + public class DocumentationElements extends AbstractParserRuleElementFinder { private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Documentation"); private final Group cGroup = (Group)rule.eContents().get(1); @@ -981,6 +1069,8 @@ public class BaseGrammarAccess extends AbstractGrammarElementFinder { private AnnotationAttributeElements pAnnotationAttribute; private SimpleAnnotationAttributeElements pSimpleAnnotationAttribute; private EnumAnnotationAttributeElements pEnumAnnotationAttribute; + private ImportElements pImport; + private ImportedFQNElements pImportedFQN; private DocumentationElements pDocumentation; private TIMEElements pTIME; private LiteralTypeElements unknownRuleLiteralType; @@ -1123,6 +1213,46 @@ public class BaseGrammarAccess extends AbstractGrammarElementFinder { } //// ************************************************************** + //// Import rules + //// HOWTO: use a combination of URI global scopes and namespace aware local scope provider + //// this is configured in the work flow by + //// fragment = scoping.ImportURIScopingFragment {} + //// and by overriding configureIScopeProviderDelegate in the runtime module with + //// ImportedNamespaceAwareLocalScopeProvider + //// also configure in the RuntimeModule + //// public Class<? extends ImportUriResolver> bindImportUriResolver() { + //// return PlatformRelativeUriResolver.class; + //// } + //// and in the UiRuntimeModule + //// public Class<? extends org.eclipse.xtext.ui.editor.IURIEditorOpener> bindIURIEditorOpener() { + //// return GlobalNonPlatformURIEditorOpener.class; + //// } + //// public Class<? extends IHyperlinkHelper> bindIHyperlinkHelper() { + //// return ImportAwareHyperlinkHelper.class; + //// } + //// the attribute 'importedNamespace' is picked up by the ImportedNamespaceAwareLocalScopeProvider + //// the attribute 'importURI' is picked up by the ImportUriGlobalScopeProvider + //Import: + // "import" (importedNamespace=ImportedFQN "from" | "model") importURI=STRING; + public ImportElements getImportAccess() { + return (pImport != null) ? pImport : (pImport = new ImportElements()); + } + + public ParserRule getImportRule() { + return getImportAccess().getRule(); + } + + //ImportedFQN: + // FQN ".*"?; + public ImportedFQNElements getImportedFQNAccess() { + return (pImportedFQN != null) ? pImportedFQN : (pImportedFQN = new ImportedFQNElements()); + } + + public ParserRule getImportedFQNRule() { + return getImportedFQNAccess().getRule(); + } + + //// ************************************************************** //// Documentation Rule //Documentation: // {Documentation} "[" lines+=STRING* "]"; |