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

Update CodeGenUtil to enforce validation in closed models in workspace #34

Merged
merged 1 commit into from
Aug 1, 2019

Conversation

tuhin-github
Copy link
Contributor

For considering a closed resource in workspace, the second parameter of
the 'UMLModeler.getEditingDomain().getResourceSet().getResource(URI uri,
boolean loadOnDemand)' needs to be true. This method is called twice to
keep track of the 'closed/opened' status of the resource before doing
the validation. This allows us to avoid making any changes in the status
of the resource because of applying the validation. Also, precautions
have been taken to avoid any nonexistent uri passed in the validateModel
method.

For considering a closed resource in workspace, the second parameter of
the 'UMLModeler.getEditingDomain().getResourceSet().getResource(URI uri,
boolean loadOnDemand)' needs to be true. This method is called twice to
keep track of the 'closed/opened' status of the resource before doing
the validation. This allows us to avoid making any changes in the status
of the resource because of applying the validation. Also, precautions
have been taken to avoid any nonexistent uri passed in the validateModel
method.
Copy link
Collaborator

@elder4p elder4p left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good. Thank you.

@elder4p elder4p merged commit 2bf70c2 into ZeligsoftDev:master Aug 1, 2019
@elder4p
Copy link
Collaborator

elder4p commented Aug 1, 2019

This pull request addresses the failure of CodeGenUtil to open closed models, issue #23.

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

Successfully merging this pull request may close these issues.

None yet

2 participants