Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Copy diagram doesn't copy decoratins
Copy diagram doesn't copy decoratins [message #1794203] Mon, 27 August 2018 13:10 Go to next message
Wilbert Alberts is currently offline Wilbert AlbertsFriend
Messages: 209
Registered: June 2010
Senior Member
Hi,

When I try to copy a diagram by right clicking the canvas (without any elements being selected), selecting 'Edit/Copy' and paste it, then it turns out that the decorations are missing.

If I have some elements selected, and right clicking them, using copy paste, then edges in the pasted result show as being selected.

I attached 3 images:
- screen capture of original canvas
- result of copy paste diagram
- result of selecting two shapes, one edge and copy pasting them

Note that in the last one, the dashed line has become bold and blue.

I think that copy/paste should include the decorations not pasting everything in its 'unselected' representation.

Am I right, and if so, should I file a bug report?

Greetings,
Wilbert
Re: Copy diagram doesn't copy decoratins [message #1794223 is a reply to message #1794203] Mon, 27 August 2018 16:41 Go to previous messageGo to next message
Laurent Redor is currently offline Laurent RedorFriend
Messages: 300
Registered: July 2009
Senior Member
Hi,
The "edit/copy" and "paste" only make a semantic copy. Then, the refresh is called and creates corresponding nodes and edges (and also decorators).
The rules for decorator are always "true" for the "copied" elements or not?

If you have a simple reproduction use case, you can create an issue with it. The analysis will be easier.

Regards,

Laurent



Laurent Redor - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Copy diagram doesn't copy decoratins [message #1794262 is a reply to message #1794223] Tue, 28 August 2018 08:20 Go to previous messageGo to next message
Wilbert Alberts is currently offline Wilbert AlbertsFriend
Messages: 209
Registered: June 2010
Senior Member
Hi Laurent,

I think my description was lacking an important detail: the goal is to paste diagrams as images. So from a Sirius based editor in a presentation or document.

From your explanation I think that you thought that I was pasting in another Sirius diagram.

My apologies for being not sufficiently clear. Hope that this makes it clearer.

Greetings,
Wilbert.
Re: Copy diagram doesn't copy decoratins [message #1794292 is a reply to message #1794262] Tue, 28 August 2018 13:44 Go to previous message
Laurent Redor is currently offline Laurent RedorFriend
Messages: 300
Registered: July 2009
Senior Member
Hi,

OK it is clearer now ;)
You can use the "Export as image" action for that. There is a specific checkbox "Export decorations":
index.php/fa/33737/0/
The default Copy/Paste into a "presentation or document" is currently the GMF native one and does not consider all the Sirius specific figures (especially the decorators).

Regards,

Laurent




Laurent Redor - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Update sites now have a _ prefix?
Next Topic:NullPointerException in ElkGraphImporter when Use Sirius 6.0
Goto Forum:
  


Current Time: Fri Apr 26 20:06:42 GMT 2024

Powered by FUDForum. Page generated in 0.03029 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top