Bug 563117 - Copy format to existing/new diagram based on source to target semantic elements mapping
Summary: Copy format to existing/new diagram based on source to target semantic elemen...
Status: CLOSED FIXED
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: 6.3.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 6.4.0   Edit
Assignee: Arnaud Dieumegard CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2020-05-13 03:56 EDT by Arnaud Dieumegard CLA
Modified: 2021-02-19 12:45 EST (History)
4 users (show)

See Also:


Attachments
Patch to make it possible to test the API (18.11 KB, patch)
2021-02-08 03:42 EST, Florian Barbin CLA
no flags Details | Diff
Patch to make it possible to test the API - v2 (19.22 KB, application/octet-stream)
2021-02-12 04:06 EST, Laurent Redor CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arnaud Dieumegard CLA 2020-05-13 03:56:08 EDT
Provide an API for the copy of a diagram format to either an existing or a new diagram.

Copy formating only on elements present in a provided source to target object mapping.

Such API shall:
- work on any DDiagram representations
- optionnaly copy notes
- do background work (do not open the diagrams in an editor)
Comment 1 Eclipse Genie CLA 2020-05-20 04:55:48 EDT
New Gerrit change created: https://git.eclipse.org/r/163300
Comment 2 Eclipse Genie CLA 2020-05-20 04:55:51 EDT
New Gerrit change created: https://git.eclipse.org/r/163301
Comment 3 Eclipse Genie CLA 2020-05-29 11:03:44 EDT
New Gerrit change created: https://git.eclipse.org/r/163848
Comment 4 Maxime Porhel CLA 2020-06-10 13:31:21 EDT
This enhancement will be added to the next version. 
Steps to validate will be provided later.
Comment 5 Eclipse Genie CLA 2020-08-27 08:36:01 EDT
New Gerrit change created: https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/168310
Comment 6 Eclipse Genie CLA 2020-08-27 08:36:03 EDT
New Gerrit change created: https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/168309
Comment 7 Eclipse Genie CLA 2020-08-31 03:43:21 EDT
New Gerrit change created: https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/168455
Comment 8 Eclipse Genie CLA 2020-08-31 03:43:23 EDT
New Gerrit change created: https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/168457
Comment 9 Eclipse Genie CLA 2020-08-31 03:43:25 EDT
New Gerrit change created: https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/168456
Comment 10 Eclipse Genie CLA 2020-09-17 05:52:48 EDT
New Gerrit change created: https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/169507
Comment 11 Eclipse Genie CLA 2020-09-17 05:52:49 EDT
New Gerrit change created: https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/169508
Comment 12 Eclipse Genie CLA 2020-10-23 04:52:48 EDT
New Gerrit change created: https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/171168
Comment 13 Eclipse Genie CLA 2020-10-29 11:58:57 EDT
New Gerrit change created: https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/171455
Comment 25 Eclipse Genie CLA 2020-10-30 13:23:02 EDT
New Gerrit change created: https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/171522
Comment 26 Eclipse Genie CLA 2020-11-03 06:08:37 EST
New Gerrit change created: https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/171674
Comment 27 Eclipse Genie CLA 2020-11-05 09:10:31 EST
New Gerrit change created: https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/171812
Comment 28 Eclipse Genie CLA 2020-11-05 09:10:33 EST
New Gerrit change created: https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/171813
Comment 31 Pierre-Charles David CLA 2020-12-04 04:23:16 EST
Available in Sirius 6.4.0, see https://download.eclipse.org/sirius/updates/releases/6.4.0/ for details.
Comment 34 Eclipse Genie CLA 2020-12-11 09:25:41 EST
New Gerrit change created: https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/173702
Comment 36 Eclipse Genie CLA 2021-01-20 04:08:58 EST
New Gerrit change created: https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/175084
Comment 37 Florian Barbin CLA 2021-02-08 03:42:40 EST
Created attachment 285474 [details]
Patch to make it possible to test the API

To test this new API in your development environment:

Apply the attached patch.
Launch a runtime
Copy the source project (this patch works with a source and target model with the same hierarchy)
Create a new representation in your source project (this patch is very simple, it just copies the first encountered representation)
Right-click in the model explorer on the root element > "Copy Rep"
In the target project (the copy from the source one), right-click on the root > "past rep"
You should have a new diagram created
Comment 38 Laurent Redor CLA 2021-02-12 04:06:37 EST
Created attachment 285532 [details]
Patch to make it possible to test the API - v2

570524-Patch to test the API.patch : A new version of the patch added by Florian in comment 37. It is now possible to paste in an existing representation. This patch is used to validate bug 570524.
Comment 39 Eclipse Genie CLA 2021-02-12 04:27:57 EST
New Gerrit change created: https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/176176
Comment 41 Eclipse Genie CLA 2021-02-19 08:47:12 EST
New Gerrit change created: https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/176522
Comment 43 Eclipse Genie CLA 2021-02-19 09:17:22 EST
New Gerrit change created: https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/176530