Commit graph

1694 commits

Author SHA1 Message Date
Stefan Oehme
21dd488f2c Merge pull request #716 from sailingKieler/cs/codeConfigEncodingLineDelim
[xtext generator] added default value of 'encoding' and 'lineDelimiter' in CodeConfig
2015-10-21 14:49:04 +02:00
Dennis Huebner
ea1ad3a21b [wiz] Updated generated TP to mars sr1 + mwe2 2.8,1
Signed-off-by: Dennis Huebner <dennis.huebner@itemis.de>
2015-10-21 14:36:26 +02:00
Dennis Huebner
e3898c1477 Bug 480097 - [generator] Xtext 2.9 Maven build failed (edit)
https://bugs.eclipse.org/bugs/show_bug.cgi?id=480097
Signed-off-by: Dennis Huebner <dennis.huebner@itemis.de>
2015-10-21 14:03:36 +02:00
Christian Schneider
3b6fbab23b [xtext generator] added default value of 'encoding' and 'lineDelimiter' in CodeConfig, removed pre-setting from workflow template in RuntimeProjectDescriptor
Signed-off-by: Christian Schneider <christian.schneider@itemis.de>
2015-10-21 11:48:07 +02:00
Sebastian Zarnekow
7667467a0c Merge branch 'master' into me/serializer 2015-10-21 10:37:59 +02:00
Stefan Oehme
ea92173b37 Merge pull request #700 from sailingKieler/aa/grammarComparison
Contribution of 'XtextAntlrGeneratorComparisonFragment' + '...Test'
2015-10-21 08:48:35 +02:00
Sebastian Zarnekow
24845d80a5 Merge branch 'master' into me/serializer 2015-10-20 19:09:10 +02:00
Stefan Oehme
df288afc65 fix Bug 480196 2015-10-20 14:37:15 +02:00
Christian Schneider
34576c8da3 [antlr grammar comparison] more refactoring and polishing in the grammar comparison classes
Signed-off-by: Christian Schneider <christian.schneider@itemis.de>
2015-10-20 14:27:25 +02:00
Sebastian Zarnekow
2f14516fad [479400] Fixed broken tests and improved Xtext serializer 2015-10-20 13:48:56 +02:00
Stefan Oehme
498ad15dae move project config to its own package 2015-10-20 12:04:19 +02:00
Stefan Oehme
99c0195998 more consistent naming of Generator2 concepts 2015-10-20 11:49:05 +02:00
Sebastian Zarnekow
36c8bbaa8e Merge branch 'master' into me/serializer 2015-10-20 11:38:12 +02:00
Christian Schneider
9b91477282 [antlr grammar comparator] renamed error handler's method 'handleUnexpectedCharSequence' into 'handleInvalidGrammarFile'
Signed-off-by: Christian Schneider <christian.schneider@itemis.de>
2015-10-20 11:35:46 +02:00
Christian Schneider
3ce87a3372 [xtext generator] fixed mistakes caused by the merge and in logic of 'AntlrGrammarComparator', comparisonFragment, and 'AntlrGrammarComparatorTest'
Signed-off-by: Christian Schneider <christian.schneider@itemis.de>
2015-10-20 10:01:06 +02:00
Sebastian Zarnekow
51bf8f2298 Merge pull request #704 from eclipse/sz/bug480118
[480118] Fixed regression in new grammar access fragment
2015-10-20 09:54:38 +02:00
Stefan Oehme
095ea42b64 [wizard] fix UI tests on mac 2015-10-20 09:23:47 +02:00
Moritz Eysholdt
7cfe0838fc Fixed serialization problem of Xtext.xtext grammar
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@itemis.de>
2015-10-20 00:57:58 +02:00
Moritz Eysholdt
ba31590e76 [serializer] several fixes
- pass ParserRule-Parameters to Action-based contexts
- fixed an issue with constraint names that could cause duplicate 
  Java method names in the Semanitc Sequencer
- improved names of serialization contexts

Signed-off-by: Moritz Eysholdt <moritz.eysholdt@itemis.de>
2015-10-19 23:55:47 +02:00
Sebastian Zarnekow
b870a30ae6 [480118] Fixed regression in new grammar access fragment
Not all valid java identifiers are valid in Antlr
action contexts.
2015-10-19 18:25:30 +02:00
Stefan Oehme
1c750ea53e [wizard] fix test expectations 2015-10-19 17:13:13 +02:00
Stefan Oehme
8e0e6dfe88 only tycho builds need generator dependencies in the exec-plugin 2015-10-19 16:49:18 +02:00
Christian Schneider
5106898fb2 Merge remote-tracking branch 'origin/master' into genFrag/grammarComparison
Conflicts:
	plugins/org.eclipse.xtend.core/src/org/eclipse/xtend/core/GenerateXtend.mwe2
	plugins/org.eclipse.xtext.xbase/generator/org/eclipse/xtext/xbase/GenerateXbase.java

manually fixed
2015-10-19 16:11:54 +02:00
Christian Schneider
fd63485f22 [xtext generator] refactored 'XtextAntlrGeneratorComparisonFragment' as requested in review
Signed-off-by: Christian Schneider <christian.schneider@itemis.de>
2015-10-19 16:04:06 +02:00
Christian Schneider
c1c81484b6 [xtext tests] Contributed initial draft of 'XtextAntlrGeneratorComparisonFragmentTest'
Signed-off-by: Christian Schneider <christian.schneider@itemis.de>

