Commit graph

537 commits

Author SHA1 Message Date
Holger Schill
c2ccc54ca3 Add Tests for ValidationFragment2 and @Deprecate annotation 2018-03-28 18:10:22 +02:00
Holger Schill
026df8e630 Make multiple annotations on enum rule possible
Add validations to see if Annotation works on the rule in the grammar
Add configurable issue for @Deprecate Annotation
2018-03-28 18:03:29 +02:00
Titouan Vervack
127fa42d17 Removed redundant modifiers
Signed-off-by: Titouan Vervack <titouan.vervack@sigasi.com>
2018-03-28 17:41:41 +02:00
Tamas Miklossy
ac7215e80c [479833] Formatter2Fragment2 stub improvements.
- Make the generated Formatter.xtend stub more concise by eliminating
unnecessary semicolons, by eliminating explicit type before the for loop
variable and by using the EReference feature name (instead of its getter
accessor name) in the for loop collection.
- Refactor the Formatter2Fragment2 class to make it more testable.
- Modify the AbstractGeneratorFragmentTests to set the resourceSet into
the used StandardLanguage (needed by the Formatter2Fragment2).
- Implement corresponding Formatter2Fragment2 test cases.

Signed-off-by: Tamas Miklossy <miklossy@itemis.de>
2018-03-28 13:05:17 +02:00
Christian Dietrich
f6d1727f98 Removed unused imports
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-03-26 19:39:20 +02:00
Holger Schill
3c4601363e Make use of JavaFileAccess to get better results to compare. 2018-03-26 18:25:04 +02:00
Holger Schill
5e9889ce92 Register XMLTypePackage explicitly in setup 2018-03-26 17:23:41 +02:00
Holger Schill
8ab08f8792 Make use of GlobalStateMemento 2018-03-26 17:07:15 +02:00
Holger Schill
6a0c83ed40 Remove XMLNamespacePackage from org.eclipse.xtext.xtext.generator.AbstractGeneratorFragmentTests.FakeEMFGeneratorFragment2.getReferencedEPackages(List<EPackage>) 2018-03-26 16:50:52 +02:00
Holger Schill
0e93f81c2d Work with GenModel without pollution the environment with globals 2018-03-26 16:31:17 +02:00
Holger Schill
47effb3ff1 Allow multiple annotations on Terminal but restrict it to a well defined set. 2018-03-26 16:15:53 +02:00
Holger Schill
d6f4ecc4c1 Enable ecore only for FragmentTests 2018-03-26 15:39:48 +02:00
Holger Schill
59b8642d93 Use exists instead of Java 8 syntax in Fragments.
Reenable Fragment tests -> Last build ran green without those tests.
Try with approach to not load XMLPackage Class
2018-03-26 15:24:49 +02:00
Holger Schill
cb1b9ef32c Adjust @since tag
Disable GeneratorFragmentTests again since an NPE happens on the CI and we want to find out if this is the cause for the other tests to fail.
2018-03-26 15:12:34 +02:00
Holger Schill
893a6ed207 Make tests run again 2018-03-26 14:45:59 +02:00
Holger Schill
9641e3b52c Bypass resolution of all crossRefs for FragmentTests.
Reenable all Fragmenttests
2018-03-26 13:34:06 +02:00
Holger Schill
66c27998e8 Ignore Fragment-tests to see if the server behaves different for CI now.
This is a temporally state
2018-03-26 13:24:32 +02:00
Holger Schill
70886d54a5 Make ResourceDesecriptionStrategyFragment and ValidationFragment more configurable 2018-03-26 12:40:19 +02:00
Holger Schill
d377312850 Merge branch 'master' into hs/664_grammarannotations 2018-03-26 11:19:49 +02:00
Holger Schill
047b035d55 Apply changes from review comments from 23.3 2018-03-26 10:46:20 +02:00
Florian Stolte
73677dccb3 Fixed a test that did not work on windows due to line ending issues
Signed-off-by: Florian Stolte <fstolte@gmx.de>
2018-03-23 11:21:06 +01:00
Holger Schill
8893b09e57 GrammarAnnotations: @Deprecated Annotation and corresponding tests 2018-03-22 14:40:23 +01:00
Holger Schill
fafdce378e Merge branch 'master' into grammarannotations 2018-03-22 11:17:31 +01:00
Holger Schill
f995ce41ec Refactor names of generated Classes of ResourceDescriptionStrategyFragment 2018-03-22 11:12:43 +01:00
Holger Schill
a25e761971 Grammarannotations - Exported annotation and corresponding Fragment incl. tests 2018-03-22 09:02:27 +01:00
Sebastian Zarnekow
7da28520af
Merge pull request #663 from eclipse/sz/bug361216
[361216] Improved logic that registers scope wrappers
2018-03-21 18:48:14 +01:00
Sebastian Zarnekow
a46f701920 Incorporated review feedback 2018-03-21 17:23:28 +01:00
Sebastian Zarnekow
9adf2d94ed [361216] Improved logic that registeres scope wrappers 2018-03-21 17:13:06 +01:00
Arne Deutsch
e90230f1b1 [#476] Support EMF's ResourceLocators in XtextResourceSet.
Signed-off-by: Arne Deutsch <Arne.Deutsch@itemis.de>
2018-03-21 15:40:22 +01:00
Holger Schill
04e0375fec Introduce Final Annotation on ParserRules and corresponding test 2018-03-20 16:57:28 +01:00
Christian Dietrich
2d8c00c5cc Updated to Gradle Wrapper Version 4.6
https://github.com/eclipse/xtext/issues/1177

Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-03-09 17:31:43 +01:00
Karsten Thoms
4fea27469a
Merge pull request #651 from eclipse/kth_qn_startwith_null
startsWith: return false for null argument
2018-03-05 14:36:29 +01:00
Karsten Thoms
2e534b5246 startsWith: check that prefix is not null
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2018-03-05 11:41:44 +01:00
Moritz Eysholdt
43b7d1df8c Handle comments and whitespace properly in rewrite scenarios
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2018-03-04 19:41:46 +01:00
Christian Dietrich
58113d0f41 Regenerated against lastest xbase-lib
https://github.com/eclipse/xtext/issues/1174

Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-02-26 15:07:09 +01:00
Karsten Thoms
d1ee1b9857
Merge pull request #601 from eclipse/cd_issue596
[#596] updated tycho version to 1.1.0 to support java 9 in tycho builds as well
2018-02-02 23:39:07 +01:00
Karsten Thoms
6ede291fbf
Merge pull request #628 from eclipse/kth_issue627
[#627] Compute Xtext version from Bundle-Version
2018-02-02 14:11:55 +01:00
Karsten Thoms
266c673d87 [#627] Compute Xtext version from Bundle-Version
Reads the version from the 'Maven-Version'
attribute from org.eclipse.xtext.util manifest. It has a static value
of 'unspecified' and gets replaced in a Gradle build.
In devmode the value is not replaced, but the right version can be
computed from the Bundle-Version attribute.

Change-Id: I5b5028ca35c04e4708a07b0c0544dce20810d273
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2018-02-02 09:16:51 +01:00
Christian Dietrich
f66e355058 [#596] updated tycho version to 1.1.0 to support java 9 in tycho builds as well
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-01-30 16:13:54 +01:00
Karsten Thoms
22c2c4c98f [#623] Update wizard expectations
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2018-01-30 12:07:17 +01:00
Karsten Thoms
809377cd27 [420984] Compiler optimization: Suppress creation of unused exception variable
Recompiled Xtend files

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2018-01-16 14:54:22 +01:00
Karsten Thoms
8d0268e386
Merge pull request #619 from eclipse/kth_issue1160
[eclipse/xtext#1160] Update copyright date range
2018-01-16 11:00:31 +01:00
Lorenzo Bettini
1514fd8f43
Merge pull request #612 from eclipse/lb/generated-maven-pom
Lb/generated maven pom
2018-01-16 09:52:00 +01:00
Karsten Thoms
a61200a0cd [eclipse/xtext#1160] Fixed test expectation
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2018-01-16 09:15:34 +01:00
Karsten Thoms
90cef27ab4 [eclipse/xtext#1160] Update copyright date range
Recompiled Xtend files

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2018-01-16 09:11:22 +01:00
Karsten Thoms
2184d4de50
Merge pull request #615 from eclipse/kth_issue1160
[eclipse/xtext#1160] Update copyright date range
2018-01-16 06:14:56 +01:00
Karsten Thoms
134c788006 [eclipse/xtext#1160] Update copyright date range
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2018-01-15 16:28:39 +01:00
Christian Dietrich
09cb0c1a90 [#517] Move More Code to JavaVersion
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-01-15 15:50:07 +01:00
Lorenzo Bettini
a05c6a6852 updated CliWizardIntegrationTest expectations
Signed-off-by: Lorenzo Bettini <lorenzo.bettini@gmail.com>
2018-01-15 11:50:36 +01:00
Christian Dietrich
5b3cc90ec6 [#605] Added Test for J9
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-01-09 19:29:26 +01:00
Christian Dietrich
fd0a80a0cb [#602] [J9][Wizard] Use latest Oxygen Release in Target
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-01-09 15:59:42 +01:00
Sebastian Zarnekow
5940623fac
Merge pull request #591 from eclipse/sz_regenerateAllLanguages
Regenerate all languages
2017-12-18 11:08:29 +01:00
Karsten Thoms
d5e6578a6d
Merge pull request #588 from FStolte/issue1152
[eclipse/xtext#1152] Java 9 - Added Automatic-Module-Name header
2017-12-18 10:04:26 +01:00
Florian Stolte
1bc930b5b6 [eclipse/xtext#1152] Java 9 - Added Automatic-Module-Name header
- added header to existing manifest files
- added header to manifest generation in xtext generator and wizard

Signed-off-by: Florian Stolte <fstolte@itemis.de>
2017-12-14 14:16:20 +01:00
Christian Dietrich
c1f78be257
Merge pull request #584 from FStolte/issue582
[#582] Updated version of xtext-gradle-plugin
2017-12-14 13:44:12 +01:00
Christian Dietrich
94a90a486c
Merge pull request #583 from FStolte/issue580
[#580] Updated maven assembly/war plugins to latest versions
2017-12-14 10:50:10 +01:00
Florian Stolte
bc1f236450 [#582] Updated version of xtext-gradle-plugin
- updated from 1.0.19 to 1.0.20
- updated the version in the gradle file
- updated the version used by the wizard
- updated the version in examples

Signed-off-by: Florian Stolte <fstolte@itemis.de>
2017-12-14 09:33:53 +01:00
Christian Dietrich
2ec798bcb7 use asm 6
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-12-13 22:12:46 +01:00
Florian Stolte
95225c9545 [#580] Updated maven assembly/war plugins to latest versions
- updated the wizard to use maven-assembly-plugin version 3.1.0
- updated the assembly descriptors to version 2.0.0
- updated the wizard to use maven-war-plugin version 3.2.0
- updated the tests to these versions, as well

Signed-off-by: Florian Stolte <fstolte@itemis.de>
2017-12-13 17:19:04 +01:00
Florian Stolte
6b9d505b07 [#570] Added error message for invalid override.
- rules with an @Override annotation in a grammar without super grammar
now correctly display an error

Signed-off-by: Florian Stolte <fstolte@itemis.de>
2017-12-13 12:23:06 +01:00
Christian Dietrich
8518cfd546 update to gradle 4.4
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-12-11 21:23:17 +01:00
Sebastian Zarnekow
1fb8d6e032 Regenerated xtext.tests testlanguages 2017-12-08 17:19:32 +01:00
Jan Koehnlein
e4dd20cf2e GH-568 ... more assertions
Signed-off-by: Jan Koehnlein <jan.koehnlein@typefox.io>
2017-12-06 11:41:14 +01:00
Jan Koehnlein
4baf82fad4 added another assertion according to feedback
Signed-off-by: Jan Koehnlein <jan.koehnlein@typefox.io>
2017-12-06 11:16:01 +01:00
Jan Koehnlein
9e4087bf5b GH-520 more tests for live scoping
Signed-off-by: Jan Koehnlein <jan.koehnlein@typefox.io>
2017-12-06 08:51:30 +01:00
Jan Koehnlein
15b13a279d GH-520 allow shadowed resource descriptions in language server scenario 2017-12-05 20:56:55 +01:00
Karsten Thoms
f3d2655cab Refactoring & additional tests
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2017-11-29 16:35:30 +01:00
Christian Dietrich
629c9db4bd Fixed Test Problem on Windows #557
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-11-28 09:57:19 +01:00
Florian Stolte
c322f3e73a [#556] Added test for TextRegionsToString::quote
Signed-off-by: Florian Stolte <fstolte@itemis.de>
2017-11-22 16:55:51 +01:00
Christian Dietrich
8f51de3cc4 use newer gradle plugin
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-11-22 08:48:26 +01:00
Christian Dietrich
84533e40f1 fixed formatting of annotations (e.g. @Override) in Xtext Grammars #534
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-11-08 22:16:22 +01:00
Christian Dietrich
9b28ee1960 dont exclude required xtextbin and tokens files from fat jars #533
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-11-08 22:11:50 +01:00
Waqas Ilyas
b8d1aa0294 Fix for #525: Detect incomplete escape sequences
Signed-off-by: Waqas Ilyas <waqas.ilyas@gmail.com>
2017-11-05 03:21:42 -06:00
Christian Dietrich
4960af9c0a set version to 2.14
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-10-27 09:03:34 +02:00
Karsten Thoms
c7b439923d [#512] Maven AppAssembler - Reduce length of classpath
On windows the generated classpath in start scripts might become too
long. This can be avoided by additional configuration of the
appassembler-maven-plugin plugin:
- added option repositoryLayout=flat
- added option useWildcardClassPath=true

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2017-10-19 14:31:17 +02:00
Karsten Thoms
5b7f5ecf90 [525746] Set Xbase/Xtend lib lower version constraint
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2017-10-09 21:39:12 +02:00
Karsten Thoms
1ecb623d5f [525746] Set lower bound for org.eclipse.xtext.xbase.lib
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2017-10-09 12:29:55 +02:00
Christian Dietrich
81df41e85b removed unused imports
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-10-05 08:26:22 +02:00
Jan Koehnlein
08ab8fe119 GH-488 fixed DefaultReferenceDescription test
We need the fragment path URIs in the renam scenario only

Signed-off-by: Jan Koehnlein <jan.koehnlein@typefox.io>
2017-10-02 20:56:19 +02:00
Jan Koehnlein
ded0ce36de GH-487 reverted TypeReference change and fixed usage in RefactorElementNameFragment2
Signed-off-by: Jan Koehnlein <jan.koehnlein@typefox.io>
2017-10-02 20:56:11 +02:00
Christian Dietrich
60a079fe75 ignored DefaultReferenceDescriptionTes #488
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-10-02 20:34:33 +02:00
Christian Dietrich
ff889c133f ignored failing tests #487
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-10-02 20:23:15 +02:00
Jan Koehnlein
dd3513b8a9 [refactoring] Fixes in core for https://github.com/eclipse/xtext-eclipse/issues/284
Signed-off-by: Jan Koehnlein <jan.koehnlein@typefox.io>
2017-10-02 18:08:52 +02:00
Thomas Kutz
0b74443d41 [#483] Append trailing whitespaces and newlines after appending separator in for-loops
Signed-off-by: Thomas Kutz <thomas.kutz@itemis.de>
2017-09-29 13:40:36 +02:00
Karsten Thoms
bae491cbbf Merge pull request #479 from eclipse/issue355_update_repo_urls
[#355] Update repository URLs
2017-09-28 11:34:05 +02:00
Karsten Thoms
c507600bb9 [#355] Update MWE to 2.9.1
Changed wizard test expectation

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2017-09-28 11:19:33 +02:00
Karsten Thoms
3512bacf62 [#355] Update repository URLs
- MWE 2.9.1
- Oxygen.1

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2017-09-28 11:03:57 +02:00
Christian Dietrich
9f287c9ed1 Merge pull request #465 from eclipse/cd_extras_issue26
URIsInEcoreFilesTest fails in Eclipse
2017-09-27 11:03:00 +02:00
Christian Dietrich
6b98c5cd09 Merge pull request #469 from eclipse/cd_issue460_indent
fixed indent tests on windows #460
2017-09-26 14:12:38 +02:00
Christian Dietrich
36792dd026 Merge pull request #466 from eclipse/cd_issue348
removed EncodingTest.testSetup #348
2017-09-25 15:52:16 +02:00
Christian Dietrich
762430602a fixed indent tests on windows #460
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-09-25 10:54:56 +02:00
Christian Dietrich
b71f866eb3 [Tracing] Allow to specify UseForDebugging #467
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-09-22 13:25:42 +02:00
Christian Dietrich
d5d1e3c88f removed EncodingTest.testSetup #348
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-09-21 09:53:21 +02:00
Christian Dietrich
94f10f680c URIsInEcoreFilesTest fails in Eclipse
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-09-20 11:39:52 +02:00
Moritz Eysholdt
846e686bd7 [formatter] improved comment handling in undefined regions
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-09-12 09:18:26 +02:00
Christian Dietrich
0a72876241 improved error message
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-09-06 10:38:41 +02:00
Christian Dietrich
7b2e23b94e [479137]improved Misleading error message 'Cannot create datatype' for terminal rule #91
- added test
- fixed broken test framework
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-09-06 09:34:28 +02:00
Sebastian Zarnekow
1c5b2b0320 Merge pull request #366 from eclipse/sz_bug476690
Refined token placement for indentation based languages
2017-09-05 23:02:36 +02:00
Christian Dietrich
0f99a6e6a3 removed unused imports / dead code
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-09-05 20:07:14 +02:00
Moritz Eysholdt
6a55da1434 [TextRegionDiffBuilder] improved handling of multi-inserts
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-08-23 17:31:59 +02:00
Moritz Eysholdt
760c7f92d3 bundle from xtext-core should not depend on downstream repos
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-08-22 17:24:37 +02:00
Moritz Eysholdt
ae9d0259ef fixed #438: error in ITextRegionAccess.regionForLineAtOffset(int)
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-08-21 19:25:51 +02:00
Moritz Eysholdt
b913ac015f [TextRegionAccess] Allow usage on mutable EMF models
This includes the possibility that an EObject has been removed from the
EMF containment tree or moved to another resource.

Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-08-20 20:10:02 +02:00
Moritz Eysholdt
fcdd7c4011 [TextRegionAccess] keep track of containment among EObjectRegions
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-08-18 11:24:29 +02:00
Christian Dietrich
79b887e3de Merge pull request #418 from eclipse/cd_issue417
Fixed FormattableDocumentTest.autoWrapInsert on windows
2017-08-16 08:30:54 +02:00
Moritz Eysholdt
6e1c95670e Moved Ecore support to test languages
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-08-11 11:58:03 +02:00
Moritz Eysholdt
b21c274f8b regenerated test languages
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-08-11 11:58:03 +02:00
Moritz Eysholdt
0845899c84 Support Modifications on a TextRegionAccess
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-08-11 08:07:05 +02:00
Moritz Eysholdt
3193d0240f Updated region access test language
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-08-11 08:07:05 +02:00
Christian Dietrich
5eba4a0ba5 Fixed FormattableDocumentTest.autoWrapInsert on windows
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-08-10 14:46:21 +02:00
Christian Dietrich
4857bce25b [468777] [formatter] ITextRegionAccess.regionForEObject(EObject) should throw exception for resource-external eobjects
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-08-04 13:37:02 +02:00
Karsten Thoms
715bcb249b [eclipse/xtext-eclipse#299] Added support for Language Server Jar
The IDE project's build can be extended to create an executable Language
Server. The Language Server can be configured to be built either as a
distribution with seperate jars or as a fat jar.
Due to a limitation of the maven-shade-plugin in a Maven/Tycho
environment the build must be tweaked a bit to materialize dependencies
with the maven-dependencies-plugin and attached for inclusion with the
addjars-maven-plugin.

Extended the test suite for the different configurations with language
server support:
- plain Maven
- Maven/Tycho
- Gradle

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2017-08-03 17:31:40 +02:00
Karsten Thoms
ba4bd8afea [eclipse/xtext-eclipse#299] Added support for Language Server Jar
The IDE project's build can be extended to create an executable Language
Server. The Language Server can be configured to be built either as a
distribution with seperate jars or as a fat jar.
Due to a limitation of the maven-shade-plugin in a Maven/Tycho
environment the build must be tweaked a bit to materialize dependencies
with the maven-dependencies-plugin and attached for inclusion with the
addjars-maven-plugin.

Extended the test suite for the different configurations with language
server support:
- plain Maven
- Maven/Tycho
- Gradle

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2017-08-03 14:33:21 +02:00
Karsten Thoms
4a5f5e5e15 [eclipse/xtext-eclipse#299] Added support for Language Server Jar
The IDE project's build can be extended to create an executable Language
Server. The Language Server can be configured to be built either as a
distribution with seperate jars or as a fat jar.
Due to a limitation of the maven-shade-plugin in a Maven/Tycho
environment the build must be tweaked a bit to materialize dependencies
with the maven-dependencies-plugin and attached for inclusion with the
addjars-maven-plugin.

Extended the test suite for the different configurations with language
server support:
- plain Maven
- Maven/Tycho
- Gradle

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2017-07-31 10:05:33 +02:00
Moritz Eysholdt
2b268a4f4f fix #301: Improved support for IAutoWrapFormatter
The previous fix 
906be319a4
dind't handle insertion of new ITextReplacers

Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-07-10 22:15:20 +02:00
Christian Dietrich
8eecbdcd4d [519299] LiveShadowedAllContainerState.containsURI() breaks scoping while refactoring (regression)
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-07-06 15:19:07 +02:00
Karsten Thoms
f46a269fdd gradleprojectbuilder added by Buildship project import
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2017-07-01 23:09:36 +02:00
Christian Dietrich
197ad484d7 updated target platform to oxygen. fixes https://github.com/eclipse/xtext-eclipse/issues/242
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-06-29 12:55:55 +02:00
Sebastian Zarnekow
14b2f35684 Yet another attempt (tm) 2017-06-13 19:45:29 +02:00
Sebastian Zarnekow
9ba194e7f4 Another attempt to fix all the things (tm) 2017-06-13 16:45:44 +02:00
Sebastian Zarnekow
21320c6f85 Renamend another test class to *Suite 2017-06-13 15:53:13 +02:00
Sebastian Zarnekow
9f60f6ea38 More test cases for snythetic token placement 2017-06-12 15:02:55 +02:00
Christian Dietrich
cafeaec480 use xtext gradle plugin version 1.0.18
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-06-09 17:28:55 +02:00
Christian Dietrich
1466ed1675 use gradle 3.5 in new project wizard
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-06-09 09:08:19 +02:00
Christian Dietrich
f7993d9e87 Merge pull request #356 from eclipse/cd_eclipse_issue272
Fixed problem with the initial build after project creation in maven tycho
2017-06-08 14:08:42 +02:00
Sebastian Zarnekow
19a3930632 Improved synthetic token placement 2017-06-07 10:31:21 +02:00
Sebastian Zarnekow
18c6233438 Mark test methods as deprecated that test deprecated code 2017-06-02 12:39:48 +02:00
Sebastian Zarnekow
beb7189a8b Suppress keyword validation in test languages 2017-06-02 12:36:53 +02:00
Christian Dietrich
7168c3a175 Fixed problem with the initial build after project creation in maven
tycho
https://github.com/eclipse/xtext-eclipse/issues/272

Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-05-29 14:06:58 +02:00
Christian Dietrich
569a3ab241 cleanup unused imports
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-05-24 15:11:20 +02:00
Christian Dietrich
a38d300cc3 code cleanup xtend warnings
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-05-24 14:52:38 +02:00
Christian Dietrich
12ff9ede5c regen with newest xtext
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-05-24 13:54:44 +02:00
Miro Spönemann
a75bac8287 Increased version number to 2.13.0-SNAPSHOT 2017-05-24 13:41:16 +02:00
Christian Dietrich
73531344c9 Fixed TracingSugarTest on Windows
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-05-21 08:55:20 +02:00
Christian Dietrich
d467c7fdbd Fixed CliWizardIntegrationTest on windows. #343
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-05-21 08:37:40 +02:00
Mikhail Mukhin
33ca000880 test fix fix
Signed-off-by: Mikhail Muhin <delred@yandex.ru>
2017-05-19 12:38:22 +03:00
Mikhail Muhin
66a57d59e5 Windows tests fix (linesep)
Signed-off-by: Mikhail Muhin <delred@yandex.ru>
2017-05-17 17:09:24 +03:00
Miro Spönemann
e9c0e220cf Don’t indent if there is no content, added another special case test 2017-05-02 09:17:59 +02:00
Miro Spönemann
3a115a7977 Fixed inconsistencies between TemplateNode and Xtend templates 2017-04-28 15:32:19 +02:00
Miro Spönemann
4345a10408 Code cleanup and comments 2017-04-28 09:25:10 +02:00
Miro Spönemann
e40329c501 Allow templates and generator nodes as input to append(Object), improved handling of indent nodes 2017-04-28 09:24:26 +02:00
Miro Spönemann
05dc198460 Fixed mismatch between IndentNode and TargetStringConcatenation wrt. indentation of the first line 2017-04-28 08:57:58 +02:00
Sven Efftinge
0cb38c5f4c [tracing] handle indent differently 2017-04-27 15:02:30 +02:00
Miro Spönemann
e1d1859709 Fixed IndexOutOfBoundsException in TemplateNode 2017-04-26 08:35:32 +02:00
Christian Dietrich
3f3a668214 Merge pull request #319 from eclipse/cd_issue219
NPE in PartialParsingHelper #219
2017-04-24 08:48:20 +02:00
Christian Dietrich
05221db4cc [508810] Referencing EStringToStringMapEntry results in compile Error in generated Abstract*SemanticSequencer
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-04-17 10:40:45 +02:00
Christian Dietrich
5bb8a27d73 added test for #219
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-04-12 13:59:26 +02:00
Christian Dietrich
b500e77119 better name conflict resolving in formatter stub. fixes #317
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-04-07 07:19:31 +02:00
Sven Efftinge
c86c7c1445 [tracing] Handle null argument in template append (fixes #314)
Signed-off-by: Sven Efftinge <sven.efftinge@typefox.io>
2017-03-31 09:24:36 +02:00
Sven Efftinge
f2017600f9 [tracing] Handle null argument in template append (fixes #314) 2017-03-31 08:52:46 +02:00
Christian Dietrich
ffad50d897 Merge pull request #307 from eclipse/cd_bug410605
[410605]  [grammar][terminal] Validate that EOF cannot be inverted
2017-03-29 09:34:59 +02:00
Christian Dietrich
6ef6a0f16f Merge pull request #305 from eclipse/cd_bug380449
[380449] Enhancements to Task Finder
2017-03-29 09:30:41 +02:00
Christian Dietrich
697fc6dc67 [380449] implemented reuse of END_TAG pattern from MUltiLineCommentProvider
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-03-28 18:21:06 +02:00
Christian Dietrich
8e303f37ec Merge pull request #306 from eclipse/cd_bug493990
[493990] Fixed Duplicate Problem in TraceRegionMerger
2017-03-28 17:31:11 +02:00
Christian Dietrich
a08820b6af update to tycho 1.0.0
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-03-27 13:34:32 +02:00
Christian Dietrich
257c2c88fc [410605] [grammar][terminal] Validate that EOF cannot be inverted
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-03-24 15:39:00 +01:00
Christian Dietrich
6919d13563 [493990] Fixed Duplicate Problem in TraceRegionMerger
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-03-24 15:28:04 +01:00
Christian Dietrich
770e6897d7 [380449] Enhancements to Task Finder
- Introduced a hook to allow stripping of the node text before calling the task parser
- Stripped trailing comment in tasks

Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-03-22 10:55:54 +01:00
Christian Dietrich
04f21fd7b3 generalized charset setting
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-03-10 14:52:55 +01:00
Sven Efftinge
250d421868 Merge pull request #288 from eclipse/se_tracing
[code gen] Added support for tracing in code generation (#287)
2017-02-28 12:45:56 +01:00
Sven Efftinge
0ac49cb58c [tracing] changes regarding moritz’ feedback (fixes #287) 2017-02-27 16:38:35 +01:00
Sven Efftinge
d909078dfd [tracing] various improvements (#287)
- fixed indentation issues
 - support newLineIfNotEmpty semantics
 - indent and newline nodes contain the actual string
 - better naming
 - documentation
2017-02-27 16:38:23 +01:00
Sven Efftinge
ac2b856e6e [tracing] rename (#287) 2017-02-27 16:38:07 +01:00
Sven Efftinge
3e96aa3939 [tracing] Improved client API (#287) 2017-02-27 16:37:57 +01:00
Sven Efftinge
cfc62dea7a [tracing] Added support for tracing in code generation (#287)
Signed-off-by: Sven Efftinge <sven.efftinge@typefox.io>
2017-02-27 16:37:43 +01:00
Christian Dietrich
a061aa6fb1 Merge remote-tracking branch 'origin/maintenance_2.11' 2017-02-27 15:57:13 +01:00
Christian Dietrich
fcce289084 [Wizard] Include .xtext file in jar created by gradle #284
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-02-22 20:16:08 +01:00
Christian Dietrich
2d6140d345 Merge pull request #281 from eclipse/cd_issue280
run test with UTF-8 always #280
2017-02-20 09:06:32 +01:00
Christian Dietrich
4c275f67f0 run test with UTF-8 always #280
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-02-17 21:32:55 +01:00
Christian Dietrich
1ff8ec6361 adaped test expectations. #222
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-02-15 13:45:16 +01:00
Christian Dietrich
a31ea419d2 Fixed Broken Launch Config. Resolves #273
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-02-06 09:11:01 +01:00
Moritz Eysholdt
923422737e fixed #238 in PolymorphicDispatcher#compare by not sorting methods
This fix prevents exceptions such as "IllegalArgumentException:
Comparison method violates its general contract" by not sorting the list
of methods at all. Since the method selection algorithm scans the
complete list of methods, the order of the list does not impact the
algorithm's outcome. 

The fix does not change the precedence of methods since the
implementation of compare(method1, method2) is kept the same.

However, this bug taught us that compare(m1, m2) is not suitable to
establish a total order among a list of methods and that 
compare(m1, m2)==0 && compare(m2, m3)==0 
does NOT imply compare(m1, m3)==0.

Example:
m1(A a), m2(B b), m3(C c), class A{}, class B{}, class C extends A{}

This observation required another change: When scanning the list of
methods for candidates, it does not suffice to compare the current
candidate with the last best candidate. Instead, it is needed to compare
the current candidate with all best candidates, because
compare(currentCandidate, lastBestCandidate)==0 does NOT imply compare()
to return 0 for the other best candidates. 

When calling compare(m1, m2) among the best candidates it is always
expected to return 0, meaning the candidates are unrelated (e.g.
independent inheritance hierarchies of their parameter types) or equal.

see https://github.com/eclipse/xtext-core/issues/238

Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-02-04 01:01:27 +01:00
Sven Efftinge
1c2b7a49f3 Merge pull request #237 from eclipse/se_reuse_resourcet
[language server / incrmental builder] allow reusing resource set
2017-02-01 12:08:19 +01:00
Miro Spönemann
eaa0a66288 [build] Increased version number to 2.11.1-SNAPSHOT 2017-02-01 11:20:39 +01:00
Miro Spönemann
0bc4eb7975 Merge branch 'release_2.11.0' 2017-01-31 13:16:13 +01:00
Moritz Eysholdt
8cbddaa4d8 fixed #265: Create pom.xml that installs Xtend Debug Info
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-01-28 15:14:07 +01:00
Christian Dietrich
b37a087fd7 load XtextValidationTest.ecore from code to avoid validation problems in workspace. fixes #47
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-01-25 12:49:51 +01:00
Miro Spönemann
8f9a5c0e27 Merge pull request #255 from eclipse/msp_issue223
Deprecated XtextGeneratorLanguage.generateXtendStubs
2017-01-19 11:09:40 +01:00
Miro Spönemann
ba911b4790 Lifted version number to 2.12.0-SNAPSHOT 2017-01-18 11:47:03 +01:00
Miro Spönemann
a8c41d7007 #223: Deprecated XtextGeneratorLanguage.generateXtendStubs 2017-01-18 10:05:35 +01:00
Moritz Eysholdt
2012ce7256 fixed #251: Formatter erroneously applies default formatting
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-01-16 20:02:07 +01:00
Lorenzo Bettini
8c4eda2e92 244: updated wizard test expectations
Task-Url: https://github.com/eclipse/xtext-core/issues/244
Signed-off-by: Lorenzo Bettini <lorenzo.bettini@gmail.com>
2017-01-16 11:10:10 +01:00
Miro Spönemann
0515d22685 Refreshed projects with Buildship 2.0 2017-01-12 10:32:06 +01:00
Miro Spönemann
9d4007a6d8 Merge pull request #234 from eclipse/msp_mwe2Workflows
Generate Xtext languages from Gradle
2017-01-12 10:06:30 +01:00
Miro Spönemann
02d3787904 Added common configuration file mwe2-workflows.gradle for generating Xtext languages from Gradle 2017-01-11 16:56:41 +01:00
Lorenzo Bettini
00a949a153 479196: use version range [2.1.1,3)
see
https://github.com/eclipse/xtext-core/pull/235#issuecomment-271882660

Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=479196
Signed-off-by: Lorenzo Bettini <lorenzo.bettini@gmail.com>
2017-01-11 15:40:49 +01:00
Lorenzo Bettini
8fca65f7ee 479196: added xtext-antlr-generator also in the build.gradle
Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=479196
Signed-off-by: Lorenzo Bettini <lorenzo.bettini@gmail.com>
2017-01-11 15:22:16 +01:00
Sven Efftinge
dd82d2ac5f [language server / incrmental builder] allow reusing resource set 2017-01-11 15:14:15 +01:00
Lorenzo Bettini
7d2675ba40 479196: AntlrToolFacade always downloads antlr-generator in Maven build
Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=479196
Signed-off-by: Lorenzo Bettini <lorenzo.bettini@gmail.com>
2017-01-11 14:11:56 +01:00
Moritz Eysholdt
066e22f507 fixed #12: [formatter] IllegalArgumentException in NodeRegion.toString()
see https://github.com/eclipse/xtext-core/issues/12

Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-01-11 10:53:08 +01:00
Moritz Eysholdt
e968946b4f [formatter/performance] Don't create stack traces
This change:
- introduces a flag that by default disables creation of stack traces
- lets the formatter do a second pass on conflict with that flag enabled

This combines the benefits of both worlds:
- performance without the need for tweaking
- debug information without the need to enable some magic config

see 
https://bugs.eclipse.org/bugs/show_bug.cgi?id=508894
https://bugs.eclipse.org/bugs/show_bug.cgi?id=507174
https://github.com/eclipse/xtext-core/pull/195

Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-01-10 17:54:44 +01:00
Moritz Eysholdt
448b025395 see #199: added comment formatter tests
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-01-10 14:45:39 +01:00
Miro Spönemann
90dea707ad Regenerated test languages in tests bundle, fixed lazy linking test language 2017-01-09 10:12:02 +01:00
Miro Spönemann
0618470051 Merge pull request #218 from eclipse/msp_crossRefSerializer
Fixed CrossReferenceSerializer regression for special proxy URI formats
2017-01-06 16:43:29 +01:00
Miro Spönemann
a0c5eacbe0 Added missing encoding settings 2017-01-06 16:20:58 +01:00
Miro Spönemann
383b65b7ad Fixed CrossReferenceSerializer regression for special proxy URI formats 2017-01-06 15:37:34 +01:00
Miro Spönemann
0e312a85c8 Fixed #215: Wrong version dependency to org.eclipse.emf.mwe2.launch generated by wizard 2017-01-03 16:52:52 +01:00
Karsten Thoms
56f1d1079e [492072] Regenerated Xtend code
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2017-01-02 14:33:55 +01:00
Karsten Thoms
55b7531d74 Merge pull request #210 from eclipse/kth_bug492072
[492072] Minimized usage of local variables
2016-12-22 14:20:40 +01:00
Christian Schneider
290b698f95 [xtext.testing + xtext.wizard] fix/improvement of build config of test projects in 'TestProjectDescriptor'
* consolidated version of 'org.junit' with our reference in 'gradle/versions.gradle' (currently 4.12)
* added dependency to 'junit:junit:4.12' with scope 'testCompile' to templates of 'pom.xml' + 'build.gradle'

Signed-off-by: Christian Schneider <christian.schneider@typefox.io>
2016-12-22 10:44:42 +01:00
Karsten Thoms
c9b7bf5af2 [492072] Minimized usage of local variables
The Xtend compiler was optimized to minimize the usage of synthetic variables for member feature calls and right-hand assignments

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2016-12-22 00:54:25 +01:00
Christian Schneider
8846f34734 [xtext.wizard] added 'org.eclipse.xtext.common.types' to dependencies of MWE executions in 'RuntimeProjectDescriptor's build file templates.
Signed-off-by: Christian Schneider <christian.schneider@typefox.io>
2016-12-20 17:48:09 +01:00
Miro Spönemann
7bceda03da Switched test project dependency created by wizard from xbase.junit to xbase.testing 2016-12-20 10:31:18 +01:00
Karsten Thoms
f2b5cdfe39 [507077] Do not emit empty concatenation
Changes to generated Xtend code due to compiler optimization

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2016-12-19 15:47:59 +01:00
Karsten Thoms
365e8b8def Merge pull request #192 from eclipse/kth/refactorings
Some minor refactorings
2016-12-12 15:02:39 +01:00
Karsten Thoms
46c09cc63a [eclipse/xtext-core#193] Added missing Override annotations
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2016-12-06 00:47:21 +01:00
Karsten Thoms
f015d7e1eb Use non-deprecated Timeout constructor
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2016-12-06 00:26:10 +01:00
Karsten Thoms
853692957f Close fileInputStream properly
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2016-12-05 23:44:43 +01:00
Karsten Thoms
ce58a244bd Removed unused imports
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2016-12-05 15:55:04 +01:00
Karsten Thoms
b4d74f732b [eclipse/xtext#1089] Regenerated xtend-gen code
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2016-12-02 16:47:33 +01:00
Karsten Thoms
08194ce996 [eclipse/xtext#1089] Replace (not)equal operators by triple (not)equals
For comparison with null the triple (not) equal operator should be used. Resolved compiler warnings

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2016-12-02 16:46:25 +01:00
Karsten Thoms
79c3eab77c [#5] Changes to .classpath generated by Buildship import
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2016-11-30 10:00:21 +01:00
Karsten Thoms
13ba597bc4 Merge branch 'master' of git@github.com:eclipse/xtext-core 2016-11-29 15:33:08 +01:00
Karsten Thoms
c4ba710623 Classpath inclusion/exclusion rules changed by buildship import
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2016-11-29 15:32:57 +01:00
Christian Dietrich
7377d51f13 Merge pull request #182 from eclipse/kth/umbrella-issue3-gradle-composite
Gradle composite
2016-11-29 11:37:19 +01:00
Christian Dietrich
dada46f859 fixed broken test
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2016-11-29 11:31:28 +01:00
Sven Efftinge
ea3c3faa6e Merge pull request #181 from kittaakos/GH_180
Fixed issue in URI based file system access when checking missing files.
2016-11-29 09:04:57 +01:00
Karsten Thoms
8c381f8d59 Gradle composite
see https://github.com/eclipse/xtext-umbrella/issues/3

Remove org.eclipse.buildship.core.prefs
Files are generated on Gradle project import or by Oomph setup

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2016-11-28 14:41:08 +01:00
Karsten Thoms
c637df9451 Gradle composite
connection.project.dir changed to composite build location in new
umbrella project
value 'containers' added by Buildship

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2016-11-25 08:49:49 +01:00
Karsten Thoms
9919a9a46e [406914] Reenabled generation of all test languages
Added Bug406914TestLanguage

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2016-11-22 08:35:04 +01:00
Karsten Thoms
7eb96d2fd6 [406914] Regenerated code for Bug301935TestLanguage
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2016-11-22 08:35:03 +01:00
Karsten Thoms
5b59e18217 [406914] Add test language
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2016-11-22 08:35:02 +01:00
Karsten Thoms
b4cf8ed1d0 [406914] Explicitly map identifiers for tab, cr and lf
The underlying ICU transliterator maps the special characters to
'Control'<code>, so these characters have to be mapped without using
ICU. Further to keep camel case of the mapped text the text is mapped
directly in toJavaIdentifierSegment.

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2016-11-22 08:35:00 +01:00
Akos Kitta
64010edcfc Fixed issue in URI based file system access when checking missing files.
A FNFE was thrown instead of returning with false.

Signed-off-by: Akos Kitta <kittaakos@gmail.com>
2016-11-21 23:04:27 +01:00
Miro Spönemann
fd48d274c1 #160: Changed test expectation to use unspecified Xtext version
Signed-off-by: Miro Spönemann <miro.spoenemann@typefox.io>
2016-10-23 19:51:52 +02:00
Miro Spönemann
2a449c744e Merge pull request #157 from eclipse/cd_issue156
[WEB][Wizard][Generator] Update JS Libary Versions. Fixed #156
2016-10-20 15:32:16 +02:00
Christian Dietrich
fd6afda9bf [WEB][Wizard][Generator] Update JS Libary Versions. Fixed #156
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2016-10-20 13:04:49 +02:00
Sven Efftinge
89733c8ab9 updated wizard to currently used gradle version 2016-10-20 09:15:37 +02:00
Miro Spönemann
e0a6217129 Removed old build files
Signed-off-by: Miro Spönemann <miro.spoenemann@typefox.io>
2016-10-18 17:05:23 +02:00
Christian Schneider
5d472b86ca [xtext validation] added checks for missing or invalid '@Override' annotations in 'XtextValidator' as desired by #121, put the issue codes to 'XtextConfigurableIssueCodes' although the severity is not configurable (yet), added a corresponding test to 'XtextValidatorTest'
Signed-off-by: Christian Schneider <christian.schneider@typefox.io>
2016-10-18 09:54:44 +02:00
Christian Schneider
eba5492719 [grammar] introduced annotations to parser, terminal, and enum rules paving the way for @Override annotations as desired by #121, updated generated + affected artifacts and tests
Signed-off-by: Christian Schneider <christian.schneider@typefox.io>
2016-10-18 09:54:44 +02:00
Miro Spönemann
986ec23fc7 Regenerated test languages
Signed-off-by: Miro Spönemann <miro.spoenemann@typefox.io>
2016-10-17 10:05:07 +02:00
Moritz Eysholdt
db03d9f7b8 [serializer/perf] produce diagnostics only on error
Don't always run the old ConcreteSyntaxValidator before serialization.
Instead, create diagnostics in the serializer only when serialization
fails.

see https://github.com/eclipse/xtext-core/issues/48

Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-10-14 12:22:40 +02:00
Moritz Eysholdt
d2bc2f52f1 [serializer/perf] don't generate events for unassigned parser rules
Because they're neither consumed by the old- nor the new formatter.
And they are not needed to generate text.

Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-10-13 19:30:55 +02:00
Miro Spönemann
44bc1f733b Regenerated test languages
Signed-off-by: Miro Spönemann <miro.spoenemann@typefox.io>
2016-10-13 15:29:31 +02:00
Miro Spönemann
e8682fbfd3 [serializer] Improved performance of bounds computation
Implemented new algorithms for computing upper and lower bounds in GrammarConstraintProvider

Signed-off-by: Miro Spönemann <miro.spoenemann@typefox.io>
2016-10-11 15:38:09 +02:00
Moritz Eysholdt
80a6f9fcf8 [serializer/performance] avoid redundant grammar analysis 2016-10-11 08:49:25 +02:00
Miro Spönemann
54b63bc0d9 Merge pull request #102 from kthoms/kth/issue101
[#101] Configure lineDelimiter in workflows
2016-10-10 08:35:17 +02:00
Moritz Eysholdt
40016bd0dd regenerated test languages
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-10-07 20:16:47 +02:00
Moritz Eysholdt
607e2cd031 regenerated test languages
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-10-07 15:26:40 +02:00
Moritz Eysholdt
127b2af797 Removed test case triggering new validation rule
The validation rule was introduced in
73fd155426

Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-10-07 15:26:40 +02:00
Karsten Thoms
9697786f3d [#101] Configure lineDelimiter in workflows
Add 'lineDelimiter' to project configuration and generate it to the
'code' configuration in the workflow.
Adjusted test expectations.


Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2016-10-07 15:07:30 +02:00
Miro Spönemann
9e579127ee Merge pull request #123 from kthoms/kth/bug502879
[502879] Streamlined plugin metadata
2016-10-07 11:34:30 +02:00
Miro Spönemann
8b795af1c8 Merge pull request #100 from kthoms/kth/bug378980_2
[378980] Refactored calls on deprecated API
2016-10-07 11:07:07 +02:00
Moritz Eysholdt
b717ec5b87 removed a System.out.println()
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-10-06 16:46:52 +02:00
Karsten Thoms
38f4122a2b [502879] Streamlined plugin metadata
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2016-09-30 17:17:31 +02:00
Sven Efftinge
7c51af4e58 [lsp] use language specific proposal acceptor, added SerializableEObjectDescriptionProvider hook 2016-09-27 01:17:00 +02:00
Moritz Eysholdt
6bbad4f142 fixed #14: [formatter2] honor FormatterRequest.allowIdentityEdits
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-09-25 23:15:59 +02:00
Moritz Eysholdt
7c7e1f88b7 fixed #97 [Formatting2/auto-wrap] never wrap preceding lines
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-09-25 22:50:45 +02:00
Lorenzo Bettini
4de451dd36 Merge pull request #104 from kthoms/kth/issue5
[#5] Ignore optional compile problems on *-gen source folders
2016-09-23 17:15:56 +02:00