Commit graph

373 commits

Author SHA1 Message Date
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
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