I am using a profile with my own stereotypes and specific shapes using the EA shape script feature ("_image" attribute in profile).
Some of the stereotypes generate automatically child diagrams using the stereotype attributes "_defaultDiagramType" and "_makeComposite").
I would like to enable the feature "show composite diagram" as it is available for normal composite structures.
The problem is that the content of the child diagram is never visible.
Maybe the solution is to make the "fillcolor" of my shape invisible, but I have found no way to do this.
Has anyonye an idea how I could display this "Diagram Frame"?
Thomas
That far my shape scrips displays only some details of the shape including the subtype that seems to indicate that the current element is a composite structure.
shape main{
setFillcolor(255, 255, 255);
if(hasproperty("iscomposite","true"))
{
setFillcolor(255, 100, 100);
println("iscomposite=true");
}
if(hasproperty("isembedded","true"))
{
setFillcolor(100, 255, 100);
println("isembedded=true");
}
if(hasproperty("isroot","true"))
{
println("isroot=true");
}
if(hasproperty("isleaf","true"))
{
println("isleaf=true");
}
if(hasproperty("diagramframe","true"))
{
println("diagramframe=true");
}
println("stereotype: #stereotype#");
println("Subtype: #Subtype#");
println("Type: #Type#");
if (hasproperty("Subtype", "8")){
setfillcolor(getuserfillcolor());
}
rectangle(0,0,100,100);
}
After some time without an answer/a solution I will try to use the MDG Technology to add custom diagrams and use them.
As soon I have informations about doing this I will place it here.
Thomas