org.eclipse.xtext.ui.editor.contentassist.antlr.FollowElement Java Examples
The following examples show how to use
org.eclipse.xtext.ui.editor.contentassist.antlr.FollowElement.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ContentAssistContextFactory.java From gama with GNU General Public License v3.0 | 6 votes |
/** * AD 08/13 : Workaround for a bug manifesting itself as an infinite recursion over an AlternativesImpl element. The * choice here is to allow for 10 occurrences of the element to be computed and then fall back to the caller. */ @Override protected void computeFollowElements(final FollowElementCalculator calculator, final FollowElement element, final Multimap<Integer, List<AbstractElement>> visited) { if (stop) { return; } final AbstractElement e = element.getGrammarElement(); if (!recurse.containsKey(e)) { recurse.put(e, 1); } else { recurse.put(e, recurse.get(e) + 1); } if (recurse.get(e) > 3) { // GAMA.getGui().debug("Infinite recursion detected in completion proposal for " + e); stop = true; recurse.clear(); return; } // scope.getGui().debug(" Computing FollowElement -- + visited : " + // element + // " ; number of times : " + recurse.get(e)); super.computeFollowElements(calculator, element, visited); }
Example #2
Source File: CheckParser.java From dsl-devkit with Eclipse Public License 1.0 | 5 votes |
@Override protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) { try { com.avaloq.tools.ddk.check.ui.contentassist.antlr.internal.InternalCheckParser typedParser = (com.avaloq.tools.ddk.check.ui.contentassist.antlr.internal.InternalCheckParser) parser; typedParser.entryRuleCheckCatalog(); return typedParser.getFollowElements(); } catch(RecognitionException ex) { throw new RuntimeException(ex); } }
Example #3
Source File: ConditionModelParser.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
@Override protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) { try { org.bonitasoft.studio.condition.ui.contentassist.antlr.internal.InternalConditionModelParser typedParser = (org.bonitasoft.studio.condition.ui.contentassist.antlr.internal.InternalConditionModelParser) parser; typedParser.entryRuleOperation_Compare(); return typedParser.getFollowElements(); } catch(RecognitionException ex) { throw new RuntimeException(ex); } }
Example #4
Source File: PartialConditionModelContentAssistParser.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
@Override protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) { if (rule == null || rule.eIsProxy()) return Collections.emptyList(); String methodName = "entryRule" + rule.getName(); PolymorphicDispatcher<Collection<FollowElement>> dispatcher = new PolymorphicDispatcher<Collection<FollowElement>>(methodName, 0, 0, Collections.singletonList(parser)); dispatcher.invoke(); return parser.getFollowElements(); }
Example #5
Source File: PartialYangContentAssistParser.java From yang-design-studio with Eclipse Public License 1.0 | 5 votes |
@Override protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) { if (rule == null || rule.eIsProxy()) return Collections.emptyList(); String methodName = "entryRule" + rule.getName(); PolymorphicDispatcher<Collection<FollowElement>> dispatcher = new PolymorphicDispatcher<Collection<FollowElement>>(methodName, 0, 0, Collections.singletonList(parser)); dispatcher.invoke(); return parser.getFollowElements(); }
Example #6
Source File: YangParser.java From yang-design-studio with Eclipse Public License 1.0 | 5 votes |
@Override protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) { try { yang.manager.ui.contentassist.antlr.internal.InternalYangParser typedParser = (yang.manager.ui.contentassist.antlr.internal.InternalYangParser) parser; typedParser.entryRuleYangFile(); return typedParser.getFollowElements(); } catch(RecognitionException ex) { throw new RuntimeException(ex); } }
Example #7
Source File: TaxonomyParser.java From slr-toolkit with Eclipse Public License 1.0 | 5 votes |
@Override protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) { try { de.tudresden.slr.model.taxonomy.ui.contentassist.antlr.internal.InternalTaxonomyParser typedParser = (de.tudresden.slr.model.taxonomy.ui.contentassist.antlr.internal.InternalTaxonomyParser) parser; typedParser.entryRuleModel(); return typedParser.getFollowElements(); } catch(RecognitionException ex) { throw new RuntimeException(ex); } }
Example #8
Source File: PartialCheckCfgContentAssistParser.java From dsl-devkit with Eclipse Public License 1.0 | 5 votes |
@Override protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) { if (rule == null || rule.eIsProxy()) return Collections.emptyList(); String methodName = "entryRule" + rule.getName(); PolymorphicDispatcher<Collection<FollowElement>> dispatcher = new PolymorphicDispatcher<Collection<FollowElement>>(methodName, 0, 0, Collections.singletonList(parser)); dispatcher.invoke(); return parser.getFollowElements(); }
Example #9
Source File: CheckCfgParser.java From dsl-devkit with Eclipse Public License 1.0 | 5 votes |
@Override protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) { try { com.avaloq.tools.ddk.checkcfg.ui.contentassist.antlr.internal.InternalCheckCfgParser typedParser = (com.avaloq.tools.ddk.checkcfg.ui.contentassist.antlr.internal.InternalCheckCfgParser) parser; typedParser.entryRuleCheckConfiguration(); return typedParser.getFollowElements(); } catch(RecognitionException ex) { throw new RuntimeException(ex); } }
Example #10
Source File: PartialCheckContentAssistParser.java From dsl-devkit with Eclipse Public License 1.0 | 5 votes |
@Override protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) { if (rule == null || rule.eIsProxy()) return Collections.emptyList(); String methodName = "entryRule" + rule.getName(); PolymorphicDispatcher<Collection<FollowElement>> dispatcher = new PolymorphicDispatcher<Collection<FollowElement>>(methodName, 0, 0, Collections.singletonList(parser)); dispatcher.invoke(); return parser.getFollowElements(); }
Example #11
Source File: ExpressionParser.java From dsl-devkit with Eclipse Public License 1.0 | 5 votes |
@Override protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) { try { com.avaloq.tools.ddk.xtext.expression.ui.contentassist.antlr.internal.InternalExpressionParser typedParser = (com.avaloq.tools.ddk.xtext.expression.ui.contentassist.antlr.internal.InternalExpressionParser) parser; typedParser.entryRuleExpression(); return typedParser.getFollowElements(); } catch(RecognitionException ex) { throw new RuntimeException(ex); } }
Example #12
Source File: ScopeParser.java From dsl-devkit with Eclipse Public License 1.0 | 5 votes |
@Override protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) { try { com.avaloq.tools.ddk.xtext.scope.ui.contentassist.antlr.internal.InternalScopeParser typedParser = (com.avaloq.tools.ddk.xtext.scope.ui.contentassist.antlr.internal.InternalScopeParser) parser; typedParser.entryRuleScopeModel(); return typedParser.getFollowElements(); } catch(RecognitionException ex) { throw new RuntimeException(ex); } }
Example #13
Source File: ExportParser.java From dsl-devkit with Eclipse Public License 1.0 | 5 votes |
@Override protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) { try { com.avaloq.tools.ddk.xtext.export.ui.contentassist.antlr.internal.InternalExportParser typedParser = (com.avaloq.tools.ddk.xtext.export.ui.contentassist.antlr.internal.InternalExportParser) parser; typedParser.entryRuleExportModel(); return typedParser.getFollowElements(); } catch(RecognitionException ex) { throw new RuntimeException(ex); } }
Example #14
Source File: TestLanguageParser.java From dsl-devkit with Eclipse Public License 1.0 | 5 votes |
@Override protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) { try { com.avaloq.tools.ddk.check.ui.contentassist.antlr.internal.InternalTestLanguageParser typedParser = (com.avaloq.tools.ddk.check.ui.contentassist.antlr.internal.InternalTestLanguageParser) parser; typedParser.entryRuleModel(); return typedParser.getFollowElements(); } catch(RecognitionException ex) { throw new RuntimeException(ex); } }
Example #15
Source File: PartialTestLanguageContentAssistParser.java From dsl-devkit with Eclipse Public License 1.0 | 5 votes |
@Override protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) { if (rule == null || rule.eIsProxy()) return Collections.emptyList(); String methodName = "entryRule" + rule.getName(); PolymorphicDispatcher<Collection<FollowElement>> dispatcher = new PolymorphicDispatcher<Collection<FollowElement>>(methodName, 0, 0, Collections.singletonList(parser)); dispatcher.invoke(); return parser.getFollowElements(); }
Example #16
Source File: FormatParser.java From dsl-devkit with Eclipse Public License 1.0 | 5 votes |
@Override protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) { try { com.avaloq.tools.ddk.xtext.format.ui.contentassist.antlr.internal.InternalFormatParser typedParser = (com.avaloq.tools.ddk.xtext.format.ui.contentassist.antlr.internal.InternalFormatParser) parser; typedParser.entryRuleFormatConfiguration(); return typedParser.getFollowElements(); } catch(RecognitionException ex) { throw new RuntimeException(ex); } }
Example #17
Source File: ValidParser.java From dsl-devkit with Eclipse Public License 1.0 | 5 votes |
@Override protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) { try { com.avaloq.tools.ddk.xtext.valid.ui.contentassist.antlr.internal.InternalValidParser typedParser = (com.avaloq.tools.ddk.xtext.valid.ui.contentassist.antlr.internal.InternalValidParser) parser; typedParser.entryRuleValidModel(); return typedParser.getFollowElements(); } catch(RecognitionException ex) { throw new RuntimeException(ex); } }
Example #18
Source File: AbstractInternalContentAssistParser.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
@Override protected FollowElement doCreateElement() { return new FollowElement(); }