Bug 526752 - Remove diagram import mechanism
Summary: Remove diagram import mechanism
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2017-11-02 05:46 EDT by Yash Khatri CLA
Modified: 2017-12-28 04:23 EST (History)
3 users (show)

See Also:


Attachments
Showing empty palette (21.19 KB, image/png)
2017-11-02 05:46 EDT, Yash Khatri CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yash Khatri CLA 2017-11-02 05:46:27 EDT
Created attachment 271297 [details]
Showing empty palette

Pre-requisite: Create a EMF model and launch another eclipse instance containing that model. 

Steps to reproduce.

1. Create a viewpoint (let us call it viewpoint1).
2. Create new representation -> diagram description (diagram1)
3. Create some elements and palette tools for this diagram.
4. Create another viewpoint in same .odesign file (viewpoint2).
5. Create new import -> diagram import and import diagram1 from viewppoint1.
5. Create new operations -> Begin.
you will see that all default layer with tools and elements is imported. 


Now,
1. Create a new modelling project. -> Create new model -> (select our emf model).
2. Select viewpoint2.
3. Open the diagram in editor.
You will see that the palette tools we have added in the diagram1 does not appear in the editor palette view.
Comment 1 Steve Monnier CLA 2017-11-17 05:49:04 EST
Hello,

Can you add a sample to reproduce your issue? I tried to reproduce the issue but it was working fine. In my "diagram import" I have the tools from the original diagram.
Comment 2 Pierre-Charles David CLA 2017-12-28 04:23:13 EST
I confirm there are strange behaviors with "diagram import", but this is a very old and unsupported mechanism which was left visible by mistake. I don't think it has worked for years (if ever), and is not even documented anywhere. I'm not even sure what it was supposed to do, but given its name I can guess, and I'd say the Diagram Extension mechanism should be used instead (see https://www.eclipse.org/sirius/doc/specifier/diagrams/Diagrams.html#diagram_extension) to extend an existing diagram with additional tools and mappings.