Problem faced with Xtext when running in headless application [message #1770114] |
Tue, 08 August 2017 09:22  |
Eclipse User |
|
|
|
Hi,
I am facing an issue when running a scenario:
I am validating a xtext resource from both Eclipse UI as well as in headless.
My validation logic checks for duplicate across the projects.
When running through Eclipse UI,
JavaProjectsState container is loaded while running in headless mode, FlatResourceSetBasedAllContainersState is loaded and the container 'all' is coming as below:
[StateBasedContainer] container 'all' from org.eclipse.xtext.resource.containers.FlatResourceSetBasedAllContainersState
So duplicate issue does not come if the resource exist in indirect reference project in Eclipse UI run, as the resource is looked upon the different container.
But when running in headless, duplicate issue comes as the container is one for all direct and indirect reference projects.
Is there any way to solve the issue in headless run? Please suggest.
Thanks.
Regards
Vikas
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.28367 seconds