Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Initializing nodes on a diagram
Initializing nodes on a diagram [message #195679] Thu, 03 July 2008 14:34 Go to next message
Eclipse UserFriend
Originally posted by: yagayoga.hotmail.com

Hi there,

I would like to create certain nodes on my diagram at initialization time.
So, when the user right clicks and does 'initialize diagram file' to
create a new diagram, certain nodes are already included. Eg, instead of
this file being generated:

<DiagramNode/>

I would like:

<DiagramNode><Foo/><Bar/></DiagramNode>

But this is _before_ anything is added to the model by the user. I realize
I could use 'ghost nodes' in the edit commands for Create, but checking
for the existence of this structure each time a create command is executed
seems like overkill. Is there a better place I could put the
initialization commands?

Jen
Re: Initializing nodes on a diagram [message #195700 is a reply to message #195679] Thu, 03 July 2008 15:33 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Jennifer,

See generated ???InitDiagramFileAction, ???CreationWizard

-----------------
Alex Shatalin
Previous Topic:dynamic property combo fill
Next Topic:Hide Scrollbar from the compartment
Goto Forum:
  


Current Time: Sat Jun 06 12:07:53 GMT 2020

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

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

Back to the top