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

Add support for inter model references #1301

Closed
lfasani opened this issue Jul 19, 2022 · 0 comments · Fixed by #1303
Closed

Add support for inter model references #1301

lfasani opened this issue Jul 19, 2022 · 0 comments · Fixed by #1303
Assignees
Milestone

Comments

@lfasani
Copy link
Contributor

lfasani commented Jul 19, 2022

Add support for having a scheme for resource URI used in EMFEditingContext

A valid URI must have a scheme.
Every application based on sirius-component should instantiate a resource in a ResourceSet with a valid URI otherwise some part of EMF may raise an IllegalArgumentException (URI.resolve for example)

This ticket adds support to help applications instantiate JSON resource with a common scheme

Add support to serialize necessary data for intermodel resource

The concrete type of the proxy from an object1 of resource1 to an object2 of a resource2 should be serialized so that it can correctly be resolved .

@lfasani lfasani changed the title Add support for having a scheme for resource URI used in EMFEditingContext Add support for inter model references Jul 19, 2022
@lfasani lfasani self-assigned this Jul 19, 2022
lfasani added a commit that referenced this issue Jul 21, 2022
resource

Bug: #1301
Signed-off-by: Laurent Fasani <laurent.fasani@obeo.fr>
lfasani added a commit that referenced this issue Jul 21, 2022
Bug: #1301
Signed-off-by: Laurent Fasani <laurent.fasani@obeo.fr>
lfasani added a commit that referenced this issue Jul 21, 2022
resource

Bug: #1301
Signed-off-by: Laurent Fasani <laurent.fasani@obeo.fr>
lfasani added a commit that referenced this issue Jul 21, 2022
Bug: #1301
Signed-off-by: Laurent Fasani <laurent.fasani@obeo.fr>
lfasani added a commit that referenced this issue Jul 22, 2022
resource

Bug: #1301
Signed-off-by: Laurent Fasani <laurent.fasani@obeo.fr>
lfasani added a commit that referenced this issue Jul 22, 2022
Bug: #1301
Signed-off-by: Laurent Fasani <laurent.fasani@obeo.fr>
@sbegaudeau sbegaudeau linked a pull request Jul 25, 2022 that will close this issue
@sbegaudeau sbegaudeau added this to the 2022.9.0 milestone Jul 25, 2022
lfasani added a commit that referenced this issue Aug 4, 2022
resource

Bug: #1301
Signed-off-by: Laurent Fasani <laurent.fasani@obeo.fr>
lfasani added a commit that referenced this issue Aug 4, 2022
Bug: #1301
Signed-off-by: Laurent Fasani <laurent.fasani@obeo.fr>
lfasani added a commit that referenced this issue Aug 29, 2022
resource

Bug: #1301
Signed-off-by: Laurent Fasani <laurent.fasani@obeo.fr>
lfasani added a commit that referenced this issue Aug 29, 2022
Bug: #1301
Signed-off-by: Laurent Fasani <laurent.fasani@obeo.fr>
sbegaudeau pushed a commit that referenced this issue Sep 5, 2022
…ON resource

JSON resources should now be created with the right scheme

Bug: #1301
Signed-off-by: Laurent Fasani <laurent.fasani@obeo.fr>
sbegaudeau pushed a commit that referenced this issue Sep 5, 2022
…ON resource

JSON resources should now be created with the right scheme

Bug: #1301
Signed-off-by: Laurent Fasani <laurent.fasani@obeo.fr>
@sbegaudeau sbegaudeau modified the milestones: 2022.9.0, 2022.11.0 Sep 8, 2022
lfasani added a commit that referenced this issue Sep 8, 2022
The referenced object concrete type is now serialized in JSON resource
JSON resources should now be created with the right scheme

Bug: #1301
Signed-off-by: Laurent Fasani <laurent.fasani@obeo.fr>
lfasani added a commit that referenced this issue Sep 12, 2022
The referenced object concrete type is now serialized in JSON resource
JSON resources should now be created with the right scheme

