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

Any element creation should set its containing resource as non imported #909

Open
gdaniel opened this issue Dec 18, 2024 · 0 comments
Open

Comments

@gdaniel
Copy link
Contributor

gdaniel commented Dec 18, 2024

In #907 we ensure that creating an element from the New object tool in the explorer sets its containing resource as not imported.
This should be extended to any ways SysON provides to create elements, not the New object tool only. For example, this should be extended to tools in diagrams that create elements.

A possible way to do this is to update the SysONEContentAdapter to remove the imported flag when a new element is added in a resource. This implies to have the capability to disable this feature when loading resources, and when importing new resources via the Upload tool.
The former is already possible thanks to IEditingContextProcessor#preProcess() and IEditingContextProcessor#postProcess(), but Sirius Web doesn't provides these hooks when uploading a model, which are required to support the latter.

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

1 participant