Commit graph

6467 commits

Author SHA1 Message Date
Arne Deutsch
c98df4f7bc [eclipse/xtext-eclipse#599] Fix review findings.
Change field names to 'projectWizard' and 'fileWizard'.

Document MWE entities.

Deprecate SimpleProjectWizardFragment2.

Add @Beta annotations.

Update copyright comments.

Signed-off-by: Arne Deutsch <Arne.Deutsch@itemis.de>
2018-04-11 10:17:36 +02:00
Christian Dietrich
0937007ba9
Merge pull request #691 from ArneDeutsch/xtext-eclipse-599
Xtext eclipse 599
2018-04-10 09:10:43 +02:00
Christian Dietrich
fbd3d85a55
Merge pull request #693 from ArneDeutsch/xtext-core-686
[eclipse/xtext-core#686] Update new project wizard.
2018-04-09 15:33:40 +02:00
Arne Deutsch
179757480d [eclipse/xtext-core#686] Update new project wizard.
Remove IDEA from the new project wizard. IDE plugins are not well
maintained any more, no need to bother new users with not working stuff.

Set version of xtext-gradle-plugin to 1.0.21.

Update test projects according to removed IDEA support.

Signed-off-by: Arne Deutsch <Arne.Deutsch@itemis.de>
2018-04-09 15:19:01 +02:00
Moritz Eysholdt
5804e8b6bc Fix eclipse/xtext-xtend#408: Allow mismatching node model
Because quick fixes change the model and can cause any kind of mismatch

Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2018-04-05 17:10:21 +02:00
Arne Deutsch
503e1c7843 Merge branch 'master' of git@github.com:eclipse/xtext-core.git into xtext-eclipse-599 2018-04-04 14:20:34 +02:00
Arne Deutsch
b92affb486 [eclipse/xtext-eclipse#599] Adding fragment for new file wizard.
Signed-off-by: Arne Deutsch <Arne.Deutsch@itemis.de>
2018-04-04 14:16:36 +02:00
Christian Dietrich
6d9b64646e
Merge pull request #690 from AlexTugarev/at/fix-ValidatorFragment2
[validation] fix error in ValidatorFragment2
2018-04-04 11:51:10 +02:00
Alex Tugarev
fa8e8b2b26 fix error in ValidatorFragment2
Signed-off-by: Alex Tugarev <alex.tugarev@typefox.io>
2018-04-04 11:30:45 +02:00
Holger Schill
1f17d49554
Merge pull request #688 from AlexTugarev/at/fix-issue-code-provider
[validation] fix generation of issue code provider
Thanks Alex
2018-04-03 10:06:43 +02:00
Alex Tugarev
d81b59d636 [validation] fix generation of issue code provider
use grammar info instead of `MyDsl`.

cf. https://github.com/eclipse/xtext-core/pull/680

Signed-off-by: Alex Tugarev <alex.tugarev@typefox.io>
2018-04-03 08:39:14 +02:00
Christian Dietrich
20d549f870
Merge pull request #684 from miklossy/master
[NONE] Fix Typo in AbstractGeneratorFragmentTests.xtend file.
2018-03-30 13:13:22 +02:00
Tamas Miklossy
063dcdcfd4 [NONE] Fix Typo in AbstractGeneratorFragmentTests.xtend file.
- Avoid double assignment of the globalStateMemento field.

Signed-off-by: Tamas Miklossy <miklossy@itemis.de>
2018-03-30 13:00:21 +02:00
Christian Dietrich
e2abd056e8
Merge pull request #683 from tivervac/guava_throwables_throw_kw
Added throw keyword to Throwables.propagate
2018-03-30 12:33:05 +02:00
Titouan Vervack
4f702ddc7a Added throw keyword to Throwables.propagate
Signed-off-by: Titouan Vervack <titouan.vervack@sigasi.com>
2018-03-30 11:58:41 +02:00
Christian Dietrich
879016d8cb
Merge pull request #681 from tivervac/warnings
Fixed warnings
2018-03-29 18:27:38 +02:00
Titouan Vervack
57af220521 Fixed guava compatibility issue
Signed-off-by: Titouan Vervack <titouan.vervack@sigasi.com>
2018-03-29 18:26:41 +02:00
Titouan Vervack
0ea85189c8 Fixed warnings
Signed-off-by: Titouan Vervack <titouan.vervack@sigasi.com>
2018-03-29 18:18:18 +02:00
Titouan Vervack
b76f97ad24 Added null- and exception-safe variants of (priority)readOnly and modify
Also added I[Read|Write]Access where applicable

Signed-off-by: Titouan Vervack <titouan.vervack@sigasi.com>
2018-03-29 17:58:21 +02:00
Christian Dietrich
6e23809dee reduced warnings
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-03-29 14:36:26 +02:00
Holger Schill
e75a44c254
Merge pull request #680 from eclipse/hs/ValidationFragment2_configurableIssue
Hs/validation fragment2 configurable issue
2018-03-29 13:12:15 +02:00
Holger Schill
2e99cff76d #664 [Grammar] Add Support for more Annotations
Signed-off-by: Holger Schill <Holger.Schill@itemis.de>
2018-03-29 11:14:39 +02:00
Christian Dietrich
76053c6136
Merge pull request #678 from miklossy/master
[479833] Formatter2Fragment2 stub improvements.
2018-03-28 19:01:43 +02:00
Christian Dietrich
14fd588a2d
Merge pull request #679 from tivervac/redundant_modifier
Removed redundant modifiers
2018-03-28 18:57:08 +02:00
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
1f61d373c9
Merge pull request #674 from eclipse/cd_core_issue_517
[eclipse/xtext-core#517] Moved Class File Constant Calculation to JavaVersion Enum
2018-03-28 06:28:29 +02:00
Christian Dietrich
a88b42e0c0
Merge pull request #676 from ArneDeutsch/xtext-core-616
Xtext core 616
2018-03-27 20:48:30 +02:00
Arne Deutsch
89baed80ba [eclipse/xtext-eclipse#616] Reverse of empty is empty again, not null.
Signed-off-by: Arne Deutsch <Arne.Deutsch@itemis.de>
2018-03-27 15:33:12 +02:00
Arne Deutsch
534e31d90e [eclipse/xtext-eclipse#616] Use more efficient algorithm.
Do a depth first traversal the node model in reversed direction and stop
at the first found node before the current offset with specific
properties. This way complete composite nodes can be skipped. This
changes the algorithm complexity from n to log(n) in most cases
(degenerated case ... flat node model).

Signed-off-by: Arne Deutsch <Arne.Deutsch@itemis.de>
2018-03-27 13:58:16 +02:00
Christian Dietrich
d96626e1d8 regen with xtext 2.14
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-03-27 13:51:27 +02:00
Christian Dietrich
a0ab4b290b [eclipse/xtext-core#517] Moved Class File Constant Calculation to JavaVersion Enum
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-03-27 13:37:26 +02:00
Christian Dietrich
63a0a012ea
Merge pull request #668 from eclipse/cd_issue665
[#665] LanguageServerImpl.getAllLanguages returns duplicate results if a language supports several extensions
2018-03-27 08:19:04 +02:00
Jan Koehnlein
1009dd3c44
Merge pull request #673 from eclipse/jk/indentation
[formating] use indentation information
2018-03-27 08:11:44 +02:00
Christian Dietrich
80d27192d5 Fixed unused imports
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-03-27 07:50:29 +02:00
Jan Koehnlein
a5fba99cd4 [formating] use indentation information
Signed-off-by: Jan Koehnlein <jan.koehnlein@typefox.io>
2018-03-26 21:35:31 +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
Christian Dietrich
07533ea2a1
Merge pull request #672 from eclipse/hs/664_grammarannotations
Hs/664 grammarannotations
2018-03-26 19:24:43 +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
2af21460ea Add javaDoc to new Fragments 2018-03-26 17:44:02 +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