Bug: #1301
Signed-off-by: Laurent Fasani <laurent.fasani@obeo.fr>
lfasani added a commit that referenced this issue Sep 13, 2022
The referenced object concrete type is now serialized in JSON resource
JSON resources should now be created with the right scheme

Bug: #1301
Signed-off-by: Laurent Fasani <laurent.fasani@obeo.fr>
lfasani added a commit that referenced this issue Sep 13, 2022
This adapter specializes ECrossReferenceAdapter in case of deletion of
an EObject or a Resource in order to:
* clean the proxies of the inverse references
* clean the ECrossReferenceAdapter itself

Bug: #1301
Signed-off-by: Laurent Fasani <laurent.fasani@obeo.fr>
lfasani added a commit that referenced this issue Sep 13, 2022
The referenced object concrete type is now serialized in JSON resource
JSON resources should now be created with the right scheme

Bug: #1301
Signed-off-by: Laurent Fasani <laurent.fasani@obeo.fr>
lfasani added a commit that referenced this issue Sep 13, 2022
This adapter specializes ECrossReferenceAdapter in case of deletion of
an EObject or a Resource in order to:
* clean the proxies of the inverse references
* clean the ECrossReferenceAdapter itself

Bug: #1301
Signed-off-by: Laurent Fasani <laurent.fasani@obeo.fr>
lfasani added a commit that referenced this issue Sep 15, 2022
The referenced object concrete type is now serialized in JSON resource
JSON resources should now be created with the right scheme

Bug: #1301
Signed-off-by: Laurent Fasani <laurent.fasani@obeo.fr>
lfasani added a commit that referenced this issue Sep 15, 2022
This adapter specializes ECrossReferenceAdapter in case of deletion of
an EObject or a Resource in order to:
* clean the proxies of the inverse references
* clean the ECrossReferenceAdapter itself

Bug: #1301
Signed-off-by: Laurent Fasani <laurent.fasani@obeo.fr>
lfasani added a commit that referenced this issue Sep 15, 2022
This adapter specializes ECrossReferenceAdapter in case of deletion of
an EObject or a Resource in order to:
* clean the proxies of the inverse references
* clean the ECrossReferenceAdapter itself

Bug: #1301
Signed-off-by: Laurent Fasani <laurent.fasani@obeo.fr>
lfasani added a commit that referenced this issue Oct 4, 2022
The referenced object concrete type is now serialized in JSON resource
JSON resources should now be created with the right scheme

Bug: #1301
Signed-off-by: Laurent Fasani <laurent.fasani@obeo.fr>
lfasani added a commit that referenced this issue Oct 4, 2022
This adapter specializes ECrossReferenceAdapter in case of deletion of
an EObject or a Resource in order to:
* clean the proxies of the inverse references
* clean the ECrossReferenceAdapter itself

Bug: #1301
Signed-off-by: Laurent Fasani <laurent.fasani@obeo.fr>
lfasani added a commit that referenced this issue Oct 5, 2022
The referenced object concrete type is now serialized in JSON resource
JSON resources should now be created with the right scheme

Bug: #1301
Signed-off-by: Laurent Fasani <laurent.fasani@obeo.fr>
lfasani added a commit that referenced this issue Oct 5, 2022
This adapter specializes ECrossReferenceAdapter in case of deletion of
an EObject or a Resource in order to:
* clean the proxies of the inverse references
* clean the ECrossReferenceAdapter itself

Bug: #1301
Signed-off-by: Laurent Fasani <laurent.fasani@obeo.fr>
lfasani added a commit that referenced this issue Oct 5, 2022
* Use a correct URI to instantiate a JSONResource. The URI should have a
scheme "sirius"
* Only resources with "sirius" scheme are persisted and displayed in the
Explorer
* This commit also ensures that, if a specific resource factory has been
registered, it will be used to instantiate the XMI resource at download
* Forbid the upload of a single document that contains proxies. The
check is not done when uploading a project.

#1301
Signed-off-by: Laurent Fasani <laurent.fasani@obeo.fr>
lfasani added a commit that referenced this issue Oct 5, 2022
The referenced object concrete type is now serialized in JSON resource
JSON resources should now be created with the right scheme