Signed-off-by: Christian Schneider <christian.schneider@itemis.de>
2015-10-19 10:29:45 +02:00
Moritz Eysholdt
b76dcad4c4 Added a test case for a problem when serializing Xtext.xtext
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@itemis.de>
2015-10-16 18:34:34 +02:00
Moritz Eysholdt
c5f8c186e8 [serializer] improve support for parameterized rule calls
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@itemis.de>
2015-10-16 17:30:59 +02:00
Moritz Eysholdt
c3ddd09442 [serializer] removed non-API-methods from ISerializationContext
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@itemis.de>
2015-10-16 17:02:56 +02:00
Moritz Eysholdt
2ee177b976 [Serializer] renamed IContext to ISerializationContext and made it API 2015-10-16 17:02:56 +02:00
Moritz Eysholdt
839ef90393 [JavaFormatting] set max line width to 140 chars 2015-10-16 17:02:56 +02:00
Moritz Eysholdt
d86e9e6442 hooked the FlattenedGrammarAccess before the serializer
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@itemis.de>
2015-10-16 17:02:54 +02:00
Moritz Eysholdt
8e07bfdca6 [serializer] introduce IContext
Previously, the context was of type EObject which actually was a
ParserRule or assigned Action. 

This refactoring paves the road for more advanced contexts, such
as ParserRules with parameter values.

Signed-off-by: Moritz Eysholdt <moritz.eysholdt@itemis.de>
2015-10-16 17:02:53 +02:00
Miro Spönemann
76882898d6 [generator] Implemented adapter for using the new generator in old fragments,
removed implementation of old serializer fragment

Signed-off-by: Miro Spönemann <miro.spoenemann@itemis.de>
2015-10-16 08:19:29 +02:00
Sven Efftinge
1fd8c0bd62 [wizard] fixed broken test expectations 2015-10-15 11:15:13 +02:00
Stefan Oehme
e9d2791194 Merge pull request #687 from eclipse/sz/testProjectNames
[wizard] Fixed test project names with mvn config
2015-10-15 10:15:05 +02:00
Sven Efftinge
0b64acd1fa [generator] Simpler language generator configuration for the standard case 2015-10-15 09:19:14 +02:00
Sebastian Zarnekow
16ebeaa4d8 [wizard] Fixed test project names with mvn config
Also:
- adjusted orion download URI in example
- updated gradle preferences
2015-10-14 17:17:04 +02:00
Christian Schneider
af8d206769 [xtext generator] Migration of 'ResourceFactoryFragment'
Signed-off-by: Christian Schneider <christian.schneider@itemis.de>
2015-10-14 13:41:57 +02:00
Moritz Eysholdt
9356d40776 [serializer] fix 479397#c10: Problem with Grammar Fragment Invocations
A Grammar fragment invocation does only instantiate the current object
if the current object has not yet been instantiated.

Signed-off-by: Moritz Eysholdt <moritz.eysholdt@itemis.de>
2015-10-13 14:26:10 +02:00
Christian Schneider
65408ebc10 [xtext generator] Migration of 'CodetemplateGeneratorFragment'
Signed-off-by: Christian Schneider <christian.schneider@itemis.de>
2015-10-13 10:30:44 +02:00
Christian Schneider
f899d90da2 [xtext generator] Migration of 'RefactorElementNameFragment'
Signed-off-by: Christian Schneider <christian.schneider@itemis.de>
2015-10-10 12:58:29 +02:00
Stefan Oehme
809efcec75 Merge pull request #661 from eclipse/so_structured_project_config
[generator2] make XtextProjectConfig more structured
2015-10-09 18:02:42 +02:00
Moritz Eysholdt
42cbaa0c25 Merge pull request #666 from eclipse/me/bug479397
[serializer] fixed 479397: compute types of wildcard fragments properly
2015-10-09 16:04:49 +02:00
Sven Efftinge
b97c52ef39 Merge pull request #665 from eclipse/se/bug476854
[476854] incremental builder - keep track of outputconfig names per generated file and respect the cleanDerivedResources as well as the overrideExistingResources flag.
2015-10-09 15:30:04 +02:00
Stefan Oehme
86d26f3d02 Merge remote-tracking branch 'origin/master' into so_structured_project_config 2015-10-09 15:06:18 +02:00
Moritz Eysholdt
02ccb30a82 [serializer] fixed 479397: compute types of wildcard fragments properly
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@itemis.de>
2015-10-09 14:10:38 +02:00
Sven Efftinge
b7d7e05c50 [476854] incremental builder - keep track of outputconfig names per generated file and respect the cleanDerivedResources as well as the overrideExistingResources flag. 2015-10-09 14:06:15 +02:00
Christian Schneider
9e7a88c7c3 [xtext generator] migrated 'CompareFragment'
Signed-off-by: Christian Schneider <christian.schneider@itemis.de>
2015-10-09 11:53:22 +02:00
Stefan Oehme
b7004aced8 Merge remote-tracking branch 'origin/master' into so_structured_project_config
Conflicts:
	plugins/org.eclipse.xtext.xbase.ui/src-gen/org/eclipse/xtext/xbase/annotations/ui/AbstractXbaseWithAnnotationsUiModule.java
2015-10-09 10:25:32 +02:00
Stefan Oehme
d817d347dd Merge remote-tracking branch 'origin/master' into so_structured_project_config 2015-10-09 10:06:51 +02:00