Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Dynamic tools
Dynamic tools [message #231624] Wed, 27 May 2009 17:14
Andreas Rentschler is currently offline Andreas RentschlerFriend
Messages: 1
Registered: July 2009
Junior Member
I am trying to create a dataflow diagram editor in GMF: The metamodel
defines components as named nodes, each having a distinct set of named and
typed inlets and outlets graphically attached to them. It further defines
connectors between outlets and inlets displayed as edges.
(http://www.akk.org/~andi/dataflow.png and
http://www.akk.org/~andi/dataflowmodel.png)
Each predefined component (say template) should be listed in the tools
palette.

Currently I'm thinking of 3 possible approaches for realizing templates:
1) Define each template in .gmfmap by using Feature Seq Initializers to
initialize ports. Add a tool in .gmftool. Since there are many comopnents,
I am forced to generate my gmf models, which is suboptimal.

2) Define each template by specializing the nodes and aggregated ports in
the metamodel. Specializing of ecore (meta)models is not a simple task
(OCL constraints? ecore's EAnnotations because UML tagged values /
stereotypes are not supported?). A generator could store the specialized
metamodel in another .ecore file referencing the general metamodel. Write
a diagram extension which reads out the metamodel definitions and
accumulates the tool palette with tools, one tool for each component.

3) Define each tenmplate as a metamodel instance (i.e. a model). Stored in
a .dataflow file in a designated folder. With the help of a generator and
EMF this should be feasible. Write a diagram extension which adds for each
template an own palette entry.

Which solution would be the most elegant one, or is there a more favorable
one?
Are there any existing GMF editors extended by such feature? The
LogicDiagram example does add such a template (a Half-Adder), but
implemented with hand-written code.

Thanks for your thoughts on this topic.
Previous Topic:subeditor invocation during simulation run (=triggered by the simulation environment) sometimes fail
Next Topic:GMF compartment-like grouping
Goto Forum:
  


Current Time: Tue Apr 16 09:28:37 GMT 2024

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

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

Back to the top