Commit graph

2061 commits

Author SHA1 Message Date
Jan Koehnlein
9c953cfdf7 [serializer] added IDs to ISerializationDiagnostic 2011-09-01 13:35:53 +02:00
Sebastian Zarnekow
0e0de7a032 [xtext][tests] Fixed failing tests for EObject references 2011-08-30 21:43:21 +02:00
Sebastian Zarnekow
1dfcafc3df [xtext][ui] Prevent NPE in EObjectAtOffsetHelper 2011-08-30 20:43:17 +02:00
Sebastian Zarnekow
4750d71114 [xtext][linking] Fix: EObject from the registry is super type of everything
Made implementation symmetric to EMF's semantics

see also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=346035
2011-08-30 20:43:17 +02:00
Sebastian Zarnekow
5a65a6076f [xtext][generator] Allow to populate the resource set with additional resources
That can be used to populate the index.
2011-08-30 20:43:16 +02:00
Sebastian Zarnekow
35c56f7787 [xtext][tests] Fixed failing Xtext2EcoreTransformerTest
It used JvmArrayTypes to test the error messages for erroneous grammars
2011-08-28 00:03:40 +02:00
Sebastian Zarnekow
613869931e [xtext] Fix: NodeModelUtils#findActualNodeFor(EObject) returns wrong node
It did not handle cases like 
(A|B) c=C 
for C correctly

