Commit graph

371 commits

Author SHA1 Message Date
Titouan Vervack
e1075671f1 Optimized (de)serialization code
* Added cache to grammarIdToURIMap for deserialization
* Prevent conversion from list to map in serialization
* Prevent conversion from map to string array in serialization

Signed-off-by: Titouan Vervack <titouan.vervack@sigasi.com>
2019-06-25 16:47:23 +02:00
Nico Prediger
c9a07291d8 [eclipse/xtext#1474] Prepare Master for 2.19
Signed-off-by: Nico Prediger <mail@nicoprediger.de>
2019-06-03 14:02:18 +02:00
Sebastian Zarnekow
4450b57242 Improved performance of validation for keyword heavy languages 2019-05-14 15:48:59 +02:00
Arne Deutsch
23e73a25d4 [eclipse/xtext#1440] Update to ASM 7.1.0.
Signed-off-by: Arne Deutsch <Arne.Deutsch@itemis.de>
2019-05-02 13:09:19 +02:00
Sebastian Zarnekow
d5d8ffd965 [#748] Remove caliper benchmarks 2019-04-15 19:58:03 +02:00
Christian Dietrich
540b8ecc86
Merge pull request #1123 from lievenlemiengre/nodemodelbuilder
Performance improvement of array interning in NodeModelBuilder
2019-04-15 09:05:21 +02:00
Jan Koehnlein
7ebd587d0c [lsp] some build performance tuning
When a resource is loaded for the first time, there is no need to unload it between pre-indexing and build
2019-04-12 10:05:01 +02:00
Lieven Lemiengre
20a09fc980 Performance improvement of array interning in NodeModelBuilder
Signed-off-by: Lieven Lemiengre <lieven.lemiengre@sigasi.com>
2019-04-11 21:56:55 +02:00
Holger Schill
fe96a20cf9 Remove IDEA since the support has been dropped.
Signed-off-by: Holger Schill <Holger.Schill@itemis.de>
2019-04-02 08:48:56 +02:00
Dennis Huebner
312e236ec3
Merge pull request #1044 from eclipse/dh-serializer
[ide] Bogus serialization when reassign container #1043
2019-03-18 15:35:55 +01:00
Christian Dietrich
51977631e7 added missing getter/setter for operationCanceledManager
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2019-03-17 15:53:28 +01:00
Karsten Thoms
6c0d14bdf8 Cleanup WS formatting in package org.eclipse.xtext.build
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2019-03-13 21:41:54 +01:00
Christian Dietrich
f8708cefd5 [eclipse/xtext#1414] prepared master for version 2.18.0
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2019-03-05 16:47:14 +01:00
Sebastian Zarnekow
92a3fc77b0 Added x-friend to xtext.xtext.ui.tests 2019-02-26 18:49:08 +01:00
Sebastian Zarnekow
edeb506431 Make injection of the CompositeEValidator work 2019-02-26 18:29:10 +01:00
Dennis Huebner
e807fecdbe [ide] Bogus serialization when reassign container #1043
Signed-off-by: Dennis Huebner <dennis.huebner@gmail.com>
2019-02-21 09:03:07 +01:00
Sebastian Zarnekow
787ef1d8bd
Merge pull request #1033 from epoell/ep_issue1021
Replaced ThreadLocal state.set(null) with state.remove() in AbstractDeclarativeValidator
2019-02-20 10:58:22 +01:00
Eva Poell
a5bcb66f26 [#1034] corrected code formatting
Signed-off-by: Eva Poell <epoell@itemis.com>
2019-02-19 16:12:46 +01:00
Eva Poell
673a7ee1d8 [#1034] Added Validation that entry rule is not a fragment
Signed-off-by: Eva Poell <epoell@itemis.com>
2019-02-19 09:01:42 +01:00
Eva Poell
084ac859fd Solve Issue 1021
Replaced ThreadLocal state.set(null) with state.remove(). And tried to decrement the calls of state.get() by keeping it in a variable if possible.
Might need a closer look, if this works.

Signed-off-by: Eva Poell <epoell@itemis.com>
2019-02-14 09:42:10 +01:00
Sebastian Zarnekow
53756198b2
Merge pull request #1030 from eclipse/kt_findInstantiableCompatible
[performance] Improve isInstantiatableSubType
2019-02-11 22:25:04 +01:00
Karsten Thoms
e00313cff2 [performance] Short cut findInstantiableCompatible
Avoid calling isInstantiatableSubType to reduce number of conditions to
check until identity is checked.

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2019-02-11 21:12:34 +01:00
Karsten Thoms
bf0546ba3b isAssignableFrom: check both args for null & identity
Added covering test case

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2019-02-11 21:08:32 +01:00
Sebastian Zarnekow
e34bcf8a71
Merge pull request #1024 from eclipse/sz_classpath
Make bin/main also the default output directory to avoid buildship confusion
2019-02-11 08:49:30 +01:00
Christian Dietrich
dfe72b83c0 fixed some javadocs
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2019-02-10 22:25:11 +01:00
Sebastian Zarnekow
09c3ceac85 Make bin/main also the default output directory to avoid buildship confusion 2019-02-10 14:55:03 +01:00
Karsten Thoms
98a17c35da [eclipse/xtext#1274] Updated .classpath by Gradle
Changes done by Buildship 3.0.1.v20181217-1554

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2019-02-07 17:03:45 +01:00
Sebastian Zarnekow
64e0edcb76 Bootstrap Xtext 2019-02-05 14:21:50 +01:00
Karsten Thoms
929b393e75 [#985] Make exception handling for validation code customizable
Added AbstractDeclarativeValidator#handleExceptionDuringValidation to
allow overriding of the default exception handling behavior. Clients
especially may want to propagate or handle NPEs more decent than just
swallowing it.

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2019-02-05 10:04:34 +01:00
Sebastian Zarnekow
f665cfa984
Merge pull request #984 from eclipse/kth_issue983
[#983] Make issue message customizable
2019-02-04 11:19:22 +01:00
Christian Dietrich
175d7bc975 set minimal mwe version to the one from oxygen
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2019-02-01 10:39:20 +01:00
qdagans
703bd62f09 427770: Improve ResourceSetBasedAllContainersStateProvider.getResourceSet
Short:
    Implement solution mentioned in above BUG report.

Longer:
    Bug (?) can be triggered by e.g.:

    IResourceServiceProvider sp = IResourceServiceProvider.Registry.INSTANCE.getResourceServiceProvider(fileUri);
    IResourceSetProvider provider = sp.get(IResourceSetProvider.class);
    IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
    // ... file etc
    IProject project = file.getProject();
    // Use the provider to get the resource set for the given project
    // FIXME how to get the existing XtextResourceSet? Below just creates a new rs. :-(
    ResourceSet rs = provider.get(project);
    // ... run build to generate index used by namespace etc
    BuildRequest request = new BuildRequest();
    request.setResourceSet(rs);
    request.setBaseDir(UriUtil.createFolderURI(new File(baseDir)));
    request.setDirtyFiles(allFiles);
    // ... copy paste code ...
    indexState = incrementalBuilder.build(request, languages).getIndexState();

    Hints for doing this correctly/cleaner is highly appreciated!

    After the code above has been triggered doing a Project Clean will
    trigger method from title to be called with a CurrentDescriptions.

Note that this commit goes together with a commit in xtext-eclipse (see
fork).

Signed-off-by: Anders Dahlberg <anders.xb.dahlberg@ericsson.com>
2019-01-24 16:45:47 +01:00
Sebastian Zarnekow
ecc7ae0bc3
[eclipse/xtext#1249] use bom for version management (#988) 2019-01-11 16:41:50 +01:00
Karsten Thoms
666779139d [#983] Make exception based diagnostic creation customizable
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2018-12-18 07:41:04 +01:00
Christian Dietrich
1b4f6c78a4 change version 2.16.0 -> 2.17.0
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-12-05 09:48:47 +01:00
Dennis Huebner
9a2696a017 Fixed typo
Signed-off-by: Dennis Huebner <dennis.huebner@gmail.com>
2018-11-21 13:21:05 +01:00
Dennis Huebner
28d7c94ed5 [trace] Improved implementation for GeneratorNodeProcessor.Context
Signed-off-by: Dennis Huebner <dennis.huebner@gmail.com>
2018-11-21 11:48:19 +01:00
Karsten Thoms
4b10068a79 [eclipse/xtext-eclipse#900] Use org.eclipse.xtend.typesystem.emf version
2.2.0

Use latest from Oxygen TP

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2018-11-18 22:07:17 +01:00
Karsten Thoms
e6bd78ae7f
Merge pull request #963 from eclipse/kth_issue1168
[eclipse/xtext#1168] Minimal target platform Oxygen.3a
2018-11-17 09:59:45 +01:00
Karsten Thoms
37172c68dd [eclipse/xtext#1168] Minimal target platform Oxygen.3a
Update lower bound version constraints on platform related bundles with
versions from an Oxygen.3a platform.

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2018-11-14 17:27:50 +01:00
Karsten Thoms
6b522695c1 [#959] hasAnnotation: Add null guard
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2018-11-14 04:43:51 +01:00
Karsten Thoms
34c8c53468 Revert last commit
Accidently pushed to master instead to bugfix branch

Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2018-11-14 04:40:49 +01:00
Karsten Thoms
8e53832b18 [#959] hasAnnotation: Add null guard
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2018-11-14 04:36:54 +01:00
Sebastian Zarnekow
e8850a77ec Cleanup some warnings 2018-11-09 15:59:28 +01:00
Sebastian Zarnekow
5ddfcadce9 Improved JavaStringConverter after heavy benchmark session 2018-11-09 11:14:32 +01:00
Sebastian Zarnekow
fa00a330ac Base the STRINGValueConverter on the reusable new JavaStringConverter 2018-11-09 11:14:32 +01:00
Tamas Miklossy
50b0c5b3a9 Refactoring the JavaDoc Reference Support.
- Add the computeEObjectReferencedInComment(XtextResource,
int) method to the IJavaDocTypeReferenceProvider interface.
- Add implementation to the MultiLineJavaDocTypeReferenceProvider class.

See also https://github.com/eclipse/xtext-xtend/issues/372

Signed-off-by: Tamas Miklossy <miklossy@itemis.de>
2018-11-08 19:07:57 +01:00
Christian Dietrich
4af6181d2e review feedback
- indentation
- make counter limit protected

Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-11-07 12:40:21 +01:00
Christian Dietrich
b75cdd0970 [#844] Performance optimization for lazy linking cycle detection
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-11-05 11:51:53 +01:00
Christian Dietrich
9515372b39 [eclipse/xtext#1325] switch to ASM 7
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-10-31 12:51:25 +01:00