Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 571304

Summary: The format of the label on border in sequence diagram are not copied with API to copy/paste format
Product: [Modeling] Sirius Reporter: Laurent Redor <laurent.redor>
Component: DiagramAssignee: Laurent Redor <laurent.redor>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: glenn.plouhinec, pierre-charles.david
Version: 6.4.0   
Target Milestone: 6.4.2   
Hardware: PC   
OS: Windows 10   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=563117
https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/176471
https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/176507
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=0e4b2362e18f6729ad676ec1e1ad6d7ffeea6bd9
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=ef4b9cbabd57e37d8a83851ff550d72db6512389
Whiteboard:
Bug Depends on:    
Bug Blocks: 571361    
Attachments:
Description Flags
SourceAndTargetProjects-571304.zip
none
Error log when opening a representation.
none
SourceAndTargetProjects-571304.zip (updated according to bug 571361 comment 7) none

Description Laurent Redor CLA 2021-02-18 11:06:09 EST
The API added in bug 563117 does not cover the case of label on border in sequence diagram.
Comment 1 Laurent Redor CLA 2021-02-18 11:12:35 EST
Created attachment 285599 [details]
SourceAndTargetProjects-571304.zip

Steps to reproduce (similar to bug 571249 as this problem has been discovered during it) (only in developement env or at least with source of org.eclipse.ui and org.eclipse.diagram.ui in your workspace):
* Apply the patch of bugzilla [563117](https://bugs.eclipse.org/bugs/show_bug.cgi?id=563117)
* Launch a runtime
* Import projects from SourceAndTargetProjects-571304.zip
* Expand /SourceOfCopy/fixture.interactions/Model Various.../Interaction Basic Executions
* Open diagram "SourceDiagram"
    * The label "MyManualLabel" has been added manually directly in aird file because in "Interaction" sample there is no label on border by default.
* Expand /TargetOfCopy/fixture.interactions/Model Various.../Interaction Basic Executions
* Open diagram "TargetDiagram"
* Launch the action "Copy Rep" on "Interaction Basic Executions" of SourceOfCopy project (action from contextual menu)
* Launch the action "Paste Rep" on "Interaction Basic Executions" of TargetOfCopy project (action from contextual menu)
* Expected: The existing diagram "TargetDiagram" has been updated. The layout is the same than "SourceDiagram"
* Current behavior/result : The label "MyManualLabel" is not correctly located.
Comment 2 Eclipse Genie CLA 2021-02-18 11:18:47 EST
New Gerrit change created: https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/176471
Comment 3 Eclipse Genie CLA 2021-02-19 04:47:22 EST
New Gerrit change created: https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/176507
Comment 6 Glenn Plouhinec CLA 2021-03-05 10:35:29 EST
Created attachment 285743 [details]
Error log when opening a representation.

I can' t open or manipulate a representation of the attached projects. See 571304-open_representation.log
Comment 7 Laurent Redor CLA 2021-03-05 17:09:23 EST
(In reply to Glenn Plouhinec from comment #6)
> Created attachment 285743 [details]
> Error log when opening a representation.
> 
> I can' t open or manipulate a representation of the attached projects. See
> 571304-open_representation.log

I think that this problem is linked with the patch application on several projects imported in the workspace. For this issue, I think that you should use a development environment or import "all projects".
Comment 8 Glenn Plouhinec CLA 2021-03-08 06:16:09 EST
You're right, I finally imported all the necessary packages and I didn't have this problem anymore.

Validated with Sirius 6.4.2.
Comment 9 Pierre-Charles David CLA 2021-03-18 04:44:16 EDT
Available in Sirius 6.4.2: http://download.eclipse.org/sirius/updates/releases/6.4.2
Comment 10 Laurent Redor CLA 2021-04-22 11:30:57 EDT
Created attachment 286197 [details]
SourceAndTargetProjects-571304.zip (updated according to bug 571361 comment 7)