Bug: #1301
Signed-off-by: Laurent Fasani <laurent.fasani@obeo.fr>
lfasani added a commit that referenced this issue Oct 5, 2022
This adapter specializes ECrossReferenceAdapter in case of deletion of
an EObject or a Resource in order to:
* clean the proxies of the inverse references
* clean the ECrossReferenceAdapter itself

Bug: #1301
Signed-off-by: Laurent Fasani <laurent.fasani@obeo.fr>
lfasani added a commit that referenced this issue Oct 5, 2022
* Use a correct URI to instantiate a JSONResource. The URI should have a
scheme "sirius"
* Only resources with "sirius" scheme are persisted and displayed in the
Explorer
* This commit also ensures that, if a specific resource factory has been
registered, it will be used to instantiate the XMI resource at download
* Forbid the upload of a single document that contains proxies. The
check is not done when uploading a project.

#1301
Signed-off-by: Laurent Fasani <laurent.fasani@obeo.fr>
lfasani added a commit that referenced this issue Oct 5, 2022
* Use a correct URI to instantiate a JSONResource. The URI should have a
scheme "sirius"
* Only resources with "sirius" scheme are persisted and displayed in the
Explorer
* This commit also ensures that, if a specific resource factory has been
registered, it will be used to instantiate the XMI resource at download
* Forbid the upload of a single document that contains proxies. The
check is not done when uploading a project.

#1301
Signed-off-by: Laurent Fasani <laurent.fasani@obeo.fr>
lfasani added a commit that referenced this issue Oct 5, 2022
* Use a correct URI to instantiate a JSONResource. The URI should have a
scheme "sirius"
* Only resources with "sirius" scheme are persisted and displayed in the
Explorer
* This commit also ensures that, if a specific resource factory has been
registered, it will be used to instantiate the XMI resource at download
* Forbid the upload of a single document that contains proxies. The
check is not done when uploading a project.

#1301
Signed-off-by: Laurent Fasani <laurent.fasani@obeo.fr>
lfasani added a commit that referenced this issue Oct 5, 2022
* Use a correct URI to instantiate a JSONResource. The URI should have a
scheme "sirius"
* Only resources with "sirius" scheme are persisted and displayed in the
Explorer
* This commit also ensures that, if a specific resource factory has been
registered, it will be used to instantiate the XMI resource at download
* Forbid the upload of a single document that contains proxies. The
check is not done when uploading a project.

#1301
Signed-off-by: Laurent Fasani <laurent.fasani@obeo.fr>
lfasani added a commit that referenced this issue Oct 5, 2022
* Use a correct URI to instantiate a JSONResource. The URI should have a
scheme "sirius"
* Only resources with "sirius" scheme are persisted and displayed in the
Explorer
* This commit also ensures that, if a specific resource factory has been
registered, it will be used to instantiate the XMI resource at download
* Forbid the upload of a single document that contains proxies. The
check is not done when uploading a project.

#1301
Signed-off-by: Laurent Fasani <laurent.fasani@obeo.fr>
pcdavid pushed a commit that referenced this issue Oct 5, 2022
The referenced object concrete type is now serialized in JSON resource
JSON resources should now be created with the right scheme

Bug: #1301
Signed-off-by: Laurent Fasani <laurent.fasani@obeo.fr>
pcdavid pushed a commit that referenced this issue Oct 5, 2022
This adapter specializes ECrossReferenceAdapter in case of deletion of
an EObject or a Resource in order to:
* clean the proxies of the inverse references
* clean the ECrossReferenceAdapter itself

Bug: #1301
Signed-off-by: Laurent Fasani <laurent.fasani@obeo.fr>
pcdavid pushed a commit that referenced this issue Oct 5, 2022
* Use a correct URI to instantiate a JSONResource. The URI should have a
scheme "sirius"
* Only resources with "sirius" scheme are persisted and displayed in the
Explorer
* This commit also ensures that, if a specific resource factory has been
registered, it will be used to instantiate the XMI resource at download
* Forbid the upload of a single document that contains proxies. The
check is not done when uploading a project.

#1301
Signed-off-by: Laurent Fasani <laurent.fasani@obeo.fr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants