Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » load default shap in diagram
load default shap in diagram [message #210273] Mon, 03 November 2008 13:43 Go to next message
Tara is currently offline TaraFriend
Messages: 16
Registered: July 2009
Junior Member
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
Re: load default shap in diagram [message #210463 is a reply to message #210273] Wed, 05 November 2008 18:41 Go to previous messageGo to next message
Tatiana Fesenko is currently offline Tatiana FesenkoFriend
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
Re: load default shap in diagram [message #214239 is a reply to message #210463] Tue, 30 December 2008 07:14 Go to previous message
Tara is currently offline TaraFriend
Messages: 16
Registered: July 2009
Junior Member
Hi,
would you mind help me more?
thanks a lot
Previous Topic:Forcing z-order of an editPart
Next Topic:Creating connected diagrams
Goto Forum:
  


Current Time: Sat Apr 20 03:27:56 GMT 2024

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

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

Back to the top