|
|
|
Re: How to embed Papyrus UML class diagram within another GEF editor? [message #630841 is a reply to message #630683] |
Tue, 05 October 2010 09:11 |
|
Hi,
In Papyrus, we can display several diagram in the same editor.
To do that, we have design a model that references diagrams , this is the SashModel
org.eclipse.papyrus.sasheditor.di\model\di.ecore
In this model, we can know where is put the diagram which dimension, etc... I understand that the di file can confuse developers.
The diagram can be found in the notation file.
A di file looks like that:
<?xml version="1.0" encoding="ASCII"?>
<di:SashWindowsMngr xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:di="http://www.eclipse.org/papyrus/0.7.0/sashdi" xmi:id="_JfTw8spTEd-Ly98anaGDeg">
<pageList xmi:id="_JfTw88pTEd-Ly98anaGDeg">
<availablePage xmi:id="_Jfc64cpTEd-Ly98anaGDeg">
<emfPageIdentifier href="model.notation#_JfTw8MpTEd-Ly98anaGDeg"/>
</availablePage>
<availablePage xmi:id="_A8rPVMpYEd-1LOFEodgUOQ">
<emfPageIdentifier href="model.notation#_A8iFUcpYEd-1LOFEodgUOQ"/>
</availablePage>
<availablePage xmi:id="_RYCsycyNEd-t0sqdTA50oA"/>
</pageList>
<sashModel xmi:id="_JfTw9MpTEd-Ly98anaGDeg" currentSelection="_Jfc64MpTEd-Ly98anaGDeg">
<windows xmi:id="_JfTw9cpTEd-Ly98anaGDeg">
<children xsi:type="di:TabFolder" xmi:id="_Jfc64MpTEd-Ly98anaGDeg">
<children xmi:id="_Jfc64spTEd-Ly98anaGDeg">
<emfPageIdentifier href="model.notation#_JfTw8MpTEd-Ly98anaGDeg"/>
</children>
<children xmi:id="_UW00UMvYEd-OpLwFnxoZew">
<emfPageIdentifier href="model.notation#_A8iFUcpYEd-1LOFEodgUOQ"/>
</children>
</children>
</windows>
</sashModel>
</di:SashWindowsMngr>
You can see that emfPage indentifier refences real diagram of the notation file
Patrick
|
|
|
|
Powered by
FUDForum. Page generated in 0.03750 seconds