Commit graph

190 commits

Author SHA1 Message Date
Karsten Thoms
089faaa24e Added null guard for result of listFiles
According to contract of File.listFiles() the result can be null if an
I/O error occurred.

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2017-07-14 10:18:12 +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
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
Miro Spönemann
a75bac8287 Increased version number to 2.13.0-SNAPSHOT 2017-05-24 13:41:16 +02:00
Christian Dietrich
69e1ff82ff Increased guava version to include version 21. https://github.com/eclipse/xtext-lib/issues/30
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-05-17 15:08:53 +02:00
Christian Dietrich
8354a3b7d4 Introduce Nullable Annotation to allow Null-Injections with google guice. see https://github.com/eclipse/xtext-eclipse/issues/153 for details
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-02-14 10:04:18 +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
Miro Spönemann
ba911b4790 Lifted version number to 2.12.0-SNAPSHOT 2017-01-18 11:47:03 +01:00
Miro Spönemann
0515d22685 Refreshed projects with Buildship 2.0 2017-01-12 10:32:06 +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
9eb9ad3345 479196: get antlr-generator version using a method
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:24:46 +01:00
Karsten Thoms
838b32c429 [#212] Refactored to avoid JDT 508834
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2017-01-06 13:41:40 +01:00
Karsten Thoms
89fc6af674 Added @SafeVarargs annotation for methods with varargs
Suppress compiler warning

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2017-01-05 07:16:44 +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
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
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
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
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
Miro Spönemann
e71f62da79 Fixed #160: Gradle build generates Maven-Version attribute
Signed-off-by: Miro Spönemann <miro.spoenemann@typefox.io>
2016-10-23 19:39:43 +02:00
Miro Spönemann
b92f63bc54 eclipse/xtext#1080: Add name and description to generated poms
Signed-off-by: Miro Spönemann <miro.spoenemann@typefox.io>
2016-10-23 13:36:04 +02:00
Christian Dietrich
46e8c454d9 readded plugin.properties. fixes #154
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2016-10-20 08:55:27 +02:00
Miro Spönemann
6e9931dfaa #143: Added ExecutorServiceProvider for better handling of executor instances
Signed-off-by: Miro Spönemann <miro.spoenemann@typefox.io>
2016-10-17 09:45:47 +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
Moritz Eysholdt
bff7b4ec65 [serializer/perf] avoid redundant calls to .distanceToFinalStateMap()
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-10-13 19:30:55 +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
37072866dc [serializer/performance] make identity string computation faster 2016-10-11 13:54:46 +02:00
Karsten Thoms
9b0947fe62 [format] Streamlined whitespaces
Consistent use of tabs instead of spaces
Use single whitespace between brackets

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2016-09-14 16:00:10 +02:00
Karsten Thoms
36ec5d1e24 [378980] Make line delimiter for Manifest configurable by CodeConfig
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2016-09-12 14:04:13 +02:00
Moritz Eysholdt
c667a546b4 [MANIFEST.MF-cleanup] splitting lines should also work on UNIX newlines
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-07-29 13:59:01 +02:00
Christian Dietrich
acd1e60ab4 improved uri handling on windows. fixes #49
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2016-07-25 12:19:50 +02:00
Miro Spönemann
950eb8ae74 Removed old Gradle integration prefs 2016-07-07 11:22:13 +02:00
Miro Spönemann
decf9b22aa Checked in project metadata based on Buildship 2016-07-07 10:19:04 +02:00
Miro Spönemann
0bc7f1fd20 Remove redundant .gitignore rules 2016-06-14 15:31:26 +02:00
Miro Spönemann
e1a4782403 Generated code 2016-06-14 09:45:31 +02:00
Miro Spönemann
96edcf48ae Removed buildship.core.prefs 2016-06-14 09:44:34 +02:00
Miro Spönemann
4270986cba Moved projects to root of repository 2016-06-14 08:30:25 +02:00