see https://bugs.eclipse.org/bugs/show_bug.cgi?id=353969
2011-08-27 15:35:05 +02:00
Jan Koehnlein
86125cdb6d [tests] Lower bound for versions of all JUnit dependencies 2011-08-26 15:30:27 +02:00
Sven Efftinge
5b71eccd99 [Xtext] added lost cast again 2011-08-26 10:41:59 +02:00
Sven Efftinge
487d7f195c [Xtend / common types] proposals for local variable names based on type names see https://bugs.eclipse.org/bugs/show_bug.cgi?id=355919 2011-08-26 09:41:18 +02:00
Sven Efftinge
4a0c4c43aa [Xtext] look up cross reference left to the offset if the node on the right is not a cross reference. see https://bugs.eclipse.org/bugs/show_bug.cgi?id=347284 2011-08-24 13:19:11 +02:00
Sebastian Zarnekow
064250dd1b [xbase][linking] Minor changes in LazyJvmFeatureScope 2011-08-22 22:44:05 +02:00
Sven Efftinge
6c916e40a4 [builder] first shot on reimplementation of generic BuilderParticipant (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=353463) 2011-08-22 16:02:36 +02:00
Sebastian Zarnekow
9b5481ff68 [xbase][scoping] Refactored feature scoping
The scopes itself have been implemented more functional
to allow caching on the level of the JvmDeclaredType
2011-08-22 15:34:10 +02:00
Sebastian Zarnekow
9cc8212d1f [xtext][naming] Minor improvements to QualifiedName#toString 2011-08-22 15:34:10 +02:00
Sebastian Zarnekow
0b254e90ab [xtext] Cosmetics: Remove unused imports 2011-08-22 15:34:09 +02:00
Moritz Eysholdt
78323c27d0 [serializer] fixed a bug in the GrammarConstraintProvider 2011-08-17 17:45:33 +02:00
Moritz Eysholdt
f8adc5cba9 [junit4/TestAsCommaSeparated] bugfixes for parsing, sorting and formatting comma-separated-lists 2011-08-17 13:28:59 +02:00
Sebastian Zarnekow
b4e350b31c [xtext][validation] Fix: Don't wrap RuntimeException in a RuntimeException
see https://bugs.eclipse.org/bugs/show_bug.cgi?id=353194
2011-08-16 23:20:54 +02:00
Sebastian Zarnekow
dc3efb6de2 [xtext][grammar] Fix: bug when combining alternatives and assigned actions
see https://bugs.eclipse.org/bugs/show_bug.cgi?id=346685
2011-08-16 22:55:11 +02:00
Sebastian Zarnekow
f358ecbf34 [xtext][grammar] Fix: Grammar's qualified name in index contains only one segment
see https://bugs.eclipse.org/bugs/show_bug.cgi?id=350695
2011-08-15 21:48:38 +02:00
Sebastian Zarnekow
c95e004cfe [xtext] Fixed type in Diagnostic.SYNTAX_DIAGNOSTIC, added Javadoc 2011-08-15 21:27:54 +02:00
Sebastian Zarnekow
2dc80a974e [xtext][ecoreInference] Make sure that the ecore inference uses the referenced EObject from the grammar to check for compatibility 2011-08-15 11:50:18 +02:00
Sven Efftinge
213305f989 [Xtext] introduced guard to check whether a lazy proxy uri points to the current resource (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=354458) 2011-08-15 11:11:37 +02:00
Moritz Eysholdt
7145647732 [serializer] use ConcreteSyntaxValidator, since it still has the better error messages 2011-08-12 20:28:11 +02:00
Moritz Eysholdt
c3b8574aac [junit/ParameterizedXtextRunner] implemented several expectation validators 2011-08-12 16:50:40 +02:00
Sebastian Zarnekow
85acfa2592 Try to make the error message on the build server more meaningful 2011-08-11 19:53:00 +02:00
Sebastian Zarnekow
20f6c28e38 [xtext][tests] Updated languages to use nsURIs instead of class path URIs 2011-08-11 15:01:59 +02:00
Sebastian Zarnekow
fca3a42aeb [xtext][validation] Guard against NPE to simplify debugging 2011-08-11 09:49:15 +02:00
Sebastian Zarnekow
5594c65ae4 [xtext][tests] two test cases had to be adapted … at least ;-) 2011-08-10 19:14:08 +02:00
Sebastian Zarnekow
7b70aed01e [xtext][grammar] Use the index to find EPackages that are imported via nsURI 2011-08-10 18:35:59 +02:00
Sebastian Zarnekow
8c4e33268d [xtext][linking] Fix: Custom scope provider implementations may break the tracking of imported names 2011-08-10 18:04:53 +02:00
Moritz Eysholdt
ae3d8b13f7 added missing dependency 2011-08-09 17:12:35 +02:00
Moritz Eysholdt
6092222762 [junit4] improved ParameterizedXtextRunner 2011-08-09 16:58:28 +02:00
Moritz Eysholdt
82ab2e44bd [utils] added Strings.wordWrap() and FormattingMigrator 2011-08-09 16:58:28 +02:00
Moritz Eysholdt
9169425906 [ParameterizedXtextRunner] inject stuff into tests hand setup/restore registries 2011-08-05 11:59:03 +02:00
Moritz Eysholdt
53764e56df removed unneeded import 2011-08-05 00:10:07 +02:00
Moritz Eysholdt
a5961f63d9 better don't adopt strings instead of doing it wrong 2011-08-04 23:51:45 +02:00
Moritz Eysholdt
5ba07073db introducing the ParameterizedXtextRunner 2011-08-04 23:27:33 +02:00
Sven Efftinge
f32aa66dd7 [Xtext] introduced isUpdating flag in XtextResource 2011-08-04 15:14:25 +02:00
Moritz Eysholdt
a2ac90c83d [xtext.junit4] moved serializer classes to xtext.junit4-package
This fixes a name collsion with the same classes from the xtext.junit-bundle/package
2011-08-04 10:54:49 +02:00
Moritz Eysholdt
4b4789bf5a [util.formallang/serializer] improvements based on suggestions from FindBugs 2011-07-31 17:59:13 +02:00
Moritz Eysholdt
c26a44f227 [serializer] fixed 352672 - strange error message for missing feature 2011-07-31 17:57:13 +02:00
Moritz Eysholdt
549586fcad regenerated test languages, xbase and xtend2 2011-07-31 17:36:50 +02:00
Moritz Eysholdt
5b18309903 no test class without test case 2011-07-31 17:30:15 +02:00
Moritz Eysholdt
5065d284e5 [serializer/tests] added newly generated serializer files 2011-07-31 17:18:31 +02:00
Moritz Eysholdt
9814770434 [serializer/tests] disabled and not supported
This test checks if a model can serialized when it has un-scopable cross
referenced. The old serializer used to delegate to the node model, take
the value from there and continue quietly. 

This behavior can lead to 
- overlooked bugs in one's scoping implementation
- mysterious usage of wrong (old) cross reference 
  values during serialization
- Models which have "successfully" been serialized but can not be
  parsed/linked again.
  
Therefore, I think it makes sense to support this mechanism as soem kind
of error recovery. However, it should at least raise a warning.
2011-07-31 17:18:31 +02:00
Moritz Eysholdt
f0585b349a [serializer/tests] this seems to work now as expected 2011-07-31 17:18:31 +02:00
Moritz Eysholdt
157efb904c [serializer/tests] fixed the formatter test 2011-07-31 17:18:31 +02:00
Moritz Eysholdt
15f6459fe7 [serializer/tests] don't use use new serializer because of bug 346695
https://bugs.eclipse.org/bugs/show_bug.cgi?id=346695
2011-07-31 17:18:31 +02:00