diff options
Diffstat (limited to 'org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.ide/src/main/xtext-gen/org/eclipse/viatra/solver/language/ide/contentassist/antlr/PartialProblemContentAssistParser.java')
1 files changed, 33 insertions, 0 deletions
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.ide/src/main/xtext-gen/org/eclipse/viatra/solver/language/ide/contentassist/antlr/PartialProblemContentAssistParser.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.ide/src/main/xtext-gen/org/eclipse/viatra/solver/language/ide/contentassist/antlr/PartialProblemContentAssistParser.java new file mode 100644 index 00000000..890ab643 --- /dev/null +++ b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.ide/src/main/xtext-gen/org/eclipse/viatra/solver/language/ide/contentassist/antlr/PartialProblemContentAssistParser.java | |||
@@ -0,0 +1,33 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.26.0.M1 | ||
3 | */ | ||
4 | package org.eclipse.viatra.solver.language.ide.contentassist.antlr; | ||
5 | |||
6 | import java.util.Collection; | ||
7 | import java.util.Collections; | ||
8 | import org.eclipse.xtext.AbstractRule; | ||
9 | import org.eclipse.xtext.ide.editor.contentassist.antlr.FollowElement; | ||
10 | import org.eclipse.xtext.ide.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser; | ||
11 | import org.eclipse.xtext.util.PolymorphicDispatcher; | ||
12 | |||
13 | public class PartialProblemContentAssistParser extends ProblemParser { | ||
14 | |||
15 | private AbstractRule rule; | ||
16 | |||
17 | @Override | ||
18 | public void initializeFor(AbstractRule rule) { | ||
19 | this.rule = rule; | ||
20 | } | ||
21 | |||
22 | @Override | ||
23 | protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) { | ||
24 | if (rule == null || rule.eIsProxy()) | ||
25 | return Collections.emptyList(); | ||
26 | String methodName = "entryRule" + rule.getName(); | ||
27 | PolymorphicDispatcher<Collection<FollowElement>> dispatcher = | ||
28 | new PolymorphicDispatcher<Collection<FollowElement>>(methodName, 0, 0, Collections.singletonList(parser)); | ||
29 | dispatcher.invoke(); | ||
30 | return parser.getFollowElements(); | ||
31 | } | ||
32 | |||
33 | } | ||