summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorszarnekow2009-01-27 09:26:16 (EST)
committer sefftinge2009-01-27 09:26:16 (EST)
commitb976c1438b73709145098500cc961f745cdfd689 (patch)
tree7eaadae124f2fe16b6b04a03d93ce699c544f2de
parentd31eb20a0cd94ee61fbd8b26f7366dc5836f1191 (diff)
downloadorg.eclipse.xtext-b976c1438b73709145098500cc961f745cdfd689.zip
org.eclipse.xtext-b976c1438b73709145098500cc961f745cdfd689.tar.gz
org.eclipse.xtext-b976c1438b73709145098500cc961f745cdfd689.tar.bz2
extracted all antlr.gen dependencies into a separate plugin and made the dependencies pure optional
-rw-r--r--develop/psf/extssh-withProxy/xtext-projectset.psf7
-rw-r--r--develop/psf/extssh/xtext-projectset.psf8
-rw-r--r--develop/psf/pserver/xtext-projectset.psf8
-rw-r--r--devtools/org.eclipse.xtext.reference/META-INF/MANIFEST.MF3
-rw-r--r--devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/AbstractReferenceGrammarRuntimeConfig.java10
-rw-r--r--devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/ReferenceGrammar.ecore6
-rw-r--r--examples/org.eclipse.xtext.example.domainmodel/META-INF/MANIFEST.MF3
-rw-r--r--examples/org.eclipse.xtext.example.domainmodel/src-gen/org/eclipse/xtext/example/AbstractDomainmodelRuntimeConfig.java10
-rw-r--r--examples/org.eclipse.xtext.example.domainmodel/src-gen/org/eclipse/xtext/example/domainmodel.ecore2
-rw-r--r--examples/org.eclipse.xtext.example.fowlerdsl/META-INF/MANIFEST.MF3
-rw-r--r--examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/AbstractFowlerDslRuntimeConfig.java10
-rw-r--r--plugins/org.eclipse.xtext.service/src/org/eclipse/xtext/service/GenericServiceFactory.java4
-rw-r--r--plugins/org.eclipse.xtext.ui.builtin/src/org/eclipse/xtext/ui/common/XtextBuiltinUiConfiguration.java11
-rw-r--r--plugins/org.eclipse.xtext.ui.builtin/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/BuiltinTokenStyles.java (renamed from plugins/org.eclipse.xtext.ui.builtin/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/tokens/BuiltinTokenStyles.java)2
-rw-r--r--plugins/org.eclipse.xtext.ui.builtin/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/antlr/BuiltinAntlrTokenColorer.java (renamed from plugins/org.eclipse.xtext.ui.builtin/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/tokens/BuiltinTokenColorer.java)22
-rw-r--r--plugins/org.eclipse.xtext.ui.common/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/AbstractTokenScanner.java (renamed from plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/DefaultTokenScanner.java)57
-rw-r--r--plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/ITokenStyleProvider.java19
-rw-r--r--plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/SyntaxColoringPreferencePage.java31
-rw-r--r--plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/antlr/AbstractAntlrTokenColorer.java (renamed from plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/AbstractAntlrTokenColorer.java)20
-rw-r--r--plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/antlr/AntlrTokenScanner.java66
-rw-r--r--plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/antlr/AntlrTokenStyleProvider.java45
-rw-r--r--plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/antlr/ITokenColorer.java (renamed from plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/ITokenColorer.java)5
-rw-r--r--plugins/org.eclipse.xtext.ui.core/src/org/eclipse/xtext/ui/core/editor/model/XtextDocumentProvider.java3
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/AbstractXtextGrammarTestLanguageRuntimeConfig.java10
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/AbstractImportUriTestLanguageRuntimeConfig.java10
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/AbstractLangATestLanguageRuntimeConfig.java10
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/AbstractDummyTestLanguageRuntimeConfig.java10
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/AbstractConcreteTestLanguageRuntimeConfig.java10
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/AbstractMetamodelRefTestLanguageRuntimeConfig.java10
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/AbstractMultiGenMMTestLanguageRuntimeConfig.java10
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/AbstractDatatypeRulesTestLanguageRuntimeConfig.java10
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/terminalrules/AbstractTerminalRulesTestLanguageRuntimeConfig.java10
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/terminalrules/AbstractXtextTerminalsTestLanguageRuntimeConfig.java10
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/terminalrules/XtextTerminalsTestLanguage.ecore8
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/formatter/AbstractFormatterTestLanguageRuntimeConfig.java10
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/AbstractComplexReconstrTestLanguageRuntimeConfig.java10
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/AbstractSimpleReconstrTestLanguageRuntimeConfig.java10
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/transientvalues/AbstractTransientValuesTestRuntimeConfig.java10
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/resource/metamodel/AbstractMultiValueFeatureTestLanguageRuntimeConfig.java10
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractActionTestLanguageRuntimeConfig.java10
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractContentAssistTestLanguageRuntimeConfig.java10
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractFowlerDslTestLanguageRuntimeConfig.java10
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractLexerTestLanguageRuntimeConfig.java10
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractLookaheadTestLanguageRuntimeConfig.java10
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractOptionalEmptyTestLanguageRuntimeConfig.java10
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractPartialParserTestLanguageRuntimeConfig.java10
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractReferenceGrammarTestLanguageRuntimeConfig.java10
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractSimpleExpressionsTestLanguageRuntimeConfig.java10
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractTestLanguageRuntimeConfig.java10
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractTreeTestLanguageRuntimeConfig.java10
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/valueconverter/AbstractBug250313RuntimeConfig.java10
-rw-r--r--tests/org.eclipse.xtext.ui.common.tests/META-INF/MANIFEST.MF3
-rw-r--r--tests/org.eclipse.xtext.ui.integration.tests/META-INF/MANIFEST.MF3
-rw-r--r--tests/org.eclipse.xtext.ui.integration.tests/src-gen/org/eclipse/xtext/ui/integration/AbstractTestLanguageRuntimeConfig.java10
55 files changed, 365 insertions, 285 deletions
diff --git a/develop/psf/extssh-withProxy/xtext-projectset.psf b/develop/psf/extssh-withProxy/xtext-projectset.psf
index df557d1..b83dffd 100644
--- a/develop/psf/extssh-withProxy/xtext-projectset.psf
+++ b/develop/psf/extssh-withProxy/xtext-projectset.psf
@@ -3,6 +3,7 @@
<provider id="org.eclipse.team.cvs.core.cvsnature">
<project reference="1.0,:extssh:proxy.eclipse.org:443/cvsroot/modeling,org.eclipse.tmf/org.eclipse.xtext/develop,develop"/>
<project reference="1.0,:pserver:architecturware.cvs.sourceforge.net:/cvsroot/architecturware,xtext_external/org.antlr,org.antlr"/>
+<project reference="1.0,:pserver:architecturware.cvs.sourceforge.net:/cvsroot/architecturware,xtext_external/de.itemis.xtext.antlr,de.itemis.xtext.antlr"/>
<project reference="1.0,:extssh:proxy.eclipse.org:443/cvsroot/tools,org.eclipse.orbit/org.antlr.runtime,org.antlr.runtime,v3_0_0"/>
<project reference="1.0,:extssh:proxy.eclipse.org:443/cvsroot/tools,org.eclipse.orbit/org.easymock,org.easymock,v2_3"/>
<project reference="1.0,:extssh:proxy.eclipse.org:443/cvsroot/modeling,org.eclipse.emf/org.eclipse.emf.mwe/plugins/org.eclipse.emf.mwe.core,org.eclipse.emf.mwe.core"/>
@@ -117,9 +118,11 @@
<item elementID="=org.eclipse.xtext.service.ui" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
<item elementID="=org.eclipse.xtext.ui.common" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
<item elementID="=org.eclipse.xtext.ui.common.xtend" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
-<item elementID="=org.eclipse.xtext.common.ui" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
<item elementID="=org.eclipse.xtext.service.ui.tests" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
-<item elementID="=org.eclipse.xtext.ui" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
<item elementID="=org.eclipse.xtext.ui.integration.tests" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
</workingSets>
+<workingSets editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" label="Deprecated" name="Deprecated">
+<item elementID="=org.eclipse.xtext.common.ui" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
+<item elementID="=org.eclipse.xtext.ui" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
+</workingSets>
</psf> \ No newline at end of file
diff --git a/develop/psf/extssh/xtext-projectset.psf b/develop/psf/extssh/xtext-projectset.psf
index 8530567..5817339 100644
--- a/develop/psf/extssh/xtext-projectset.psf
+++ b/develop/psf/extssh/xtext-projectset.psf
@@ -3,6 +3,7 @@
<provider id="org.eclipse.team.cvs.core.cvsnature">
<project reference="1.0,:extssh:dev.eclipse.org:/cvsroot/modeling,org.eclipse.tmf/org.eclipse.xtext/develop,develop"/>
<project reference="1.0,:pserver:architecturware.cvs.sourceforge.net:/cvsroot/architecturware,xtext_external/org.antlr,org.antlr"/>
+<project reference="1.0,:pserver:architecturware.cvs.sourceforge.net:/cvsroot/architecturware,xtext_external/de.itemis.xtext.antlr,de.itemis.xtext.antlr"/>
<project reference="1.0,:extssh:dev.eclipse.org:/cvsroot/tools,org.eclipse.orbit/org.antlr.runtime,org.antlr.runtime,v3_0_0"/>
<project reference="1.0,:extssh:dev.eclipse.org:/cvsroot/tools,org.eclipse.orbit/org.easymock,org.easymock,v2_3"/>
<project reference="1.0,:extssh:dev.eclipse.org:/cvsroot/modeling,org.eclipse.emf/org.eclipse.emf.mwe/plugins/org.eclipse.emf.mwe.core,org.eclipse.emf.mwe.core"/>
@@ -73,6 +74,7 @@
<item elementID="=org.eclipse.xtext.log4j" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
<item elementID="=org.antlr.runtime" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
<item elementID="=org.antlr" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
+<item elementID="=de.itemis.xtext.antlr" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
</workingSets>
<workingSets editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" label="Xtext Core" name="Xtext Core">
<item elementID="=org.eclipse.xtext.generator" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
@@ -117,9 +119,11 @@
<item elementID="=org.eclipse.xtext.service.ui" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
<item elementID="=org.eclipse.xtext.ui.common" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
<item elementID="=org.eclipse.xtext.ui.common.xtend" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
-<item elementID="=org.eclipse.xtext.common.ui" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
<item elementID="=org.eclipse.xtext.service.ui.tests" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
-<item elementID="=org.eclipse.xtext.ui" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
<item elementID="=org.eclipse.xtext.ui.integration.tests" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
</workingSets>
+<workingSets editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" label="Deprecated" name="Deprecated">
+<item elementID="=org.eclipse.xtext.common.ui" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
+<item elementID="=org.eclipse.xtext.ui" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
+</workingSets>
</psf> \ No newline at end of file
diff --git a/develop/psf/pserver/xtext-projectset.psf b/develop/psf/pserver/xtext-projectset.psf
index 24036c5..bd4a247 100644
--- a/develop/psf/pserver/xtext-projectset.psf
+++ b/develop/psf/pserver/xtext-projectset.psf
@@ -3,6 +3,7 @@
<provider id="org.eclipse.team.cvs.core.cvsnature">
<project reference="1.0,:pserver:anonymous@dev.eclipse.org:/cvsroot/modeling,org.eclipse.tmf/org.eclipse.xtext/develop,develop"/>
<project reference="1.0,:pserver:architecturware.cvs.sourceforge.net:/cvsroot/architecturware,xtext_external/org.antlr,org.antlr"/>
+<project reference="1.0,:pserver:architecturware.cvs.sourceforge.net:/cvsroot/architecturware,xtext_external/de.itemis.xtext.antlr,de.itemis.xtext.antlr"/>
<project reference="1.0,:pserver:anonymous@dev.eclipse.org:/cvsroot/tools,org.eclipse.orbit/org.antlr.runtime,org.antlr.runtime,v3_0_0"/>
<project reference="1.0,:pserver:anonymous@dev.eclipse.org:/cvsroot/tools,org.eclipse.orbit/org.easymock,org.easymock,v2_3"/>
<project reference="1.0,:pserver:anonymous@dev.eclipse.org:/cvsroot/modeling,org.eclipse.emf/org.eclipse.emf.mwe/plugins/org.eclipse.emf.mwe.core,org.eclipse.emf.mwe.core"/>
@@ -73,6 +74,7 @@
<item elementID="=org.eclipse.xtext.log4j" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
<item elementID="=org.antlr.runtime" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
<item elementID="=org.antlr" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
+<item elementID="=de.itemis.xtext.antlr" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
</workingSets>
<workingSets editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" label="Xtext Core" name="Xtext Core">
<item elementID="=org.eclipse.xtext.generator" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
@@ -117,9 +119,11 @@
<item elementID="=org.eclipse.xtext.service.ui" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
<item elementID="=org.eclipse.xtext.ui.common" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
<item elementID="=org.eclipse.xtext.ui.common.xtend" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
-<item elementID="=org.eclipse.xtext.common.ui" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
<item elementID="=org.eclipse.xtext.service.ui.tests" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
-<item elementID="=org.eclipse.xtext.ui" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
<item elementID="=org.eclipse.xtext.ui.integration.tests" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
</workingSets>
+<workingSets editPageId="org.eclipse.jdt.ui.JavaWorkingSetPage" label="Deprecated" name="Deprecated">
+<item elementID="=org.eclipse.xtext.common.ui" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
+<item elementID="=org.eclipse.xtext.ui" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
+</workingSets>
</psf> \ No newline at end of file
diff --git a/devtools/org.eclipse.xtext.reference/META-INF/MANIFEST.MF b/devtools/org.eclipse.xtext.reference/META-INF/MANIFEST.MF
index 3380910..d188610 100644
--- a/devtools/org.eclipse.xtext.reference/META-INF/MANIFEST.MF
+++ b/devtools/org.eclipse.xtext.reference/META-INF/MANIFEST.MF
@@ -13,4 +13,5 @@ Export-Package: ReferenceModel,
org.eclipse.xtext.reference.services
Require-Bundle: org.eclipse.xtext.log4j;bundle-version="1.2.15",
org.eclipse.xtext,
- org.eclipse.xtext.generator
+ org.eclipse.xtext.generator,
+ de.itemis.xtext.antlr;bundle-version="1.0.0";resolution:=optional
diff --git a/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/AbstractReferenceGrammarRuntimeConfig.java b/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/AbstractReferenceGrammarRuntimeConfig.java
index a5c5de1..34fe1ce 100644
--- a/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/AbstractReferenceGrammarRuntimeConfig.java
+++ b/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/AbstractReferenceGrammarRuntimeConfig.java
@@ -17,10 +17,6 @@ public abstract class AbstractReferenceGrammarRuntimeConfig extends AbstractServ
return org.eclipse.xtext.reference.services.ReferenceGrammarGrammarAccess.class;
}
- protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
- return org.eclipse.xtext.reference.parser.packrat.ReferenceGrammarPackratParser.class;
- }
-
protected Class<? extends org.eclipse.xtext.resource.IResourceFactory> getIResourceFactory() {
return org.eclipse.xtext.reference.services.ReferenceGrammarResourceFactory.class;
}
@@ -57,12 +53,15 @@ public abstract class AbstractReferenceGrammarRuntimeConfig extends AbstractServ
return org.eclipse.xtext.reference.parser.antlr.internal.InternalReferenceGrammarLexer.class;
}
+ protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
+ return org.eclipse.xtext.reference.parser.packrat.ReferenceGrammarPackratParser.class;
+ }
+
public Set<IServiceRegistration> registrations() {
return scope(org.eclipse.xtext.reference.IReferenceGrammar.SCOPE)
.with(org.eclipse.xtext.IMetamodelAccess.class, getIMetamodelAccess())
.with(org.eclipse.xtext.IGrammarAccess.class, getIGrammarAccess())
- .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.with(org.eclipse.xtext.resource.IResourceFactory.class, getIResourceFactory())
.with(org.eclipse.xtext.parsetree.reconstr.IParseTreeConstructor.class, getIParseTreeConstructor())
.with(org.eclipse.xtext.parsetree.reconstr.ITokenSerializer.class, getITokenSerializer())
@@ -72,6 +71,7 @@ public abstract class AbstractReferenceGrammarRuntimeConfig extends AbstractServ
.with(org.eclipse.xtext.parser.IParser.class, getIParser())
.with(org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider.class, getIAntlrTokenFileProvider())
.with(org.eclipse.xtext.parser.antlr.Lexer.class, getLexer())
+ .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.registrations();
}
diff --git a/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/ReferenceGrammar.ecore b/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/ReferenceGrammar.ecore
index c70d0ae..e234417 100644
--- a/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/ReferenceGrammar.ecore
+++ b/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/ReferenceGrammar.ecore
@@ -16,12 +16,12 @@
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Person">
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="name">
- <eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="age">
<eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
</eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="name">
+ <eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ </eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Kind" eSuperTypes="//Person"/>
<eClassifiers xsi:type="ecore:EClass" name="Erwachsener" eSuperTypes="//Person"/>
diff --git a/examples/org.eclipse.xtext.example.domainmodel/META-INF/MANIFEST.MF b/examples/org.eclipse.xtext.example.domainmodel/META-INF/MANIFEST.MF
index 1ea7b76..096af97 100644
--- a/examples/org.eclipse.xtext.example.domainmodel/META-INF/MANIFEST.MF
+++ b/examples/org.eclipse.xtext.example.domainmodel/META-INF/MANIFEST.MF
@@ -13,7 +13,8 @@ Require-Bundle: org.eclipse.xtext.log4j;bundle-version="1.2.15",
org.eclipse.xtend.typesystem.emf,
org.eclipse.xpand,
org.apache.commons.logging,
- org.eclipse.xtend.util.stdlib
+ org.eclipse.xtend.util.stdlib,
+ de.itemis.xtext.antlr;bundle-version="1.0.0";resolution:=optional
Export-Package: org.eclipse.xtext.example,
org.eclipse.xtext.example.parsetree.reconstr,
org.eclipse.xtext.example.services,
diff --git a/examples/org.eclipse.xtext.example.domainmodel/src-gen/org/eclipse/xtext/example/AbstractDomainmodelRuntimeConfig.java b/examples/org.eclipse.xtext.example.domainmodel/src-gen/org/eclipse/xtext/example/AbstractDomainmodelRuntimeConfig.java
index 8412843..9acc564 100644
--- a/examples/org.eclipse.xtext.example.domainmodel/src-gen/org/eclipse/xtext/example/AbstractDomainmodelRuntimeConfig.java
+++ b/examples/org.eclipse.xtext.example.domainmodel/src-gen/org/eclipse/xtext/example/AbstractDomainmodelRuntimeConfig.java
@@ -17,10 +17,6 @@ public abstract class AbstractDomainmodelRuntimeConfig extends AbstractServiceRe
return org.eclipse.xtext.example.services.DomainmodelGrammarAccess.class;
}
- protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
- return org.eclipse.xtext.example.parser.packrat.DomainmodelPackratParser.class;
- }
-
protected Class<? extends org.eclipse.xtext.resource.IResourceFactory> getIResourceFactory() {
return org.eclipse.xtext.example.services.DomainmodelResourceFactory.class;
}
@@ -57,12 +53,15 @@ public abstract class AbstractDomainmodelRuntimeConfig extends AbstractServiceRe
return org.eclipse.xtext.example.parser.antlr.internal.InternalDomainmodelLexer.class;
}
+ protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
+ return org.eclipse.xtext.example.parser.packrat.DomainmodelPackratParser.class;
+ }
+
public Set<IServiceRegistration> registrations() {
return scope(org.eclipse.xtext.example.IDomainmodel.SCOPE)
.with(org.eclipse.xtext.IMetamodelAccess.class, getIMetamodelAccess())
.with(org.eclipse.xtext.IGrammarAccess.class, getIGrammarAccess())
- .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.with(org.eclipse.xtext.resource.IResourceFactory.class, getIResourceFactory())
.with(org.eclipse.xtext.parsetree.reconstr.IParseTreeConstructor.class, getIParseTreeConstructor())
.with(org.eclipse.xtext.parsetree.reconstr.ITokenSerializer.class, getITokenSerializer())
@@ -72,6 +71,7 @@ public abstract class AbstractDomainmodelRuntimeConfig extends AbstractServiceRe
.with(org.eclipse.xtext.parser.IParser.class, getIParser())
.with(org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider.class, getIAntlrTokenFileProvider())
.with(org.eclipse.xtext.parser.antlr.Lexer.class, getLexer())
+ .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.registrations();
}
diff --git a/examples/org.eclipse.xtext.example.domainmodel/src-gen/org/eclipse/xtext/example/domainmodel.ecore b/examples/org.eclipse.xtext.example.domainmodel/src-gen/org/eclipse/xtext/example/domainmodel.ecore
index 9f2974c..6d74b1d 100644
--- a/examples/org.eclipse.xtext.example.domainmodel/src-gen/org/eclipse/xtext/example/domainmodel.ecore
+++ b/examples/org.eclipse.xtext.example.domainmodel/src-gen/org/eclipse/xtext/example/domainmodel.ecore
@@ -34,10 +34,10 @@
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Parameter" eSuperTypes="//TypedElement"/>
<eClassifiers xsi:type="ecore:EClass" name="TypedElement">
- <eStructuralFeatures xsi:type="ecore:EReference" name="type" eType="//TypeRef" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name">
<eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="type" eType="//TypeRef" containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="TypeRef">
<eStructuralFeatures xsi:type="ecore:EReference" name="referenced" eType="//Type"/>
diff --git a/examples/org.eclipse.xtext.example.fowlerdsl/META-INF/MANIFEST.MF b/examples/org.eclipse.xtext.example.fowlerdsl/META-INF/MANIFEST.MF
index 94831f9..1746542 100644
--- a/examples/org.eclipse.xtext.example.fowlerdsl/META-INF/MANIFEST.MF
+++ b/examples/org.eclipse.xtext.example.fowlerdsl/META-INF/MANIFEST.MF
@@ -9,7 +9,8 @@ Bundle-RequiredExecutionEnvironment: J2SE-1.5
Bundle-ActivationPolicy: lazy
Require-Bundle: org.eclipse.xtext,
org.eclipse.xtext.generator,
- org.eclipse.xtext.log4j;bundle-version="1.2.15"
+ org.eclipse.xtext.log4j;bundle-version="1.2.15",
+ de.itemis.xtext.antlr;bundle-version="1.0.0";resolution:=optional
Export-Package: org.eclipse.xtext.example,
org.eclipse.xtext.example.parsetree.reconstr;
uses:="org.eclipse.xtext.parsetree.reconstr,
diff --git a/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/AbstractFowlerDslRuntimeConfig.java b/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/AbstractFowlerDslRuntimeConfig.java
index d0a420b..86ccedd 100644
--- a/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/AbstractFowlerDslRuntimeConfig.java
+++ b/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/AbstractFowlerDslRuntimeConfig.java
@@ -17,10 +17,6 @@ public abstract class AbstractFowlerDslRuntimeConfig extends AbstractServiceRegi
return org.eclipse.xtext.example.services.FowlerDslGrammarAccess.class;
}
- protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
- return org.eclipse.xtext.example.parser.packrat.FowlerDslPackratParser.class;
- }
-
protected Class<? extends org.eclipse.xtext.resource.IResourceFactory> getIResourceFactory() {
return org.eclipse.xtext.example.services.FowlerDslResourceFactory.class;
}
@@ -57,12 +53,15 @@ public abstract class AbstractFowlerDslRuntimeConfig extends AbstractServiceRegi
return org.eclipse.xtext.example.parser.antlr.internal.InternalFowlerDslLexer.class;
}
+ protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
+ return org.eclipse.xtext.example.parser.packrat.FowlerDslPackratParser.class;
+ }
+
public Set<IServiceRegistration> registrations() {
return scope(org.eclipse.xtext.example.IFowlerDsl.SCOPE)
.with(org.eclipse.xtext.IMetamodelAccess.class, getIMetamodelAccess())
.with(org.eclipse.xtext.IGrammarAccess.class, getIGrammarAccess())
- .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.with(org.eclipse.xtext.resource.IResourceFactory.class, getIResourceFactory())
.with(org.eclipse.xtext.parsetree.reconstr.IParseTreeConstructor.class, getIParseTreeConstructor())
.with(org.eclipse.xtext.parsetree.reconstr.ITokenSerializer.class, getITokenSerializer())
@@ -72,6 +71,7 @@ public abstract class AbstractFowlerDslRuntimeConfig extends AbstractServiceRegi
.with(org.eclipse.xtext.parser.IParser.class, getIParser())
.with(org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider.class, getIAntlrTokenFileProvider())
.with(org.eclipse.xtext.parser.antlr.Lexer.class, getLexer())
+ .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.registrations();
}
diff --git a/plugins/org.eclipse.xtext.service/src/org/eclipse/xtext/service/GenericServiceFactory.java b/plugins/org.eclipse.xtext.service/src/org/eclipse/xtext/service/GenericServiceFactory.java
index e622555..a36f714 100644
--- a/plugins/org.eclipse.xtext.service/src/org/eclipse/xtext/service/GenericServiceFactory.java
+++ b/plugins/org.eclipse.xtext.service/src/org/eclipse/xtext/service/GenericServiceFactory.java
@@ -9,9 +9,7 @@
package org.eclipse.xtext.service;
/**
- *
* @author Sven Efftinge - Initial contribution and API
- *
*/
public class GenericServiceFactory implements IServiceFactory {
@@ -31,7 +29,7 @@ public class GenericServiceFactory implements IServiceFactory {
try {
return serviceClass.newInstance();
} catch(Exception exc) {
- throw new RuntimeException(exc);
+ throw new RuntimeException(serviceClass.getSimpleName() + ": " + exc);
}
}
diff --git a/plugins/org.eclipse.xtext.ui.builtin/src/org/eclipse/xtext/ui/common/XtextBuiltinUiConfiguration.java b/plugins/org.eclipse.xtext.ui.builtin/src/org/eclipse/xtext/ui/common/XtextBuiltinUiConfiguration.java
index 68e09cf..fe52d4b 100644
--- a/plugins/org.eclipse.xtext.ui.builtin/src/org/eclipse/xtext/ui/common/XtextBuiltinUiConfiguration.java
+++ b/plugins/org.eclipse.xtext.ui.builtin/src/org/eclipse/xtext/ui/common/XtextBuiltinUiConfiguration.java
@@ -2,12 +2,13 @@ package org.eclipse.xtext.ui.common;
import java.util.Set;
+import org.eclipse.jface.text.rules.ITokenScanner;
import org.eclipse.xtext.builtin.IXtextBuiltin;
import org.eclipse.xtext.service.AbstractServiceRegistrationFactory;
import org.eclipse.xtext.ui.common.editor.outline.XtextContentOutlinePage;
-import org.eclipse.xtext.ui.common.editor.syntaxcoloring.DefaultTokenScanner;
-import org.eclipse.xtext.ui.common.editor.syntaxcoloring.ITokenColorer;
-import org.eclipse.xtext.ui.common.editor.syntaxcoloring.tokens.BuiltinTokenColorer;
+import org.eclipse.xtext.ui.common.editor.syntaxcoloring.antlr.AntlrTokenScanner;
+import org.eclipse.xtext.ui.common.editor.syntaxcoloring.antlr.BuiltinAntlrTokenColorer;
+import org.eclipse.xtext.ui.common.editor.syntaxcoloring.antlr.ITokenColorer;
import org.eclipse.xtext.ui.core.editor.XtextSourceViewerConfiguration;
public class XtextBuiltinUiConfiguration extends AbstractServiceRegistrationFactory {
@@ -16,8 +17,8 @@ public class XtextBuiltinUiConfiguration extends AbstractServiceRegistrationFact
return scope(IXtextBuiltin.SCOPE)
.with(XtextSourceViewerConfiguration.class)
.with(XtextContentOutlinePage.class)
- .with(ITokenColorer.class, BuiltinTokenColorer.class)
- .with(DefaultTokenScanner.class).registrations();
+ .with(ITokenColorer.class, BuiltinAntlrTokenColorer.class)
+ .with(ITokenScanner.class, AntlrTokenScanner.class).registrations();
}
}
diff --git a/plugins/org.eclipse.xtext.ui.builtin/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/tokens/BuiltinTokenStyles.java b/plugins/org.eclipse.xtext.ui.builtin/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/BuiltinTokenStyles.java
index 5019155..e542d62 100644
--- a/plugins/org.eclipse.xtext.ui.builtin/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/tokens/BuiltinTokenStyles.java
+++ b/plugins/org.eclipse.xtext.ui.builtin/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/BuiltinTokenStyles.java
@@ -5,7 +5,7 @@
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*******************************************************************************/
-package org.eclipse.xtext.ui.common.editor.syntaxcoloring.tokens;
+package org.eclipse.xtext.ui.common.editor.syntaxcoloring;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.RGB;
diff --git a/plugins/org.eclipse.xtext.ui.builtin/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/tokens/BuiltinTokenColorer.java b/plugins/org.eclipse.xtext.ui.builtin/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/antlr/BuiltinAntlrTokenColorer.java
index 726d680..313d301 100644
--- a/plugins/org.eclipse.xtext.ui.builtin/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/tokens/BuiltinTokenColorer.java
+++ b/plugins/org.eclipse.xtext.ui.builtin/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/antlr/BuiltinAntlrTokenColorer.java
@@ -5,40 +5,38 @@
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*******************************************************************************/
-package org.eclipse.xtext.ui.common.editor.syntaxcoloring.tokens;
+package org.eclipse.xtext.ui.common.editor.syntaxcoloring.antlr;
import java.util.regex.Pattern;
-import org.eclipse.xtext.ui.common.editor.syntaxcoloring.AbstractAntlrTokenColorer;
+import org.eclipse.xtext.ui.common.editor.syntaxcoloring.BuiltinTokenStyles;
import org.eclipse.xtext.ui.common.editor.syntaxcoloring.ITokenStyle;
+import org.eclipse.xtext.ui.common.editor.syntaxcoloring.antlr.AbstractAntlrTokenColorer;
/**
* @author Jan Köhnlein - Initial contribution and API
*/
-public class BuiltinTokenColorer extends AbstractAntlrTokenColorer {
+public class BuiltinAntlrTokenColorer extends AbstractAntlrTokenColorer {
private static final Pattern QUOTED = Pattern.compile("(?:^'([^']*)'$)|(?:^\"([^\"]*)\")$", Pattern.MULTILINE);
private static final Pattern PUNCTUATION = Pattern.compile("\\p{Punct}*");
- /* (non-Javadoc)
- * @see org.eclipse.xtext.ui.common.editor.syntaxcoloring.tokentype.AbstractTokenTypeResolver#deriveTokenType(java.lang.String)
- */
@Override
- protected ITokenStyle deriveTokenStyle(String antlrTokenDef) {
- if(PUNCTUATION.matcher(antlrTokenDef).matches()) {
+ protected ITokenStyle deriveTokenStyle(String antlrTokenId) {
+ if(PUNCTUATION.matcher(antlrTokenId).matches()) {
return BuiltinTokenStyles.PUNCTUATION;
}
- if(QUOTED.matcher(antlrTokenDef).matches()) {
+ if(QUOTED.matcher(antlrTokenId).matches()) {
return BuiltinTokenStyles.KEYWORD;
}
- if("RULE_STRING".equals(antlrTokenDef)) {
+ if("RULE_STRING".equals(antlrTokenId)) {
return BuiltinTokenStyles.STRING;
}
- if("RULE_INT".equals(antlrTokenDef)) {
+ if("RULE_INT".equals(antlrTokenId)) {
return BuiltinTokenStyles.NUMBER;
}
- if("RULE_ML_COMMENT".equals(antlrTokenDef) | "RULE_SL_COMMENT".equals(antlrTokenDef)) {
+ if("RULE_ML_COMMENT".equals(antlrTokenId) | "RULE_SL_COMMENT".equals(antlrTokenId)) {
return BuiltinTokenStyles.COMMENT;
}
return BuiltinTokenStyles.DEFAULT;
diff --git a/plugins/org.eclipse.xtext.ui.common/META-INF/MANIFEST.MF b/plugins/org.eclipse.xtext.ui.common/META-INF/MANIFEST.MF
index 5ce1a57..c6b181c 100644
--- a/plugins/org.eclipse.xtext.ui.common/META-INF/MANIFEST.MF
+++ b/plugins/org.eclipse.xtext.ui.common/META-INF/MANIFEST.MF
@@ -17,6 +17,7 @@ Export-Package: org.eclipse.xtext.ui.common.editor.contentassist,
org.eclipse.xtext.ui.common.editor.outline.impl,
org.eclipse.xtext.ui.common.editor.preferencepage,
org.eclipse.xtext.ui.common.editor.syntaxcoloring,
+ org.eclipse.xtext.ui.common.editor.syntaxcoloring.antlr,
org.eclipse.xtext.ui.common.editor.tasks,
org.eclipse.xtext.ui.common.editor.tasks.dialogfields
Import-Package: org.eclipse.ui.texteditor.templates
diff --git a/plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/DefaultTokenScanner.java b/plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/AbstractTokenScanner.java
index 5ab58c6..95256b1 100644
--- a/plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/DefaultTokenScanner.java
+++ b/plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/AbstractTokenScanner.java
@@ -7,19 +7,12 @@
*******************************************************************************/
package org.eclipse.xtext.ui.common.editor.syntaxcoloring;
-import org.antlr.runtime.ANTLRStringStream;
-import org.antlr.runtime.CommonToken;
import org.eclipse.jface.preference.PreferenceNode;
-import org.eclipse.jface.text.BadLocationException;
-import org.eclipse.jface.text.IDocument;
import org.eclipse.jface.text.TextAttribute;
-import org.eclipse.jface.text.rules.IToken;
import org.eclipse.jface.text.rules.ITokenScanner;
-import org.eclipse.jface.text.rules.Token;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Font;
import org.eclipse.ui.PlatformUI;
-import org.eclipse.xtext.parser.antlr.Lexer;
import org.eclipse.xtext.service.IServiceScope;
import org.eclipse.xtext.service.Inject;
import org.eclipse.xtext.service.ServiceRegistry;
@@ -27,21 +20,10 @@ import org.eclipse.xtext.ui.common.editor.preferencepage.CommonPreferenceConstan
import org.eclipse.xtext.ui.core.editor.utils.TextStyle;
/**
- * Default implementation for the ITokenScanner. Uses an AntLR based
- * {@link Lexer} and am {@link ITokenColorer} to perform syntax coloring.
- *
* @author Jan Köhnlein - Initial contribution and API
* @author Dennis Hübner - Initial contribution and API
*/
-public class DefaultTokenScanner implements ITokenScanner {
-
- private int dirtyRegionOffset;
-
- @Inject
- private ITokenColorer tokenColorer;
-
- @Inject
- private Lexer lexer;
+public abstract class AbstractTokenScanner implements ITokenScanner {
private PreferenceStoreAccessor preferenceStoreAccessor;
@@ -70,42 +52,11 @@ public class DefaultTokenScanner implements ITokenScanner {
// TODO redraw/revalidate editor's StyledText control
}
- private org.antlr.runtime.CommonToken currentAntlrToken;
-
- public int getTokenLength() {
- return currentAntlrToken.getStopIndex() - currentAntlrToken.getStartIndex() + 1;
- }
-
- public int getTokenOffset() {
- return dirtyRegionOffset + currentAntlrToken.getStartIndex();
- }
-
- public IToken nextToken() {
- currentAntlrToken = (CommonToken) lexer.nextToken();
- if (currentAntlrToken.getType() == CommonToken.EOF) {
- return Token.EOF;
- }
- return new Token(createTextAttribute());
- }
-
- public void setRange(IDocument document, int offset, int length) {
- try {
- String dirtyRegion = document.get(offset, length);
- dirtyRegionOffset = offset;
- lexer.setCharStream(new ANTLRStringStream(dirtyRegion));
- }
- catch (BadLocationException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- }
-
- private TextAttribute createTextAttribute() {
+ protected TextAttribute createTextAttribute(ITokenStyle tokenStyle) {
TextStyle textStyle = new TextStyle();
- ITokenStyle ts = tokenColorer.getTokenStyle(currentAntlrToken.getType());
// we need difference to an default TextAttribute(null,null,0,null) in
// DefaultDamagerRepair
- if (ts == null) {
+ if (tokenStyle == null) {
return new TextAttribute(null, null, 0, null) {
@Override
public boolean equals(Object object) {
@@ -114,7 +65,7 @@ public class DefaultTokenScanner implements ITokenScanner {
};
}
else {
- preferenceStoreAccessor.populateTextStyle(ts.getID(), textStyle, ts.getDefaultTextStyle());
+ preferenceStoreAccessor.populateTextStyle(tokenStyle.getID(), textStyle, tokenStyle.getDefaultTextStyle());
}
int style = textStyle.getStyle();
Font fontFromFontData = null;
diff --git a/plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/ITokenStyleProvider.java b/plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/ITokenStyleProvider.java
new file mode 100644
index 0000000..177dafc
--- /dev/null
+++ b/plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/ITokenStyleProvider.java
@@ -0,0 +1,19 @@
+/*******************************************************************************
+ * Copyright (c) 2009 itemis AG (http://www.itemis.eu) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *******************************************************************************/
+package org.eclipse.xtext.ui.common.editor.syntaxcoloring;
+
+import org.eclipse.xtext.service.ILanguageService;
+
+/**
+ * @author Sebastian Zarnekow - Initial contribution and API
+ */
+public interface ITokenStyleProvider extends ILanguageService {
+
+ ITokenStyle[] getTokenStyles();
+
+}
diff --git a/plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/SyntaxColoringPreferencePage.java b/plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/SyntaxColoringPreferencePage.java
index e43390c..634abc1 100644
--- a/plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/SyntaxColoringPreferencePage.java
+++ b/plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/SyntaxColoringPreferencePage.java
@@ -8,10 +8,9 @@
*******************************************************************************/
package org.eclipse.xtext.ui.common.editor.syntaxcoloring;
-import java.util.ArrayList;
+import java.util.Arrays;
import java.util.List;
-import org.eclipse.xtext.parser.antlr.AntlrTokenDefProvider;
import org.eclipse.xtext.service.Inject;
import org.eclipse.xtext.ui.common.editor.preferencepage.CommonPreferenceConstants;
import org.eclipse.xtext.ui.core.editor.preferences.AbstractPreferencePage;
@@ -19,15 +18,12 @@ import org.eclipse.xtext.ui.core.editor.utils.TextStyle;
/**
* @author Dennis Hübner - Initial contribution and API
- *
+ * @author Sebastian Zarnekow
*/
public class SyntaxColoringPreferencePage extends AbstractPreferencePage {
@Inject
- private AntlrTokenDefProvider tokenDefProvider;
-
- @Inject
- private ITokenColorer tc;
+ private ITokenStyleProvider tokenStyleProvider;
@Override
protected String qualifiedName() {
@@ -36,26 +32,19 @@ public class SyntaxColoringPreferencePage extends AbstractPreferencePage {
@Override
protected void createFieldEditors() {
- List<ITokenStyle> allTokenTypes = new ArrayList<ITokenStyle>();
- for (Integer id : tokenDefProvider.getTokenDefMap().keySet()) {
- ITokenStyle tokenStyle = tc.getTokenStyle(id);
- if (!allTokenTypes.contains(tokenStyle)) {
- allTokenTypes.add(tokenStyle);
- }
- }
- refreshTokenStyles(allTokenTypes);
+ final List<ITokenStyle> allTokenStyles = Arrays.asList(tokenStyleProvider.getTokenStyles());
+ refreshTokenStyles(allTokenStyles);
addField(new TokenTypeDefMasterDetailFieldEditor(CommonPreferenceConstants.TOKEN_STYLES_PREFERENCE_TAG,
- "Token Styles", getFieldEditorParent(), getPreferenceStore(), allTokenTypes));
+ "Token Styles", getFieldEditorParent(), getPreferenceStore(), allTokenStyles));
}
/**
- * @param allTokenTypes
+ * @param allTokenStyles
*/
- private void refreshTokenStyles(List<ITokenStyle> allTokenTypes) {
+ private void refreshTokenStyles(List<ITokenStyle> allTokenStyles) {
PreferenceStoreAccessor preferenceStoreAccessor = new PreferenceStoreAccessor(getServiceScope());
- for (ITokenStyle tokenTypeDef : allTokenTypes) {
- preferenceStoreAccessor.populateTextStyle(tokenTypeDef.getID(), new TextStyle(), tokenTypeDef
- .getDefaultTextStyle());
+ for (ITokenStyle tokenTypeDef : allTokenStyles) {
+ preferenceStoreAccessor.populateTextStyle(tokenTypeDef.getID(), new TextStyle(), tokenTypeDef.getDefaultTextStyle());
}
}
diff --git a/plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/AbstractAntlrTokenColorer.java b/plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/antlr/AbstractAntlrTokenColorer.java
index 627b1f1..bc3b522 100644
--- a/plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/AbstractAntlrTokenColorer.java
+++ b/plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/antlr/AbstractAntlrTokenColorer.java
@@ -5,7 +5,7 @@
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*******************************************************************************/
-package org.eclipse.xtext.ui.common.editor.syntaxcoloring;
+package org.eclipse.xtext.ui.common.editor.syntaxcoloring.antlr;
import java.util.HashMap;
import java.util.Map;
@@ -13,6 +13,7 @@ import java.util.Map.Entry;
import org.eclipse.xtext.parser.antlr.AntlrTokenDefProvider;
import org.eclipse.xtext.service.Inject;
+import org.eclipse.xtext.ui.common.editor.syntaxcoloring.ITokenStyle;
/**
* @author Jan Köhnlein - Initial contribution and API
@@ -23,17 +24,17 @@ public abstract class AbstractAntlrTokenColorer implements ITokenColorer {
@Inject
protected AntlrTokenDefProvider tokenDefProvider;
- private Map<Integer, ITokenStyle> tokenStyleMap;
+ private Map<String, ITokenStyle> tokenStyleMap;
- protected Map<Integer, ITokenStyle> getTokenStyleMap() {
+ protected Map<String, ITokenStyle> getTokenStyleMap() {
if (tokenStyleMap == null) {
- tokenStyleMap = new HashMap<Integer, ITokenStyle>();
+ tokenStyleMap = new HashMap<String, ITokenStyle>();
Map<Integer, String> tokenDefMap = tokenDefProvider.getTokenDefMap();
//Using entrySet iterator is more efficient as keySet+get(key)
for (Entry<Integer, String> antlrTokenEntry : tokenDefMap.entrySet()) {
String antlrTokenDef = antlrTokenEntry.getValue();
ITokenStyle tokenStyle = deriveTokenStyle(antlrTokenDef);
- tokenStyleMap.put(antlrTokenEntry.getKey(), tokenStyle);
+ tokenStyleMap.put(Integer.toString(antlrTokenEntry.getKey()), tokenStyle);
}
}
return tokenStyleMap;
@@ -41,14 +42,7 @@ public abstract class AbstractAntlrTokenColorer implements ITokenColorer {
protected abstract ITokenStyle deriveTokenStyle(String antlrTokenDef);
- /*
- * (non-Javadoc)
- *
- * @see
- * org.eclipse.xtext.ui.common.editor.syntaxcoloring.tokentype.ITokenColorer
- * #getTokenStyle(org.antlr.runtime.Token)
- */
- public ITokenStyle getTokenStyle(int tokenTypeID) {
+ public ITokenStyle getTokenStyle(String tokenTypeID) {
ITokenStyle tokenStyle = getTokenStyleMap().get(tokenTypeID);
return tokenStyle;
}
diff --git a/plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/antlr/AntlrTokenScanner.java b/plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/antlr/AntlrTokenScanner.java
new file mode 100644
index 0000000..e696807
--- /dev/null
+++ b/plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/antlr/AntlrTokenScanner.java
@@ -0,0 +1,66 @@
+/*******************************************************************************
+ * Copyright (c) 2009 itemis AG (http://www.itemis.eu) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *******************************************************************************/
+package org.eclipse.xtext.ui.common.editor.syntaxcoloring.antlr;
+
+import org.antlr.runtime.ANTLRStringStream;
+import org.antlr.runtime.CommonToken;
+import org.eclipse.jface.text.BadLocationException;
+import org.eclipse.jface.text.IDocument;
+import org.eclipse.jface.text.rules.IToken;
+import org.eclipse.jface.text.rules.Token;
+import org.eclipse.xtext.parser.antlr.Lexer;
+import org.eclipse.xtext.service.Inject;
+import org.eclipse.xtext.service.StatefulService;
+import org.eclipse.xtext.ui.common.editor.syntaxcoloring.AbstractTokenScanner;
+
+/**
+ * Default implementation for the ITokenScanner. Uses an AntLR based
+ * {@link Lexer} and am {@link ITokenColorer} to perform syntax coloring.
+ * @author Sebastian Zarnekow - Initial contribution and API
+ */
+@StatefulService
+public class AntlrTokenScanner extends AbstractTokenScanner {
+
+ @Inject
+ private ITokenColorer tokenColorer;
+
+ @Inject
+ private Lexer lexer;
+
+ private int dirtyRegionOffset;
+
+ private CommonToken currentAntlrToken;
+
+ public int getTokenLength() {
+ return currentAntlrToken.getStopIndex() - currentAntlrToken.getStartIndex() + 1;
+ }
+
+ public int getTokenOffset() {
+ return dirtyRegionOffset + currentAntlrToken.getStartIndex();
+ }
+
+ public IToken nextToken() {
+ currentAntlrToken = (CommonToken) lexer.nextToken();
+ if (currentAntlrToken.getType() == CommonToken.EOF) {
+ return Token.EOF;
+ }
+ return new Token(createTextAttribute(tokenColorer.getTokenStyle(Integer.toString(currentAntlrToken.getType()))));
+ }
+
+ public void setRange(IDocument document, int offset, int length) {
+ try {
+ String dirtyRegion = document.get(offset, length);
+ dirtyRegionOffset = offset;
+ lexer.setCharStream(new ANTLRStringStream(dirtyRegion));
+ }
+ catch (BadLocationException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/antlr/AntlrTokenStyleProvider.java b/plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/antlr/AntlrTokenStyleProvider.java
new file mode 100644
index 0000000..8c60209
--- /dev/null
+++ b/plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/antlr/AntlrTokenStyleProvider.java
@@ -0,0 +1,45 @@
+/*******************************************************************************
+ * Copyright (c) 2009 itemis AG (http://www.itemis.eu) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *******************************************************************************/
+package org.eclipse.xtext.ui.common.editor.syntaxcoloring.antlr;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.xtext.parser.antlr.AntlrTokenDefProvider;
+import org.eclipse.xtext.service.Inject;
+import org.eclipse.xtext.ui.common.editor.syntaxcoloring.ITokenStyle;
+import org.eclipse.xtext.ui.common.editor.syntaxcoloring.ITokenStyleProvider;
+
+/**
+ * @author Sebastian Zarnekow - Initial contribution and API
+ */
+public class AntlrTokenStyleProvider implements ITokenStyleProvider {
+
+ @Inject
+ private AntlrTokenDefProvider tokenDefProvider;
+
+ @Inject
+ private ITokenColorer tc;
+
+ private ITokenStyle[] styles;
+
+ public ITokenStyle[] getTokenStyles() {
+ if (styles == null) {
+ List<ITokenStyle> allTokenStyles = new ArrayList<ITokenStyle>();
+ for (Integer id : tokenDefProvider.getTokenDefMap().keySet()) {
+ ITokenStyle tokenStyle = tc.getTokenStyle(Integer.toString(id));
+ if (!allTokenStyles.contains(tokenStyle)) {
+ allTokenStyles.add(tokenStyle);
+ }
+ }
+ styles = allTokenStyles.toArray(new ITokenStyle[allTokenStyles.size()]);
+ }
+ return styles;
+ }
+
+}
diff --git a/plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/ITokenColorer.java b/plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/antlr/ITokenColorer.java
index f10edce..4bf4758 100644
--- a/plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/ITokenColorer.java
+++ b/plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/syntaxcoloring/antlr/ITokenColorer.java
@@ -5,14 +5,15 @@
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*******************************************************************************/
-package org.eclipse.xtext.ui.common.editor.syntaxcoloring;
+package org.eclipse.xtext.ui.common.editor.syntaxcoloring.antlr;
+import org.eclipse.xtext.ui.common.editor.syntaxcoloring.ITokenStyle;
/**
* @author Jan Köhnlein - Initial contribution and API
*/
public interface ITokenColorer {
- public abstract ITokenStyle getTokenStyle(int tokenTypeID);
+ ITokenStyle getTokenStyle(String antlrTokenType);
} \ No newline at end of file
diff --git a/plugins/org.eclipse.xtext.ui.core/src/org/eclipse/xtext/ui/core/editor/model/XtextDocumentProvider.java b/plugins/org.eclipse.xtext.ui.core/src/org/eclipse/xtext/ui/core/editor/model/XtextDocumentProvider.java
index 29607ed..c12513c 100644
--- a/plugins/org.eclipse.xtext.ui.core/src/org/eclipse/xtext/ui/core/editor/model/XtextDocumentProvider.java
+++ b/plugins/org.eclipse.xtext.ui.core/src/org/eclipse/xtext/ui/core/editor/model/XtextDocumentProvider.java
@@ -162,7 +162,8 @@ public class XtextDocumentProvider extends FileDocumentProvider implements IDocu
@Override
protected void disconnected() {
super.disconnected();
- ResourcesPlugin.getWorkspace().removeResourceChangeListener(resourceChangeListener);
+ if (resourceChangeListener != null)
+ ResourcesPlugin.getWorkspace().removeResourceChangeListener(resourceChangeListener);
}
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/AbstractXtextGrammarTestLanguageRuntimeConfig.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/AbstractXtextGrammarTestLanguageRuntimeConfig.java
index 9ee0bf2..444c587 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/AbstractXtextGrammarTestLanguageRuntimeConfig.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/AbstractXtextGrammarTestLanguageRuntimeConfig.java
@@ -17,10 +17,6 @@ public abstract class AbstractXtextGrammarTestLanguageRuntimeConfig extends Abst
return org.eclipse.xtext.services.XtextGrammarTestLanguageGrammarAccess.class;
}
- protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
- return org.eclipse.xtext.parser.packrat.XtextGrammarTestLanguagePackratParser.class;
- }
-
protected Class<? extends org.eclipse.xtext.resource.IResourceFactory> getIResourceFactory() {
return org.eclipse.xtext.services.XtextGrammarTestLanguageResourceFactory.class;
}
@@ -57,12 +53,15 @@ public abstract class AbstractXtextGrammarTestLanguageRuntimeConfig extends Abst
return org.eclipse.xtext.parser.antlr.internal.InternalXtextGrammarTestLanguageLexer.class;
}
+ protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
+ return org.eclipse.xtext.parser.packrat.XtextGrammarTestLanguagePackratParser.class;
+ }
+
public Set<IServiceRegistration> registrations() {
return scope(org.eclipse.xtext.IXtextGrammarTestLanguage.SCOPE)
.with(org.eclipse.xtext.IMetamodelAccess.class, getIMetamodelAccess())
.with(org.eclipse.xtext.IGrammarAccess.class, getIGrammarAccess())
- .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.with(org.eclipse.xtext.resource.IResourceFactory.class, getIResourceFactory())
.with(org.eclipse.xtext.parsetree.reconstr.IParseTreeConstructor.class, getIParseTreeConstructor())
.with(org.eclipse.xtext.parsetree.reconstr.ITokenSerializer.class, getITokenSerializer())
@@ -72,6 +71,7 @@ public abstract class AbstractXtextGrammarTestLanguageRuntimeConfig extends Abst
.with(org.eclipse.xtext.parser.IParser.class, getIParser())
.with(org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider.class, getIAntlrTokenFileProvider())
.with(org.eclipse.xtext.parser.antlr.Lexer.class, getLexer())
+ .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.registrations();
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/AbstractImportUriTestLanguageRuntimeConfig.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/AbstractImportUriTestLanguageRuntimeConfig.java
index e39d99f..335ea59 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/AbstractImportUriTestLanguageRuntimeConfig.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/AbstractImportUriTestLanguageRuntimeConfig.java
@@ -17,10 +17,6 @@ public abstract class AbstractImportUriTestLanguageRuntimeConfig extends Abstrac
return org.eclipse.xtext.crossrefs.services.ImportUriTestLanguageGrammarAccess.class;
}
- protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
- return org.eclipse.xtext.crossrefs.parser.packrat.ImportUriTestLanguagePackratParser.class;
- }
-
protected Class<? extends org.eclipse.xtext.resource.IResourceFactory> getIResourceFactory() {
return org.eclipse.xtext.crossrefs.services.ImportUriTestLanguageResourceFactory.class;
}
@@ -57,12 +53,15 @@ public abstract class AbstractImportUriTestLanguageRuntimeConfig extends Abstrac
return org.eclipse.xtext.crossrefs.parser.antlr.internal.InternalImportUriTestLanguageLexer.class;
}
+ protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
+ return org.eclipse.xtext.crossrefs.parser.packrat.ImportUriTestLanguagePackratParser.class;
+ }
+
public Set<IServiceRegistration> registrations() {
return scope(org.eclipse.xtext.crossrefs.IImportUriTestLanguage.SCOPE)
.with(org.eclipse.xtext.IMetamodelAccess.class, getIMetamodelAccess())
.with(org.eclipse.xtext.IGrammarAccess.class, getIGrammarAccess())
- .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.with(org.eclipse.xtext.resource.IResourceFactory.class, getIResourceFactory())
.with(org.eclipse.xtext.parsetree.reconstr.IParseTreeConstructor.class, getIParseTreeConstructor())
.with(org.eclipse.xtext.parsetree.reconstr.ITokenSerializer.class, getITokenSerializer())
@@ -72,6 +71,7 @@ public abstract class AbstractImportUriTestLanguageRuntimeConfig extends Abstrac
.with(org.eclipse.xtext.parser.IParser.class, getIParser())
.with(org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider.class, getIAntlrTokenFileProvider())
.with(org.eclipse.xtext.parser.antlr.Lexer.class, getLexer())
+ .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.registrations();
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/AbstractLangATestLanguageRuntimeConfig.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/AbstractLangATestLanguageRuntimeConfig.java
index 60291e6..40cc960 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/AbstractLangATestLanguageRuntimeConfig.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/AbstractLangATestLanguageRuntimeConfig.java
@@ -17,10 +17,6 @@ public abstract class AbstractLangATestLanguageRuntimeConfig extends AbstractSer
return org.eclipse.xtext.crossrefs.services.LangATestLanguageGrammarAccess.class;
}
- protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
- return org.eclipse.xtext.crossrefs.parser.packrat.LangATestLanguagePackratParser.class;
- }
-
protected Class<? extends org.eclipse.xtext.resource.IResourceFactory> getIResourceFactory() {
return org.eclipse.xtext.crossrefs.services.LangATestLanguageResourceFactory.class;
}
@@ -57,12 +53,15 @@ public abstract class AbstractLangATestLanguageRuntimeConfig extends AbstractSer
return org.eclipse.xtext.crossrefs.parser.antlr.internal.InternalLangATestLanguageLexer.class;
}
+ protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
+ return org.eclipse.xtext.crossrefs.parser.packrat.LangATestLanguagePackratParser.class;
+ }
+
public Set<IServiceRegistration> registrations() {
return scope(org.eclipse.xtext.crossrefs.ILangATestLanguage.SCOPE)
.with(org.eclipse.xtext.IMetamodelAccess.class, getIMetamodelAccess())
.with(org.eclipse.xtext.IGrammarAccess.class, getIGrammarAccess())
- .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.with(org.eclipse.xtext.resource.IResourceFactory.class, getIResourceFactory())
.with(org.eclipse.xtext.parsetree.reconstr.IParseTreeConstructor.class, getIParseTreeConstructor())
.with(org.eclipse.xtext.parsetree.reconstr.ITokenSerializer.class, getITokenSerializer())
@@ -72,6 +71,7 @@ public abstract class AbstractLangATestLanguageRuntimeConfig extends AbstractSer
.with(org.eclipse.xtext.parser.IParser.class, getIParser())
.with(org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider.class, getIAntlrTokenFileProvider())
.with(org.eclipse.xtext.parser.antlr.Lexer.class, getLexer())
+ .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.registrations();
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/AbstractDummyTestLanguageRuntimeConfig.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/AbstractDummyTestLanguageRuntimeConfig.java
index 709336e..96019c7 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/AbstractDummyTestLanguageRuntimeConfig.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/AbstractDummyTestLanguageRuntimeConfig.java
@@ -17,10 +17,6 @@ public abstract class AbstractDummyTestLanguageRuntimeConfig extends AbstractSer
return org.eclipse.xtext.dummy.services.DummyTestLanguageGrammarAccess.class;
}
- protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
- return org.eclipse.xtext.dummy.parser.packrat.DummyTestLanguagePackratParser.class;
- }
-
protected Class<? extends org.eclipse.xtext.resource.IResourceFactory> getIResourceFactory() {
return org.eclipse.xtext.dummy.services.DummyTestLanguageResourceFactory.class;
}
@@ -57,12 +53,15 @@ public abstract class AbstractDummyTestLanguageRuntimeConfig extends AbstractSer
return org.eclipse.xtext.dummy.parser.antlr.internal.InternalDummyTestLanguageLexer.class;
}
+ protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
+ return org.eclipse.xtext.dummy.parser.packrat.DummyTestLanguagePackratParser.class;
+ }
+
public Set<IServiceRegistration> registrations() {
return scope(org.eclipse.xtext.dummy.IDummyTestLanguage.SCOPE)
.with(org.eclipse.xtext.IMetamodelAccess.class, getIMetamodelAccess())
.with(org.eclipse.xtext.IGrammarAccess.class, getIGrammarAccess())
- .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.with(org.eclipse.xtext.resource.IResourceFactory.class, getIResourceFactory())
.with(org.eclipse.xtext.parsetree.reconstr.IParseTreeConstructor.class, getIParseTreeConstructor())
.with(org.eclipse.xtext.parsetree.reconstr.ITokenSerializer.class, getITokenSerializer())
@@ -72,6 +71,7 @@ public abstract class AbstractDummyTestLanguageRuntimeConfig extends AbstractSer
.with(org.eclipse.xtext.parser.IParser.class, getIParser())
.with(org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider.class, getIAntlrTokenFileProvider())
.with(org.eclipse.xtext.parser.antlr.Lexer.class, getLexer())
+ .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.registrations();
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/AbstractConcreteTestLanguageRuntimeConfig.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/AbstractConcreteTestLanguageRuntimeConfig.java
index 5914e99..edfadc5 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/AbstractConcreteTestLanguageRuntimeConfig.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/AbstractConcreteTestLanguageRuntimeConfig.java
@@ -17,10 +17,6 @@ public abstract class AbstractConcreteTestLanguageRuntimeConfig extends Abstract
return org.eclipse.xtext.grammarinheritance.services.ConcreteTestLanguageGrammarAccess.class;
}
- protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
- return org.eclipse.xtext.grammarinheritance.parser.packrat.ConcreteTestLanguagePackratParser.class;
- }
-
protected Class<? extends org.eclipse.xtext.resource.IResourceFactory> getIResourceFactory() {
return org.eclipse.xtext.grammarinheritance.services.ConcreteTestLanguageResourceFactory.class;
}
@@ -57,12 +53,15 @@ public abstract class AbstractConcreteTestLanguageRuntimeConfig extends Abstract
return org.eclipse.xtext.grammarinheritance.parser.antlr.internal.InternalConcreteTestLanguageLexer.class;
}
+ protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
+ return org.eclipse.xtext.grammarinheritance.parser.packrat.ConcreteTestLanguagePackratParser.class;
+ }
+
public Set<IServiceRegistration> registrations() {
return scope(org.eclipse.xtext.grammarinheritance.IConcreteTestLanguage.SCOPE)
.with(org.eclipse.xtext.IMetamodelAccess.class, getIMetamodelAccess())
.with(org.eclipse.xtext.IGrammarAccess.class, getIGrammarAccess())
- .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.with(org.eclipse.xtext.resource.IResourceFactory.class, getIResourceFactory())
.with(org.eclipse.xtext.parsetree.reconstr.IParseTreeConstructor.class, getIParseTreeConstructor())
.with(org.eclipse.xtext.parsetree.reconstr.ITokenSerializer.class, getITokenSerializer())
@@ -72,6 +71,7 @@ public abstract class AbstractConcreteTestLanguageRuntimeConfig extends Abstract
.with(org.eclipse.xtext.parser.IParser.class, getIParser())
.with(org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider.class, getIAntlrTokenFileProvider())
.with(org.eclipse.xtext.parser.antlr.Lexer.class, getLexer())
+ .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.registrations();
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/AbstractMetamodelRefTestLanguageRuntimeConfig.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/AbstractMetamodelRefTestLanguageRuntimeConfig.java
index e21f84a..468605e 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/AbstractMetamodelRefTestLanguageRuntimeConfig.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/AbstractMetamodelRefTestLanguageRuntimeConfig.java
@@ -17,10 +17,6 @@ public abstract class AbstractMetamodelRefTestLanguageRuntimeConfig extends Abst
return org.eclipse.xtext.metamodelreferencing.tests.services.MetamodelRefTestLanguageGrammarAccess.class;
}
- protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
- return org.eclipse.xtext.metamodelreferencing.tests.parser.packrat.MetamodelRefTestLanguagePackratParser.class;
- }
-
protected Class<? extends org.eclipse.xtext.resource.IResourceFactory> getIResourceFactory() {
return org.eclipse.xtext.metamodelreferencing.tests.services.MetamodelRefTestLanguageResourceFactory.class;
}
@@ -57,12 +53,15 @@ public abstract class AbstractMetamodelRefTestLanguageRuntimeConfig extends Abst
return org.eclipse.xtext.metamodelreferencing.tests.parser.antlr.internal.InternalMetamodelRefTestLanguageLexer.class;
}
+ protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
+ return org.eclipse.xtext.metamodelreferencing.tests.parser.packrat.MetamodelRefTestLanguagePackratParser.class;
+ }
+
public Set<IServiceRegistration> registrations() {
return scope(org.eclipse.xtext.metamodelreferencing.tests.IMetamodelRefTestLanguage.SCOPE)
.with(org.eclipse.xtext.IMetamodelAccess.class, getIMetamodelAccess())
.with(org.eclipse.xtext.IGrammarAccess.class, getIGrammarAccess())
- .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.with(org.eclipse.xtext.resource.IResourceFactory.class, getIResourceFactory())
.with(org.eclipse.xtext.parsetree.reconstr.IParseTreeConstructor.class, getIParseTreeConstructor())
.with(org.eclipse.xtext.parsetree.reconstr.ITokenSerializer.class, getITokenSerializer())
@@ -72,6 +71,7 @@ public abstract class AbstractMetamodelRefTestLanguageRuntimeConfig extends Abst
.with(org.eclipse.xtext.parser.IParser.class, getIParser())
.with(org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider.class, getIAntlrTokenFileProvider())
.with(org.eclipse.xtext.parser.antlr.Lexer.class, getLexer())
+ .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.registrations();
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/AbstractMultiGenMMTestLanguageRuntimeConfig.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/AbstractMultiGenMMTestLanguageRuntimeConfig.java
index f8687c5..3c91039 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/AbstractMultiGenMMTestLanguageRuntimeConfig.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/AbstractMultiGenMMTestLanguageRuntimeConfig.java
@@ -17,10 +17,6 @@ public abstract class AbstractMultiGenMMTestLanguageRuntimeConfig extends Abstra
return org.eclipse.xtext.metamodelreferencing.tests.services.MultiGenMMTestLanguageGrammarAccess.class;
}
- protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
- return org.eclipse.xtext.metamodelreferencing.tests.parser.packrat.MultiGenMMTestLanguagePackratParser.class;
- }
-
protected Class<? extends org.eclipse.xtext.resource.IResourceFactory> getIResourceFactory() {
return org.eclipse.xtext.metamodelreferencing.tests.services.MultiGenMMTestLanguageResourceFactory.class;
}
@@ -57,12 +53,15 @@ public abstract class AbstractMultiGenMMTestLanguageRuntimeConfig extends Abstra
return org.eclipse.xtext.metamodelreferencing.tests.parser.antlr.internal.InternalMultiGenMMTestLanguageLexer.class;
}
+ protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
+ return org.eclipse.xtext.metamodelreferencing.tests.parser.packrat.MultiGenMMTestLanguagePackratParser.class;
+ }
+
public Set<IServiceRegistration> registrations() {
return scope(org.eclipse.xtext.metamodelreferencing.tests.IMultiGenMMTestLanguage.SCOPE)
.with(org.eclipse.xtext.IMetamodelAccess.class, getIMetamodelAccess())
.with(org.eclipse.xtext.IGrammarAccess.class, getIGrammarAccess())
- .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.with(org.eclipse.xtext.resource.IResourceFactory.class, getIResourceFactory())
.with(org.eclipse.xtext.parsetree.reconstr.IParseTreeConstructor.class, getIParseTreeConstructor())
.with(org.eclipse.xtext.parsetree.reconstr.ITokenSerializer.class, getITokenSerializer())
@@ -72,6 +71,7 @@ public abstract class AbstractMultiGenMMTestLanguageRuntimeConfig extends Abstra
.with(org.eclipse.xtext.parser.IParser.class, getIParser())
.with(org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider.class, getIAntlrTokenFileProvider())
.with(org.eclipse.xtext.parser.antlr.Lexer.class, getLexer())
+ .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.registrations();
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/AbstractDatatypeRulesTestLanguageRuntimeConfig.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/AbstractDatatypeRulesTestLanguageRuntimeConfig.java
index fb7c99b..bf2ff26 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/AbstractDatatypeRulesTestLanguageRuntimeConfig.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/AbstractDatatypeRulesTestLanguageRuntimeConfig.java
@@ -17,10 +17,6 @@ public abstract class AbstractDatatypeRulesTestLanguageRuntimeConfig extends Abs
return org.eclipse.xtext.parser.datatyperules.services.DatatypeRulesTestLanguageGrammarAccess.class;
}
- protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
- return org.eclipse.xtext.parser.datatyperules.parser.packrat.DatatypeRulesTestLanguagePackratParser.class;
- }
-
protected Class<? extends org.eclipse.xtext.resource.IResourceFactory> getIResourceFactory() {
return org.eclipse.xtext.parser.datatyperules.services.DatatypeRulesTestLanguageResourceFactory.class;
}
@@ -57,12 +53,15 @@ public abstract class AbstractDatatypeRulesTestLanguageRuntimeConfig extends Abs
return org.eclipse.xtext.parser.datatyperules.parser.antlr.internal.InternalDatatypeRulesTestLanguageLexer.class;
}
+ protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
+ return org.eclipse.xtext.parser.datatyperules.parser.packrat.DatatypeRulesTestLanguagePackratParser.class;
+ }
+
public Set<IServiceRegistration> registrations() {
return scope(org.eclipse.xtext.parser.datatyperules.IDatatypeRulesTestLanguage.SCOPE)
.with(org.eclipse.xtext.IMetamodelAccess.class, getIMetamodelAccess())
.with(org.eclipse.xtext.IGrammarAccess.class, getIGrammarAccess())
- .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.with(org.eclipse.xtext.resource.IResourceFactory.class, getIResourceFactory())
.with(org.eclipse.xtext.parsetree.reconstr.IParseTreeConstructor.class, getIParseTreeConstructor())
.with(org.eclipse.xtext.parsetree.reconstr.ITokenSerializer.class, getITokenSerializer())
@@ -72,6 +71,7 @@ public abstract class AbstractDatatypeRulesTestLanguageRuntimeConfig extends Abs
.with(org.eclipse.xtext.parser.IParser.class, getIParser())
.with(org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider.class, getIAntlrTokenFileProvider())
.with(org.eclipse.xtext.parser.antlr.Lexer.class, getLexer())
+ .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.registrations();
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/terminalrules/AbstractTerminalRulesTestLanguageRuntimeConfig.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/terminalrules/AbstractTerminalRulesTestLanguageRuntimeConfig.java
index 87974b6..791aafd 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/terminalrules/AbstractTerminalRulesTestLanguageRuntimeConfig.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/terminalrules/AbstractTerminalRulesTestLanguageRuntimeConfig.java
@@ -17,10 +17,6 @@ public abstract class AbstractTerminalRulesTestLanguageRuntimeConfig extends Abs
return org.eclipse.xtext.parser.terminalrules.services.TerminalRulesTestLanguageGrammarAccess.class;
}
- protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
- return org.eclipse.xtext.parser.terminalrules.parser.packrat.TerminalRulesTestLanguagePackratParser.class;
- }
-
protected Class<? extends org.eclipse.xtext.resource.IResourceFactory> getIResourceFactory() {
return org.eclipse.xtext.parser.terminalrules.services.TerminalRulesTestLanguageResourceFactory.class;
}
@@ -57,12 +53,15 @@ public abstract class AbstractTerminalRulesTestLanguageRuntimeConfig extends Abs
return org.eclipse.xtext.parser.terminalrules.parser.antlr.internal.InternalTerminalRulesTestLanguageLexer.class;
}
+ protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
+ return org.eclipse.xtext.parser.terminalrules.parser.packrat.TerminalRulesTestLanguagePackratParser.class;
+ }
+
public Set<IServiceRegistration> registrations() {
return scope(org.eclipse.xtext.parser.terminalrules.ITerminalRulesTestLanguage.SCOPE)
.with(org.eclipse.xtext.IMetamodelAccess.class, getIMetamodelAccess())
.with(org.eclipse.xtext.IGrammarAccess.class, getIGrammarAccess())
- .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.with(org.eclipse.xtext.resource.IResourceFactory.class, getIResourceFactory())
.with(org.eclipse.xtext.parsetree.reconstr.IParseTreeConstructor.class, getIParseTreeConstructor())
.with(org.eclipse.xtext.parsetree.reconstr.ITokenSerializer.class, getITokenSerializer())
@@ -72,6 +71,7 @@ public abstract class AbstractTerminalRulesTestLanguageRuntimeConfig extends Abs
.with(org.eclipse.xtext.parser.IParser.class, getIParser())
.with(org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider.class, getIAntlrTokenFileProvider())
.with(org.eclipse.xtext.parser.antlr.Lexer.class, getLexer())
+ .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.registrations();
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/terminalrules/AbstractXtextTerminalsTestLanguageRuntimeConfig.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/terminalrules/AbstractXtextTerminalsTestLanguageRuntimeConfig.java
index ff6f704..1842869 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/terminalrules/AbstractXtextTerminalsTestLanguageRuntimeConfig.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/terminalrules/AbstractXtextTerminalsTestLanguageRuntimeConfig.java
@@ -17,10 +17,6 @@ public abstract class AbstractXtextTerminalsTestLanguageRuntimeConfig extends Ab
return org.eclipse.xtext.parser.terminalrules.services.XtextTerminalsTestLanguageGrammarAccess.class;
}
- protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
- return org.eclipse.xtext.parser.terminalrules.parser.packrat.XtextTerminalsTestLanguagePackratParser.class;
- }
-
protected Class<? extends org.eclipse.xtext.resource.IResourceFactory> getIResourceFactory() {
return org.eclipse.xtext.parser.terminalrules.services.XtextTerminalsTestLanguageResourceFactory.class;
}
@@ -57,12 +53,15 @@ public abstract class AbstractXtextTerminalsTestLanguageRuntimeConfig extends Ab
return org.eclipse.xtext.parser.terminalrules.parser.antlr.internal.InternalXtextTerminalsTestLanguageLexer.class;
}
+ protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
+ return org.eclipse.xtext.parser.terminalrules.parser.packrat.XtextTerminalsTestLanguagePackratParser.class;
+ }
+
public Set<IServiceRegistration> registrations() {
return scope(org.eclipse.xtext.parser.terminalrules.IXtextTerminalsTestLanguage.SCOPE)
.with(org.eclipse.xtext.IMetamodelAccess.class, getIMetamodelAccess())
.with(org.eclipse.xtext.IGrammarAccess.class, getIGrammarAccess())
- .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.with(org.eclipse.xtext.resource.IResourceFactory.class, getIResourceFactory())
.with(org.eclipse.xtext.parsetree.reconstr.IParseTreeConstructor.class, getIParseTreeConstructor())
.with(org.eclipse.xtext.parsetree.reconstr.ITokenSerializer.class, getITokenSerializer())
@@ -72,6 +71,7 @@ public abstract class AbstractXtextTerminalsTestLanguageRuntimeConfig extends Ab
.with(org.eclipse.xtext.parser.IParser.class, getIParser())
.with(org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider.class, getIAntlrTokenFileProvider())
.with(org.eclipse.xtext.parser.antlr.Lexer.class, getLexer())
+ .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.registrations();
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/terminalrules/XtextTerminalsTestLanguage.ecore b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/terminalrules/XtextTerminalsTestLanguage.ecore
index f03a642..54d3239 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/terminalrules/XtextTerminalsTestLanguage.ecore
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/terminalrules/XtextTerminalsTestLanguage.ecore
@@ -14,18 +14,18 @@
<eStructuralFeatures xsi:type="ecore:EReference" name="rules" unique="false" upperBound="-1" eType="//AbstractRule" containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="AbstractRule">
+ <eStructuralFeatures xsi:type="ecore:EReference" name="type" eType="//TypeRef" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name">
<eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EReference" name="type" eType="//TypeRef" containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="AbstractMetamodelDeclaration">
- <eStructuralFeatures xsi:type="ecore:EReference" name="ePackage">
- <eType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EPackage"/>
- </eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="alias">
<eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="ePackage">
+ <eType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EPackage"/>
+ </eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="GeneratedMetamodel" eSuperTypes="//AbstractMetamodelDeclaration">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name">
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/formatter/AbstractFormatterTestLanguageRuntimeConfig.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/formatter/AbstractFormatterTestLanguageRuntimeConfig.java
index e2dd0e6..1575d19 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/formatter/AbstractFormatterTestLanguageRuntimeConfig.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/formatter/AbstractFormatterTestLanguageRuntimeConfig.java
@@ -17,10 +17,6 @@ public abstract class AbstractFormatterTestLanguageRuntimeConfig extends Abstrac
return org.eclipse.xtext.parsetree.formatter.services.FormatterTestLanguageGrammarAccess.class;
}
- protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
- return org.eclipse.xtext.parsetree.formatter.parser.packrat.FormatterTestLanguagePackratParser.class;
- }
-
protected Class<? extends org.eclipse.xtext.resource.IResourceFactory> getIResourceFactory() {
return org.eclipse.xtext.parsetree.formatter.services.FormatterTestLanguageResourceFactory.class;
}
@@ -57,12 +53,15 @@ public abstract class AbstractFormatterTestLanguageRuntimeConfig extends Abstrac
return org.eclipse.xtext.parsetree.formatter.parser.antlr.internal.InternalFormatterTestLanguageLexer.class;
}
+ protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
+ return org.eclipse.xtext.parsetree.formatter.parser.packrat.FormatterTestLanguagePackratParser.class;
+ }
+
public Set<IServiceRegistration> registrations() {
return scope(org.eclipse.xtext.parsetree.formatter.IFormatterTestLanguage.SCOPE)
.with(org.eclipse.xtext.IMetamodelAccess.class, getIMetamodelAccess())
.with(org.eclipse.xtext.IGrammarAccess.class, getIGrammarAccess())
- .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.with(org.eclipse.xtext.resource.IResourceFactory.class, getIResourceFactory())
.with(org.eclipse.xtext.parsetree.reconstr.IParseTreeConstructor.class, getIParseTreeConstructor())
.with(org.eclipse.xtext.parsetree.reconstr.ITokenSerializer.class, getITokenSerializer())
@@ -72,6 +71,7 @@ public abstract class AbstractFormatterTestLanguageRuntimeConfig extends Abstrac
.with(org.eclipse.xtext.parser.IParser.class, getIParser())
.with(org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider.class, getIAntlrTokenFileProvider())
.with(org.eclipse.xtext.parser.antlr.Lexer.class, getLexer())
+ .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.registrations();
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/AbstractComplexReconstrTestLanguageRuntimeConfig.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/AbstractComplexReconstrTestLanguageRuntimeConfig.java
index cb8b87e..62f519a 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/AbstractComplexReconstrTestLanguageRuntimeConfig.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/AbstractComplexReconstrTestLanguageRuntimeConfig.java
@@ -17,10 +17,6 @@ public abstract class AbstractComplexReconstrTestLanguageRuntimeConfig extends A
return org.eclipse.xtext.parsetree.reconstr.services.ComplexReconstrTestLanguageGrammarAccess.class;
}
- protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
- return org.eclipse.xtext.parsetree.reconstr.parser.packrat.ComplexReconstrTestLanguagePackratParser.class;
- }
-
protected Class<? extends org.eclipse.xtext.resource.IResourceFactory> getIResourceFactory() {
return org.eclipse.xtext.parsetree.reconstr.services.ComplexReconstrTestLanguageResourceFactory.class;
}
@@ -57,12 +53,15 @@ public abstract class AbstractComplexReconstrTestLanguageRuntimeConfig extends A
return org.eclipse.xtext.parsetree.reconstr.parser.antlr.internal.InternalComplexReconstrTestLanguageLexer.class;
}
+ protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
+ return org.eclipse.xtext.parsetree.reconstr.parser.packrat.ComplexReconstrTestLanguagePackratParser.class;
+ }
+
public Set<IServiceRegistration> registrations() {
return scope(org.eclipse.xtext.parsetree.reconstr.IComplexReconstrTestLanguage.SCOPE)
.with(org.eclipse.xtext.IMetamodelAccess.class, getIMetamodelAccess())
.with(org.eclipse.xtext.IGrammarAccess.class, getIGrammarAccess())
- .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.with(org.eclipse.xtext.resource.IResourceFactory.class, getIResourceFactory())
.with(org.eclipse.xtext.parsetree.reconstr.IParseTreeConstructor.class, getIParseTreeConstructor())
.with(org.eclipse.xtext.parsetree.reconstr.ITokenSerializer.class, getITokenSerializer())
@@ -72,6 +71,7 @@ public abstract class AbstractComplexReconstrTestLanguageRuntimeConfig extends A
.with(org.eclipse.xtext.parser.IParser.class, getIParser())
.with(org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider.class, getIAntlrTokenFileProvider())
.with(org.eclipse.xtext.parser.antlr.Lexer.class, getLexer())
+ .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.registrations();
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/AbstractSimpleReconstrTestLanguageRuntimeConfig.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/AbstractSimpleReconstrTestLanguageRuntimeConfig.java
index 3213955..e2c4596 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/AbstractSimpleReconstrTestLanguageRuntimeConfig.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/AbstractSimpleReconstrTestLanguageRuntimeConfig.java
@@ -17,10 +17,6 @@ public abstract class AbstractSimpleReconstrTestLanguageRuntimeConfig extends Ab
return org.eclipse.xtext.parsetree.reconstr.services.SimpleReconstrTestLanguageGrammarAccess.class;
}
- protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
- return org.eclipse.xtext.parsetree.reconstr.parser.packrat.SimpleReconstrTestLanguagePackratParser.class;
- }
-
protected Class<? extends org.eclipse.xtext.resource.IResourceFactory> getIResourceFactory() {
return org.eclipse.xtext.parsetree.reconstr.services.SimpleReconstrTestLanguageResourceFactory.class;
}
@@ -57,12 +53,15 @@ public abstract class AbstractSimpleReconstrTestLanguageRuntimeConfig extends Ab
return org.eclipse.xtext.parsetree.reconstr.parser.antlr.internal.InternalSimpleReconstrTestLanguageLexer.class;
}
+ protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
+ return org.eclipse.xtext.parsetree.reconstr.parser.packrat.SimpleReconstrTestLanguagePackratParser.class;
+ }
+
public Set<IServiceRegistration> registrations() {
return scope(org.eclipse.xtext.parsetree.reconstr.ISimpleReconstrTestLanguage.SCOPE)
.with(org.eclipse.xtext.IMetamodelAccess.class, getIMetamodelAccess())
.with(org.eclipse.xtext.IGrammarAccess.class, getIGrammarAccess())
- .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.with(org.eclipse.xtext.resource.IResourceFactory.class, getIResourceFactory())
.with(org.eclipse.xtext.parsetree.reconstr.IParseTreeConstructor.class, getIParseTreeConstructor())
.with(org.eclipse.xtext.parsetree.reconstr.ITokenSerializer.class, getITokenSerializer())
@@ -72,6 +71,7 @@ public abstract class AbstractSimpleReconstrTestLanguageRuntimeConfig extends Ab
.with(org.eclipse.xtext.parser.IParser.class, getIParser())
.with(org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider.class, getIAntlrTokenFileProvider())
.with(org.eclipse.xtext.parser.antlr.Lexer.class, getLexer())
+ .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.registrations();
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/transientvalues/AbstractTransientValuesTestRuntimeConfig.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/transientvalues/AbstractTransientValuesTestRuntimeConfig.java
index f739535..eaefdde 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/transientvalues/AbstractTransientValuesTestRuntimeConfig.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/transientvalues/AbstractTransientValuesTestRuntimeConfig.java
@@ -17,10 +17,6 @@ public abstract class AbstractTransientValuesTestRuntimeConfig extends AbstractS
return org.eclipse.xtext.parsetree.transientvalues.services.TransientValuesTestGrammarAccess.class;
}
- protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
- return org.eclipse.xtext.parsetree.transientvalues.parser.packrat.TransientValuesTestPackratParser.class;
- }
-
protected Class<? extends org.eclipse.xtext.resource.IResourceFactory> getIResourceFactory() {
return org.eclipse.xtext.parsetree.transientvalues.services.TransientValuesTestResourceFactory.class;
}
@@ -57,12 +53,15 @@ public abstract class AbstractTransientValuesTestRuntimeConfig extends AbstractS
return org.eclipse.xtext.parsetree.transientvalues.parser.antlr.internal.InternalTransientValuesTestLexer.class;
}
+ protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
+ return org.eclipse.xtext.parsetree.transientvalues.parser.packrat.TransientValuesTestPackratParser.class;
+ }
+
public Set<IServiceRegistration> registrations() {
return scope(org.eclipse.xtext.parsetree.transientvalues.ITransientValuesTest.SCOPE)
.with(org.eclipse.xtext.IMetamodelAccess.class, getIMetamodelAccess())
.with(org.eclipse.xtext.IGrammarAccess.class, getIGrammarAccess())
- .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.with(org.eclipse.xtext.resource.IResourceFactory.class, getIResourceFactory())
.with(org.eclipse.xtext.parsetree.reconstr.IParseTreeConstructor.class, getIParseTreeConstructor())
.with(org.eclipse.xtext.parsetree.reconstr.ITokenSerializer.class, getITokenSerializer())
@@ -72,6 +71,7 @@ public abstract class AbstractTransientValuesTestRuntimeConfig extends AbstractS
.with(org.eclipse.xtext.parser.IParser.class, getIParser())
.with(org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider.class, getIAntlrTokenFileProvider())
.with(org.eclipse.xtext.parser.antlr.Lexer.class, getLexer())
+ .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.registrations();
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/resource/metamodel/AbstractMultiValueFeatureTestLanguageRuntimeConfig.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/resource/metamodel/AbstractMultiValueFeatureTestLanguageRuntimeConfig.java
index 82df1d0..359cee8 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/resource/metamodel/AbstractMultiValueFeatureTestLanguageRuntimeConfig.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/resource/metamodel/AbstractMultiValueFeatureTestLanguageRuntimeConfig.java
@@ -17,10 +17,6 @@ public abstract class AbstractMultiValueFeatureTestLanguageRuntimeConfig extends
return org.eclipse.xtext.resource.metamodel.services.MultiValueFeatureTestLanguageGrammarAccess.class;
}
- protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
- return org.eclipse.xtext.resource.metamodel.parser.packrat.MultiValueFeatureTestLanguagePackratParser.class;
- }
-
protected Class<? extends org.eclipse.xtext.resource.IResourceFactory> getIResourceFactory() {
return org.eclipse.xtext.resource.metamodel.services.MultiValueFeatureTestLanguageResourceFactory.class;
}
@@ -57,12 +53,15 @@ public abstract class AbstractMultiValueFeatureTestLanguageRuntimeConfig extends
return org.eclipse.xtext.resource.metamodel.parser.antlr.internal.InternalMultiValueFeatureTestLanguageLexer.class;
}
+ protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
+ return org.eclipse.xtext.resource.metamodel.parser.packrat.MultiValueFeatureTestLanguagePackratParser.class;
+ }
+
public Set<IServiceRegistration> registrations() {
return scope(org.eclipse.xtext.resource.metamodel.IMultiValueFeatureTestLanguage.SCOPE)
.with(org.eclipse.xtext.IMetamodelAccess.class, getIMetamodelAccess())
.with(org.eclipse.xtext.IGrammarAccess.class, getIGrammarAccess())
- .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.with(org.eclipse.xtext.resource.IResourceFactory.class, getIResourceFactory())
.with(org.eclipse.xtext.parsetree.reconstr.IParseTreeConstructor.class, getIParseTreeConstructor())
.with(org.eclipse.xtext.parsetree.reconstr.ITokenSerializer.class, getITokenSerializer())
@@ -72,6 +71,7 @@ public abstract class AbstractMultiValueFeatureTestLanguageRuntimeConfig extends
.with(org.eclipse.xtext.parser.IParser.class, getIParser())
.with(org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider.class, getIAntlrTokenFileProvider())
.with(org.eclipse.xtext.parser.antlr.Lexer.class, getLexer())
+ .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.registrations();
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractActionTestLanguageRuntimeConfig.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractActionTestLanguageRuntimeConfig.java
index e88b1ba..641db06 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractActionTestLanguageRuntimeConfig.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractActionTestLanguageRuntimeConfig.java
@@ -17,10 +17,6 @@ public abstract class AbstractActionTestLanguageRuntimeConfig extends AbstractSe
return org.eclipse.xtext.testlanguages.services.ActionTestLanguageGrammarAccess.class;
}
- protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
- return org.eclipse.xtext.testlanguages.parser.packrat.ActionTestLanguagePackratParser.class;
- }
-
protected Class<? extends org.eclipse.xtext.resource.IResourceFactory> getIResourceFactory() {
return org.eclipse.xtext.testlanguages.services.ActionTestLanguageResourceFactory.class;
}
@@ -57,12 +53,15 @@ public abstract class AbstractActionTestLanguageRuntimeConfig extends AbstractSe
return org.eclipse.xtext.testlanguages.parser.antlr.internal.InternalActionTestLanguageLexer.class;
}
+ protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
+ return org.eclipse.xtext.testlanguages.parser.packrat.ActionTestLanguagePackratParser.class;
+ }
+
public Set<IServiceRegistration> registrations() {
return scope(org.eclipse.xtext.testlanguages.IActionTestLanguage.SCOPE)
.with(org.eclipse.xtext.IMetamodelAccess.class, getIMetamodelAccess())
.with(org.eclipse.xtext.IGrammarAccess.class, getIGrammarAccess())
- .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.with(org.eclipse.xtext.resource.IResourceFactory.class, getIResourceFactory())
.with(org.eclipse.xtext.parsetree.reconstr.IParseTreeConstructor.class, getIParseTreeConstructor())
.with(org.eclipse.xtext.parsetree.reconstr.ITokenSerializer.class, getITokenSerializer())
@@ -72,6 +71,7 @@ public abstract class AbstractActionTestLanguageRuntimeConfig extends AbstractSe
.with(org.eclipse.xtext.parser.IParser.class, getIParser())
.with(org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider.class, getIAntlrTokenFileProvider())
.with(org.eclipse.xtext.parser.antlr.Lexer.class, getLexer())
+ .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.registrations();
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractContentAssistTestLanguageRuntimeConfig.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractContentAssistTestLanguageRuntimeConfig.java
index f90bce5..92fb058 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractContentAssistTestLanguageRuntimeConfig.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractContentAssistTestLanguageRuntimeConfig.java
@@ -17,10 +17,6 @@ public abstract class AbstractContentAssistTestLanguageRuntimeConfig extends Abs
return org.eclipse.xtext.testlanguages.services.ContentAssistTestLanguageGrammarAccess.class;
}
- protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
- return org.eclipse.xtext.testlanguages.parser.packrat.ContentAssistTestLanguagePackratParser.class;
- }
-
protected Class<? extends org.eclipse.xtext.resource.IResourceFactory> getIResourceFactory() {
return org.eclipse.xtext.testlanguages.services.ContentAssistTestLanguageResourceFactory.class;
}
@@ -57,12 +53,15 @@ public abstract class AbstractContentAssistTestLanguageRuntimeConfig extends Abs
return org.eclipse.xtext.testlanguages.parser.antlr.internal.InternalContentAssistTestLanguageLexer.class;
}
+ protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
+ return org.eclipse.xtext.testlanguages.parser.packrat.ContentAssistTestLanguagePackratParser.class;
+ }
+
public Set<IServiceRegistration> registrations() {
return scope(org.eclipse.xtext.testlanguages.IContentAssistTestLanguage.SCOPE)
.with(org.eclipse.xtext.IMetamodelAccess.class, getIMetamodelAccess())
.with(org.eclipse.xtext.IGrammarAccess.class, getIGrammarAccess())
- .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.with(org.eclipse.xtext.resource.IResourceFactory.class, getIResourceFactory())
.with(org.eclipse.xtext.parsetree.reconstr.IParseTreeConstructor.class, getIParseTreeConstructor())
.with(org.eclipse.xtext.parsetree.reconstr.ITokenSerializer.class, getITokenSerializer())
@@ -72,6 +71,7 @@ public abstract class AbstractContentAssistTestLanguageRuntimeConfig extends Abs
.with(org.eclipse.xtext.parser.IParser.class, getIParser())
.with(org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider.class, getIAntlrTokenFileProvider())
.with(org.eclipse.xtext.parser.antlr.Lexer.class, getLexer())
+ .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.registrations();
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractFowlerDslTestLanguageRuntimeConfig.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractFowlerDslTestLanguageRuntimeConfig.java
index 3fd1aac..b270a86 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractFowlerDslTestLanguageRuntimeConfig.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractFowlerDslTestLanguageRuntimeConfig.java
@@ -17,10 +17,6 @@ public abstract class AbstractFowlerDslTestLanguageRuntimeConfig extends Abstrac
return org.eclipse.xtext.testlanguages.services.FowlerDslTestLanguageGrammarAccess.class;
}
- protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
- return org.eclipse.xtext.testlanguages.parser.packrat.FowlerDslTestLanguagePackratParser.class;
- }
-
protected Class<? extends org.eclipse.xtext.resource.IResourceFactory> getIResourceFactory() {
return org.eclipse.xtext.testlanguages.services.FowlerDslTestLanguageResourceFactory.class;
}
@@ -57,12 +53,15 @@ public abstract class AbstractFowlerDslTestLanguageRuntimeConfig extends Abstrac
return org.eclipse.xtext.testlanguages.parser.antlr.internal.InternalFowlerDslTestLanguageLexer.class;
}
+ protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
+ return org.eclipse.xtext.testlanguages.parser.packrat.FowlerDslTestLanguagePackratParser.class;
+ }
+
public Set<IServiceRegistration> registrations() {
return scope(org.eclipse.xtext.testlanguages.IFowlerDslTestLanguage.SCOPE)
.with(org.eclipse.xtext.IMetamodelAccess.class, getIMetamodelAccess())
.with(org.eclipse.xtext.IGrammarAccess.class, getIGrammarAccess())
- .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.with(org.eclipse.xtext.resource.IResourceFactory.class, getIResourceFactory())
.with(org.eclipse.xtext.parsetree.reconstr.IParseTreeConstructor.class, getIParseTreeConstructor())
.with(org.eclipse.xtext.parsetree.reconstr.ITokenSerializer.class, getITokenSerializer())
@@ -72,6 +71,7 @@ public abstract class AbstractFowlerDslTestLanguageRuntimeConfig extends Abstrac
.with(org.eclipse.xtext.parser.IParser.class, getIParser())
.with(org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider.class, getIAntlrTokenFileProvider())
.with(org.eclipse.xtext.parser.antlr.Lexer.class, getLexer())
+ .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.registrations();
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractLexerTestLanguageRuntimeConfig.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractLexerTestLanguageRuntimeConfig.java
index 1c1fe3f..40cd0b4 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractLexerTestLanguageRuntimeConfig.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractLexerTestLanguageRuntimeConfig.java
@@ -17,10 +17,6 @@ public abstract class AbstractLexerTestLanguageRuntimeConfig extends AbstractSer
return org.eclipse.xtext.testlanguages.services.LexerTestLanguageGrammarAccess.class;
}
- protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
- return org.eclipse.xtext.testlanguages.parser.packrat.LexerTestLanguagePackratParser.class;
- }
-
protected Class<? extends org.eclipse.xtext.resource.IResourceFactory> getIResourceFactory() {
return org.eclipse.xtext.testlanguages.services.LexerTestLanguageResourceFactory.class;
}
@@ -57,12 +53,15 @@ public abstract class AbstractLexerTestLanguageRuntimeConfig extends AbstractSer
return org.eclipse.xtext.testlanguages.parser.antlr.internal.InternalLexerTestLanguageLexer.class;
}
+ protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
+ return org.eclipse.xtext.testlanguages.parser.packrat.LexerTestLanguagePackratParser.class;
+ }
+
public Set<IServiceRegistration> registrations() {
return scope(org.eclipse.xtext.testlanguages.ILexerTestLanguage.SCOPE)
.with(org.eclipse.xtext.IMetamodelAccess.class, getIMetamodelAccess())
.with(org.eclipse.xtext.IGrammarAccess.class, getIGrammarAccess())
- .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.with(org.eclipse.xtext.resource.IResourceFactory.class, getIResourceFactory())
.with(org.eclipse.xtext.parsetree.reconstr.IParseTreeConstructor.class, getIParseTreeConstructor())
.with(org.eclipse.xtext.parsetree.reconstr.ITokenSerializer.class, getITokenSerializer())
@@ -72,6 +71,7 @@ public abstract class AbstractLexerTestLanguageRuntimeConfig extends AbstractSer
.with(org.eclipse.xtext.parser.IParser.class, getIParser())
.with(org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider.class, getIAntlrTokenFileProvider())
.with(org.eclipse.xtext.parser.antlr.Lexer.class, getLexer())
+ .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.registrations();
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractLookaheadTestLanguageRuntimeConfig.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractLookaheadTestLanguageRuntimeConfig.java
index b174381..d67033b 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractLookaheadTestLanguageRuntimeConfig.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractLookaheadTestLanguageRuntimeConfig.java
@@ -17,10 +17,6 @@ public abstract class AbstractLookaheadTestLanguageRuntimeConfig extends Abstrac
return org.eclipse.xtext.testlanguages.services.LookaheadTestLanguageGrammarAccess.class;
}
- protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
- return org.eclipse.xtext.testlanguages.parser.packrat.LookaheadTestLanguagePackratParser.class;
- }
-
protected Class<? extends org.eclipse.xtext.resource.IResourceFactory> getIResourceFactory() {
return org.eclipse.xtext.testlanguages.services.LookaheadTestLanguageResourceFactory.class;
}
@@ -57,12 +53,15 @@ public abstract class AbstractLookaheadTestLanguageRuntimeConfig extends Abstrac
return org.eclipse.xtext.testlanguages.parser.antlr.internal.InternalLookaheadTestLanguageLexer.class;
}
+ protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
+ return org.eclipse.xtext.testlanguages.parser.packrat.LookaheadTestLanguagePackratParser.class;
+ }
+
public Set<IServiceRegistration> registrations() {
return scope(org.eclipse.xtext.testlanguages.ILookaheadTestLanguage.SCOPE)
.with(org.eclipse.xtext.IMetamodelAccess.class, getIMetamodelAccess())
.with(org.eclipse.xtext.IGrammarAccess.class, getIGrammarAccess())
- .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.with(org.eclipse.xtext.resource.IResourceFactory.class, getIResourceFactory())
.with(org.eclipse.xtext.parsetree.reconstr.IParseTreeConstructor.class, getIParseTreeConstructor())
.with(org.eclipse.xtext.parsetree.reconstr.ITokenSerializer.class, getITokenSerializer())
@@ -72,6 +71,7 @@ public abstract class AbstractLookaheadTestLanguageRuntimeConfig extends Abstrac
.with(org.eclipse.xtext.parser.IParser.class, getIParser())
.with(org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider.class, getIAntlrTokenFileProvider())
.with(org.eclipse.xtext.parser.antlr.Lexer.class, getLexer())
+ .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.registrations();
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractOptionalEmptyTestLanguageRuntimeConfig.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractOptionalEmptyTestLanguageRuntimeConfig.java
index 418b4d0..32d2c96 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractOptionalEmptyTestLanguageRuntimeConfig.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractOptionalEmptyTestLanguageRuntimeConfig.java
@@ -17,10 +17,6 @@ public abstract class AbstractOptionalEmptyTestLanguageRuntimeConfig extends Abs
return org.eclipse.xtext.testlanguages.services.OptionalEmptyTestLanguageGrammarAccess.class;
}
- protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
- return org.eclipse.xtext.testlanguages.parser.packrat.OptionalEmptyTestLanguagePackratParser.class;
- }
-
protected Class<? extends org.eclipse.xtext.resource.IResourceFactory> getIResourceFactory() {
return org.eclipse.xtext.testlanguages.services.OptionalEmptyTestLanguageResourceFactory.class;
}
@@ -57,12 +53,15 @@ public abstract class AbstractOptionalEmptyTestLanguageRuntimeConfig extends Abs
return org.eclipse.xtext.testlanguages.parser.antlr.internal.InternalOptionalEmptyTestLanguageLexer.class;
}
+ protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
+ return org.eclipse.xtext.testlanguages.parser.packrat.OptionalEmptyTestLanguagePackratParser.class;
+ }
+
public Set<IServiceRegistration> registrations() {
return scope(org.eclipse.xtext.testlanguages.IOptionalEmptyTestLanguage.SCOPE)
.with(org.eclipse.xtext.IMetamodelAccess.class, getIMetamodelAccess())
.with(org.eclipse.xtext.IGrammarAccess.class, getIGrammarAccess())
- .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.with(org.eclipse.xtext.resource.IResourceFactory.class, getIResourceFactory())
.with(org.eclipse.xtext.parsetree.reconstr.IParseTreeConstructor.class, getIParseTreeConstructor())
.with(org.eclipse.xtext.parsetree.reconstr.ITokenSerializer.class, getITokenSerializer())
@@ -72,6 +71,7 @@ public abstract class AbstractOptionalEmptyTestLanguageRuntimeConfig extends Abs
.with(org.eclipse.xtext.parser.IParser.class, getIParser())
.with(org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider.class, getIAntlrTokenFileProvider())
.with(org.eclipse.xtext.parser.antlr.Lexer.class, getLexer())
+ .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.registrations();
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractPartialParserTestLanguageRuntimeConfig.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractPartialParserTestLanguageRuntimeConfig.java
index a0e293a..f2d08df 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractPartialParserTestLanguageRuntimeConfig.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractPartialParserTestLanguageRuntimeConfig.java
@@ -17,10 +17,6 @@ public abstract class AbstractPartialParserTestLanguageRuntimeConfig extends Abs
return org.eclipse.xtext.testlanguages.services.PartialParserTestLanguageGrammarAccess.class;
}
- protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
- return org.eclipse.xtext.testlanguages.parser.packrat.PartialParserTestLanguagePackratParser.class;
- }
-
protected Class<? extends org.eclipse.xtext.resource.IResourceFactory> getIResourceFactory() {
return org.eclipse.xtext.testlanguages.services.PartialParserTestLanguageResourceFactory.class;
}
@@ -57,12 +53,15 @@ public abstract class AbstractPartialParserTestLanguageRuntimeConfig extends Abs
return org.eclipse.xtext.testlanguages.parser.antlr.internal.InternalPartialParserTestLanguageLexer.class;
}
+ protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
+ return org.eclipse.xtext.testlanguages.parser.packrat.PartialParserTestLanguagePackratParser.class;
+ }
+
public Set<IServiceRegistration> registrations() {
return scope(org.eclipse.xtext.testlanguages.IPartialParserTestLanguage.SCOPE)
.with(org.eclipse.xtext.IMetamodelAccess.class, getIMetamodelAccess())
.with(org.eclipse.xtext.IGrammarAccess.class, getIGrammarAccess())
- .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.with(org.eclipse.xtext.resource.IResourceFactory.class, getIResourceFactory())
.with(org.eclipse.xtext.parsetree.reconstr.IParseTreeConstructor.class, getIParseTreeConstructor())
.with(org.eclipse.xtext.parsetree.reconstr.ITokenSerializer.class, getITokenSerializer())
@@ -72,6 +71,7 @@ public abstract class AbstractPartialParserTestLanguageRuntimeConfig extends Abs
.with(org.eclipse.xtext.parser.IParser.class, getIParser())
.with(org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider.class, getIAntlrTokenFileProvider())
.with(org.eclipse.xtext.parser.antlr.Lexer.class, getLexer())
+ .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.registrations();
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractReferenceGrammarTestLanguageRuntimeConfig.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractReferenceGrammarTestLanguageRuntimeConfig.java
index e5fe2a0..b7bb4ef 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractReferenceGrammarTestLanguageRuntimeConfig.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractReferenceGrammarTestLanguageRuntimeConfig.java
@@ -17,10 +17,6 @@ public abstract class AbstractReferenceGrammarTestLanguageRuntimeConfig extends
return org.eclipse.xtext.testlanguages.services.ReferenceGrammarTestLanguageGrammarAccess.class;
}
- protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
- return org.eclipse.xtext.testlanguages.parser.packrat.ReferenceGrammarTestLanguagePackratParser.class;
- }
-
protected Class<? extends org.eclipse.xtext.resource.IResourceFactory> getIResourceFactory() {
return org.eclipse.xtext.testlanguages.services.ReferenceGrammarTestLanguageResourceFactory.class;
}
@@ -57,12 +53,15 @@ public abstract class AbstractReferenceGrammarTestLanguageRuntimeConfig extends
return org.eclipse.xtext.testlanguages.parser.antlr.internal.InternalReferenceGrammarTestLanguageLexer.class;
}
+ protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
+ return org.eclipse.xtext.testlanguages.parser.packrat.ReferenceGrammarTestLanguagePackratParser.class;
+ }
+
public Set<IServiceRegistration> registrations() {
return scope(org.eclipse.xtext.testlanguages.IReferenceGrammarTestLanguage.SCOPE)
.with(org.eclipse.xtext.IMetamodelAccess.class, getIMetamodelAccess())
.with(org.eclipse.xtext.IGrammarAccess.class, getIGrammarAccess())
- .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.with(org.eclipse.xtext.resource.IResourceFactory.class, getIResourceFactory())
.with(org.eclipse.xtext.parsetree.reconstr.IParseTreeConstructor.class, getIParseTreeConstructor())
.with(org.eclipse.xtext.parsetree.reconstr.ITokenSerializer.class, getITokenSerializer())
@@ -72,6 +71,7 @@ public abstract class AbstractReferenceGrammarTestLanguageRuntimeConfig extends
.with(org.eclipse.xtext.parser.IParser.class, getIParser())
.with(org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider.class, getIAntlrTokenFileProvider())
.with(org.eclipse.xtext.parser.antlr.Lexer.class, getLexer())
+ .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.registrations();
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractSimpleExpressionsTestLanguageRuntimeConfig.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractSimpleExpressionsTestLanguageRuntimeConfig.java
index aad46fd..1f5e421 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractSimpleExpressionsTestLanguageRuntimeConfig.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractSimpleExpressionsTestLanguageRuntimeConfig.java
@@ -17,10 +17,6 @@ public abstract class AbstractSimpleExpressionsTestLanguageRuntimeConfig extends
return org.eclipse.xtext.testlanguages.services.SimpleExpressionsTestLanguageGrammarAccess.class;
}
- protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
- return org.eclipse.xtext.testlanguages.parser.packrat.SimpleExpressionsTestLanguagePackratParser.class;
- }
-
protected Class<? extends org.eclipse.xtext.resource.IResourceFactory> getIResourceFactory() {
return org.eclipse.xtext.testlanguages.services.SimpleExpressionsTestLanguageResourceFactory.class;
}
@@ -57,12 +53,15 @@ public abstract class AbstractSimpleExpressionsTestLanguageRuntimeConfig extends
return org.eclipse.xtext.testlanguages.parser.antlr.internal.InternalSimpleExpressionsTestLanguageLexer.class;
}
+ protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
+ return org.eclipse.xtext.testlanguages.parser.packrat.SimpleExpressionsTestLanguagePackratParser.class;
+ }
+
public Set<IServiceRegistration> registrations() {
return scope(org.eclipse.xtext.testlanguages.ISimpleExpressionsTestLanguage.SCOPE)
.with(org.eclipse.xtext.IMetamodelAccess.class, getIMetamodelAccess())
.with(org.eclipse.xtext.IGrammarAccess.class, getIGrammarAccess())
- .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.with(org.eclipse.xtext.resource.IResourceFactory.class, getIResourceFactory())
.with(org.eclipse.xtext.parsetree.reconstr.IParseTreeConstructor.class, getIParseTreeConstructor())
.with(org.eclipse.xtext.parsetree.reconstr.ITokenSerializer.class, getITokenSerializer())
@@ -72,6 +71,7 @@ public abstract class AbstractSimpleExpressionsTestLanguageRuntimeConfig extends
.with(org.eclipse.xtext.parser.IParser.class, getIParser())
.with(org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider.class, getIAntlrTokenFileProvider())
.with(org.eclipse.xtext.parser.antlr.Lexer.class, getLexer())
+ .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.registrations();
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractTestLanguageRuntimeConfig.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractTestLanguageRuntimeConfig.java
index d8e8b34..01c01e3 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractTestLanguageRuntimeConfig.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractTestLanguageRuntimeConfig.java
@@ -17,10 +17,6 @@ public abstract class AbstractTestLanguageRuntimeConfig extends AbstractServiceR
return org.eclipse.xtext.testlanguages.services.TestLanguageGrammarAccess.class;
}
- protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
- return org.eclipse.xtext.testlanguages.parser.packrat.TestLanguagePackratParser.class;
- }
-
protected Class<? extends org.eclipse.xtext.resource.IResourceFactory> getIResourceFactory() {
return org.eclipse.xtext.testlanguages.services.TestLanguageResourceFactory.class;
}
@@ -57,12 +53,15 @@ public abstract class AbstractTestLanguageRuntimeConfig extends AbstractServiceR
return org.eclipse.xtext.testlanguages.parser.antlr.internal.InternalTestLanguageLexer.class;
}
+ protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
+ return org.eclipse.xtext.testlanguages.parser.packrat.TestLanguagePackratParser.class;
+ }
+
public Set<IServiceRegistration> registrations() {
return scope(org.eclipse.xtext.testlanguages.ITestLanguage.SCOPE)
.with(org.eclipse.xtext.IMetamodelAccess.class, getIMetamodelAccess())
.with(org.eclipse.xtext.IGrammarAccess.class, getIGrammarAccess())
- .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.with(org.eclipse.xtext.resource.IResourceFactory.class, getIResourceFactory())
.with(org.eclipse.xtext.parsetree.reconstr.IParseTreeConstructor.class, getIParseTreeConstructor())
.with(org.eclipse.xtext.parsetree.reconstr.ITokenSerializer.class, getITokenSerializer())
@@ -72,6 +71,7 @@ public abstract class AbstractTestLanguageRuntimeConfig extends AbstractServiceR
.with(org.eclipse.xtext.parser.IParser.class, getIParser())
.with(org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider.class, getIAntlrTokenFileProvider())
.with(org.eclipse.xtext.parser.antlr.Lexer.class, getLexer())
+ .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.registrations();
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractTreeTestLanguageRuntimeConfig.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractTreeTestLanguageRuntimeConfig.java
index 7259b61..2177d67 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractTreeTestLanguageRuntimeConfig.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/AbstractTreeTestLanguageRuntimeConfig.java
@@ -17,10 +17,6 @@ public abstract class AbstractTreeTestLanguageRuntimeConfig extends AbstractServ
return org.eclipse.xtext.testlanguages.services.TreeTestLanguageGrammarAccess.class;
}
- protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
- return org.eclipse.xtext.testlanguages.parser.packrat.TreeTestLanguagePackratParser.class;
- }
-
protected Class<? extends org.eclipse.xtext.resource.IResourceFactory> getIResourceFactory() {
return org.eclipse.xtext.testlanguages.services.TreeTestLanguageResourceFactory.class;
}
@@ -57,12 +53,15 @@ public abstract class AbstractTreeTestLanguageRuntimeConfig extends AbstractServ
return org.eclipse.xtext.testlanguages.parser.antlr.internal.InternalTreeTestLanguageLexer.class;
}
+ protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
+ return org.eclipse.xtext.testlanguages.parser.packrat.TreeTestLanguagePackratParser.class;
+ }
+
public Set<IServiceRegistration> registrations() {
return scope(org.eclipse.xtext.testlanguages.ITreeTestLanguage.SCOPE)
.with(org.eclipse.xtext.IMetamodelAccess.class, getIMetamodelAccess())
.with(org.eclipse.xtext.IGrammarAccess.class, getIGrammarAccess())
- .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.with(org.eclipse.xtext.resource.IResourceFactory.class, getIResourceFactory())
.with(org.eclipse.xtext.parsetree.reconstr.IParseTreeConstructor.class, getIParseTreeConstructor())
.with(org.eclipse.xtext.parsetree.reconstr.ITokenSerializer.class, getITokenSerializer())
@@ -72,6 +71,7 @@ public abstract class AbstractTreeTestLanguageRuntimeConfig extends AbstractServ
.with(org.eclipse.xtext.parser.IParser.class, getIParser())
.with(org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider.class, getIAntlrTokenFileProvider())
.with(org.eclipse.xtext.parser.antlr.Lexer.class, getLexer())
+ .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.registrations();
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/valueconverter/AbstractBug250313RuntimeConfig.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/valueconverter/AbstractBug250313RuntimeConfig.java
index 9367071..c6e1548 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/valueconverter/AbstractBug250313RuntimeConfig.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/valueconverter/AbstractBug250313RuntimeConfig.java
@@ -17,10 +17,6 @@ public abstract class AbstractBug250313RuntimeConfig extends AbstractServiceRegi
return org.eclipse.xtext.valueconverter.services.Bug250313GrammarAccess.class;
}
- protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
- return org.eclipse.xtext.valueconverter.parser.packrat.Bug250313PackratParser.class;
- }
-
protected Class<? extends org.eclipse.xtext.resource.IResourceFactory> getIResourceFactory() {
return org.eclipse.xtext.valueconverter.services.Bug250313ResourceFactory.class;
}
@@ -57,12 +53,15 @@ public abstract class AbstractBug250313RuntimeConfig extends AbstractServiceRegi
return org.eclipse.xtext.valueconverter.parser.antlr.internal.InternalBug250313Lexer.class;
}
+ protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
+ return org.eclipse.xtext.valueconverter.parser.packrat.Bug250313PackratParser.class;
+ }
+
public Set<IServiceRegistration> registrations() {
return scope(org.eclipse.xtext.valueconverter.IBug250313.SCOPE)
.with(org.eclipse.xtext.IMetamodelAccess.class, getIMetamodelAccess())
.with(org.eclipse.xtext.IGrammarAccess.class, getIGrammarAccess())
- .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.with(org.eclipse.xtext.resource.IResourceFactory.class, getIResourceFactory())
.with(org.eclipse.xtext.parsetree.reconstr.IParseTreeConstructor.class, getIParseTreeConstructor())
.with(org.eclipse.xtext.parsetree.reconstr.ITokenSerializer.class, getITokenSerializer())
@@ -72,6 +71,7 @@ public abstract class AbstractBug250313RuntimeConfig extends AbstractServiceRegi
.with(org.eclipse.xtext.parser.IParser.class, getIParser())
.with(org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider.class, getIAntlrTokenFileProvider())
.with(org.eclipse.xtext.parser.antlr.Lexer.class, getLexer())
+ .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.registrations();
}
diff --git a/tests/org.eclipse.xtext.ui.common.tests/META-INF/MANIFEST.MF b/tests/org.eclipse.xtext.ui.common.tests/META-INF/MANIFEST.MF
index 432aaad..4bd62b5 100644
--- a/tests/org.eclipse.xtext.ui.common.tests/META-INF/MANIFEST.MF
+++ b/tests/org.eclipse.xtext.ui.common.tests/META-INF/MANIFEST.MF
@@ -20,7 +20,8 @@ Require-Bundle: org.eclipse.ui,
org.eclipse.xtext.example.domainmodel;bundle-version="1.0.0",
org.eclipse.xtext.example.domainmodel.ui;bundle-version="1.0.0",
org.eclipse.xtext.example.fowlerdsl;bundle-version="0.7.0",
- org.eclipse.xtext.example.fowlerdsl.ui;bundle-version="0.7.0"
+ org.eclipse.xtext.example.fowlerdsl.ui;bundle-version="0.7.0",
+ de.itemis.xtext.antlr;bundle-version="1.0.0";resolution:=optional
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Bundle-ActivationPolicy: lazy
Export-Package: org.eclipse.xtext.ui.common
diff --git a/tests/org.eclipse.xtext.ui.integration.tests/META-INF/MANIFEST.MF b/tests/org.eclipse.xtext.ui.integration.tests/META-INF/MANIFEST.MF
index 9962a89..32a7786 100644
--- a/tests/org.eclipse.xtext.ui.integration.tests/META-INF/MANIFEST.MF
+++ b/tests/org.eclipse.xtext.ui.integration.tests/META-INF/MANIFEST.MF
@@ -17,6 +17,7 @@ Require-Bundle: org.eclipse.xtext.generator;bundle-version="0.7.0",
org.eclipse.ui.ide;bundle-version="3.4.0",
org.junit;bundle-version="3.8.2",
org.eclipse.jdt.core;bundle-version="3.4.0",
- org.eclipse.jdt.launching;bundle-version="3.4.0"
+ org.eclipse.jdt.launching;bundle-version="3.4.0",
+ de.itemis.xtext.antlr;bundle-version="1.0.0";resolution:=optional
Bundle-ActivationPolicy: lazy
Bundle-Activator: org.eclipse.xtext.ui.integration.XtextUIIntegrationTestsPlugin
diff --git a/tests/org.eclipse.xtext.ui.integration.tests/src-gen/org/eclipse/xtext/ui/integration/AbstractTestLanguageRuntimeConfig.java b/tests/org.eclipse.xtext.ui.integration.tests/src-gen/org/eclipse/xtext/ui/integration/AbstractTestLanguageRuntimeConfig.java
index 73091f5..c7751bc 100644
--- a/tests/org.eclipse.xtext.ui.integration.tests/src-gen/org/eclipse/xtext/ui/integration/AbstractTestLanguageRuntimeConfig.java
+++ b/tests/org.eclipse.xtext.ui.integration.tests/src-gen/org/eclipse/xtext/ui/integration/AbstractTestLanguageRuntimeConfig.java
@@ -17,10 +17,6 @@ public abstract class AbstractTestLanguageRuntimeConfig extends AbstractServiceR
return org.eclipse.xtext.ui.integration.services.TestLanguageGrammarAccess.class;
}
- protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
- return org.eclipse.xtext.ui.integration.parser.packrat.TestLanguagePackratParser.class;
- }
-
protected Class<? extends org.eclipse.xtext.resource.IResourceFactory> getIResourceFactory() {
return org.eclipse.xtext.ui.integration.services.TestLanguageResourceFactory.class;
}
@@ -57,12 +53,15 @@ public abstract class AbstractTestLanguageRuntimeConfig extends AbstractServiceR
return org.eclipse.xtext.ui.integration.parser.antlr.internal.InternalTestLanguageLexer.class;
}
+ protected Class<? extends org.eclipse.xtext.parser.packrat.IPackratParser> getIPackratParser() {
+ return org.eclipse.xtext.ui.integration.parser.packrat.TestLanguagePackratParser.class;
+ }
+
public Set<IServiceRegistration> registrations() {
return scope(org.eclipse.xtext.ui.integration.ITestLanguage.SCOPE)
.with(org.eclipse.xtext.IMetamodelAccess.class, getIMetamodelAccess())
.with(org.eclipse.xtext.IGrammarAccess.class, getIGrammarAccess())
- .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.with(org.eclipse.xtext.resource.IResourceFactory.class, getIResourceFactory())
.with(org.eclipse.xtext.parsetree.reconstr.IParseTreeConstructor.class, getIParseTreeConstructor())
.with(org.eclipse.xtext.parsetree.reconstr.ITokenSerializer.class, getITokenSerializer())
@@ -72,6 +71,7 @@ public abstract class AbstractTestLanguageRuntimeConfig extends AbstractServiceR
.with(org.eclipse.xtext.parser.IParser.class, getIParser())
.with(org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider.class, getIAntlrTokenFileProvider())
.with(org.eclipse.xtext.parser.antlr.Lexer.class, getLexer())
+ .with(org.eclipse.xtext.parser.packrat.IPackratParser.class, getIPackratParser())
.registrations();
}