|
Re: Container Drop [message #1776170 is a reply to message #1776159] |
Mon, 13 November 2017 11:23  |
|
Hello,
1. You can find all diagram element referencing a semantic element using the session cross referencer like this:
ECrossReferenceAdapter xref = session.getSemanticCrossReferencer();
for (EStructuralFeature.Setting setting : xref.getInverseReferences(semanticElement)) {
...
If you find DiagramElements that are not in the current diagram, then you can trigger the confirmation dialog before deleting.
2. I do not understand your question. You can't have only view in other diagram, graphical elements are based on semantic elements. I assume that your are working on unsychronized diagram if you need drag and drop tools creating views. Then you start from a blank diagram and use your tool to only display the semantic elements you want on your diagram. Right? Then if you want to access other representation of a semantic element you should use the semantic cross referencer as in answer 1.
Regards,
Steve
Steve Monnier - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Powered by
FUDForum. Page generated in 0.02095 seconds