Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Central point for saving Model data
Central point for saving Model data [message #211223] Fri, 14 November 2008 05:03 Go to next message
Eclipse UserFriend
Hi GMF pros,

I have a question about how to save central or shared model data that
would be accessible or referenceable by model objects that are maintained
in a diagram.
I would like to create a plugin that consists of many meta model objects.

Let's say that there are some objects that should be shared over different
editors and only a little porition of the complete model should be covered
by the graphical editor.

Example: When creating a new Project from my Plugin I want to save global
meta data including project releated data, data source information and
other.
Then I create on or more GMF diagrams in order to define the runtime model
(e. g. Thread, ThreadItems, Connections and so on). But a Thread should
refer to one or more objects that are saved in the central repository?

Could this be done easily in GMF?

Thank you very much for a short explanation!
Re: Central point for saving Model data [message #211430 is a reply to message #211223] Tue, 18 November 2008 07:36 Go to previous message
Eclipse UserFriend
Hello martin,

Can you please provide some more details on a structure of the diagram you
are going to create?
Am i right that Thread in your example should just keep some references to
the existing EObjects stored in another models? In this case it's rather
easy - you can use "load resource" action on the generatedd diagram to load
another resource with EObjects and then add a references from the EObjects
visualized on the diagram to the EObjects loaded from this resource using
properties view.

-----------------
Alex Shatalin
Previous Topic:Custom layout provider
Next Topic:Border Item to be added wherever user clicks
Goto Forum:
  


Current Time: Sat Sep 20 23:10:29 EDT 2025

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

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

Back to the top