|
Re: load default shap in diagram [message #210463 is a reply to message #210273] |
Wed, 05 November 2008 18:41 |
Tatiana Fesenko Messages: 530 Registered: July 2009 |
Senior Member |
|
|
Hi Tara,
The default shape on UML2 Tools Class diagram is a 'Diagram on Diagram' feature
- diagram element shown one more time.
The changes were introduced to UMLDiagramUpdater, StateMachineCanonicalEditPolicy
and UMLVisualIDProvider classes.
The shape has its own TopLevelNode mapping in *.gmfmap file. Then, in *.gmgen
file the corresponding node is marked with 'AuxSecondaryDiagramNodeAttribute'.
AuxSecondaryDiagramNodeAttribute is an element from GMFGenExt metamodel -
extension of GMFGen metamodel, that was created to implement UML-specific
needs. UML2Tools provides dynamic templates that process nodes marked with
AuxSecondaryDiagramNodeAttribute. As a result, all the code, required to
create 'Diagram on Diagram' element is fully generated.
I can provide more details, if you decide to use this GMFGen extension in
your work.
Best wishes,
Tanya.
> Hi all,
> I want to create default shap in my GMF project, that means when I
> open my
> diagram I want to that one shape load in my diagram without any drag
> and
> drop,
> like package shape or profile or class diagram in uml2, when you
> create a
> new class diagram a polygon shape is shown on top left of diagram,
> how I can do it???
> Thanks in advance
|
|
|
|
Powered by
FUDForum. Page generated in 0.03092 seconds