diff options
author | 2021-08-03 18:42:39 +0900 | |
---|---|---|
committer | 2021-08-06 19:32:38 +0900 | |
commit | be4f78978faba3d3ceb88df02a7f93a2e09ff1e0 (patch) | |
tree | 1f3f1a96251ac4f655c8a96fc33d5d4ee779cd06 /rba.tool.editor.ide/src-gen/rba/tool/editor/ide/contentassist/antlr/PartialRBAModelContentAssistParser.java | |
parent | 71ca7c6cab863767ef30c8bd05b2bbfda8731cb5 (diff) |
Initial commit
Bug-AGL: SPEC-4033
Signed-off-by: Kenji Hosokawa <khosokawa@jp.adit-jv.com>
Diffstat (limited to 'rba.tool.editor.ide/src-gen/rba/tool/editor/ide/contentassist/antlr/PartialRBAModelContentAssistParser.java')
-rw-r--r-- | rba.tool.editor.ide/src-gen/rba/tool/editor/ide/contentassist/antlr/PartialRBAModelContentAssistParser.java | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/rba.tool.editor.ide/src-gen/rba/tool/editor/ide/contentassist/antlr/PartialRBAModelContentAssistParser.java b/rba.tool.editor.ide/src-gen/rba/tool/editor/ide/contentassist/antlr/PartialRBAModelContentAssistParser.java new file mode 100644 index 0000000..3f527a5 --- /dev/null +++ b/rba.tool.editor.ide/src-gen/rba/tool/editor/ide/contentassist/antlr/PartialRBAModelContentAssistParser.java @@ -0,0 +1,34 @@ +/*
+ * generated by Xtext 2.13.0
+ */
+package rba.tool.editor.ide.contentassist.antlr;
+
+import java.util.Collection;
+import java.util.Collections;
+import org.eclipse.xtext.AbstractRule;
+import org.eclipse.xtext.ide.editor.contentassist.antlr.FollowElement;
+import org.eclipse.xtext.ide.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser;
+import org.eclipse.xtext.ide.editor.partialEditing.IPartialEditingContentAssistParser;
+import org.eclipse.xtext.util.PolymorphicDispatcher;
+
+public class PartialRBAModelContentAssistParser extends RBAModelParser implements IPartialEditingContentAssistParser {
+
+ private AbstractRule rule;
+
+ @Override
+ public void initializeFor(AbstractRule rule) {
+ this.rule = rule;
+ }
+
+ @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();
+ }
+
+}
|