Diagrams based on multiple/shared resource [message #1695279] |
Wed, 13 May 2015 05:33  |
Eclipse User |
|
|
|
My current representation is created using a "main" file that uses other files. These files are defined in the main file as "import". When the representation is created i programmatically add these files using Session.addSemanticResource.
Currently when someone adds an import after the creation the session resources does not get updated.
Also In the same session there might be a different representation with the same import.
My question: How do i correctly update the resources of the session?
A trick could be to add the import to the representation but never draw them, this will give the opportunity to call Session.addSemanticResource if the resouce/file was not already added.
But then when deleting a resource from the session i will have to check all representations within the session to check if the resource is used by any representation, this seems kinda heavy on the workload.
Maybe i can point sirius to a method where it described which resources/files are used for a representation.
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05946 seconds