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

Unload resources by default when the editing context is disposed #1844

Closed
Tracked by #1927
sbegaudeau opened this issue Mar 7, 2023 · 0 comments · Fixed by #3067
Closed
Tracked by #1927

Unload resources by default when the editing context is disposed #1844

sbegaudeau opened this issue Mar 7, 2023 · 0 comments · Fixed by #3067

Comments

@sbegaudeau
Copy link
Member

In some meta-models, resources can be customized to perform some cleanup when they are unloaded, something like this could thus be added to the EditingContext to clean things up.

    @Override
    public void dispose() {
        editingDomain.getResourceSet().getResources().forEach(Resource::unload);
    }
@sbegaudeau sbegaudeau mentioned this issue Apr 13, 2023
13 tasks
@sbegaudeau sbegaudeau added this to the 2024.3.0 milestone Feb 6, 2024
@sbegaudeau sbegaudeau self-assigned this Feb 6, 2024
sbegaudeau added a commit that referenced this issue Feb 6, 2024
… is disposed

Bug: #1844
Signed-off-by: Stéphane Bégaudeau <stephane.begaudeau@obeo.fr>
sbegaudeau added a commit that referenced this issue Feb 7, 2024
… is disposed

Bug: #1844
Signed-off-by: Stéphane Bégaudeau <stephane.begaudeau@obeo.fr>
sbegaudeau added a commit that referenced this issue Feb 7, 2024
… is disposed

Bug: #1844
Signed-off-by: Stéphane Bégaudeau <stephane.begaudeau@obeo.fr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment