Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically validate project when the ALE environment changes #183

Open
echebbi opened this issue Jul 7, 2020 · 1 comment
Open

Automatically validate project when the ALE environment changes #183

echebbi opened this issue Jul 7, 2020 · 1 comment

Comments

@echebbi
Copy link
Collaborator

echebbi commented Jul 7, 2020

Motivation

Validators are only triggered when making changes in the editor. However, adding/removing source files or metamodels from the preferences/.dsl should also trigger new validations.

Proposed Solution

Detect when the ALE environment changes and programmatically trigger a new Xtext validation every time.

Proposed Implementation

Not sure about the best implementation; I see two possibilities:

  • use a couple resource/preferences listeners
  • use a project builder.
@dvojtise
Copy link
Contributor

dvojtise commented Jul 24, 2020

I usually like to have a project nature with project builder, they are quite easy to implement and as a user it is also easy to add/remove the nature on a given project (for example in order to add ale nature to an ecore modelling project when adding ale file in it),
It is also convenient for a user to do a "clean all" in order to launch all validations and compilations (a couple of resource/preference listener doesn't allow that)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants