diff options
Diffstat (limited to 'plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/UmlPropertyParser.java')
-rw-r--r-- | plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/UmlPropertyParser.java | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/UmlPropertyParser.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/UmlPropertyParser.java index af3f46f512f..cbb32c4bed5 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/UmlPropertyParser.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/UmlPropertyParser.java @@ -4,10 +4,11 @@ package org.eclipse.papyrus.uml.textedit.property.xtext.ui.contentassist.antlr; import java.util.Collection; -import java.util.Map; import java.util.HashMap; +import java.util.Map; import org.antlr.runtime.RecognitionException; +import org.eclipse.papyrus.uml.textedit.property.xtext.services.UmlPropertyGrammarAccess; import org.eclipse.xtext.AbstractElement; import org.eclipse.xtext.ui.editor.contentassist.antlr.AbstractContentAssistParser; import org.eclipse.xtext.ui.editor.contentassist.antlr.FollowElement; @@ -15,22 +16,20 @@ import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.AbstractInternal import com.google.inject.Inject; -import org.eclipse.papyrus.uml.textedit.property.xtext.services.UmlPropertyGrammarAccess; - public class UmlPropertyParser extends AbstractContentAssistParser { - + @Inject private UmlPropertyGrammarAccess grammarAccess; - + private Map<AbstractElement, String> nameMappings; - + @Override protected org.eclipse.papyrus.uml.textedit.property.xtext.ui.contentassist.antlr.internal.InternalUmlPropertyParser createParser() { org.eclipse.papyrus.uml.textedit.property.xtext.ui.contentassist.antlr.internal.InternalUmlPropertyParser result = new org.eclipse.papyrus.uml.textedit.property.xtext.ui.contentassist.antlr.internal.InternalUmlPropertyParser(null); result.setGrammarAccess(grammarAccess); return result; } - + @Override protected String getRuleName(AbstractElement element) { if (nameMappings == null) { @@ -99,27 +98,27 @@ public class UmlPropertyParser extends AbstractContentAssistParser { } return nameMappings.get(element); } - + @Override protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) { try { org.eclipse.papyrus.uml.textedit.property.xtext.ui.contentassist.antlr.internal.InternalUmlPropertyParser typedParser = (org.eclipse.papyrus.uml.textedit.property.xtext.ui.contentassist.antlr.internal.InternalUmlPropertyParser) parser; typedParser.entryRulePropertyRule(); return typedParser.getFollowElements(); - } catch(RecognitionException ex) { + } catch (RecognitionException ex) { throw new RuntimeException(ex); - } + } } - + @Override protected String[] getInitialHiddenTokens() { return new String[] { "RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT" }; } - + public UmlPropertyGrammarAccess getGrammarAccess() { return this.grammarAccess; } - + public void setGrammarAccess(UmlPropertyGrammarAccess grammarAccess) { this.grammarAccess = grammarAccess; } |