Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Question about sharing diagrams
Question about sharing diagrams [message #85760] Fri, 15 December 2006 10:43 Go to next message
Eclipse UserFriend
Originally posted by: mricardo.ef.pt

Hello,

I'm currently using the GMF2.0 M3. And I want to know if it is possible to
open multiple diagrams in the same plugin, that share the same ecore file,
and changes made to the various diagrams are reflected in the same .webview.
For example, If I have one project made with my own GMF made plugin, I want
to be able to have this:
-- Only one .webview file.
-- And multiple diagram files .????_webfile.
And the various models that I create in each .????_webfile, are reflected
(or synchronized) in the only existing .webview.
The reason, I want to do this, is when I have multiple model objects I want
to be able to separate them on the various diagrams,
making easier to work with them (imagine 100 nodes for example, in only one
diagram is hard to work).
I almost achieve this with the comand "Initialize ????_diagram diagram
file".
But, because the diagrams created with that command share the same .webview
file, all the existing model objects
are made visible to the new diagram, so the problem remains.
But what I want, is to reduce that visibility, in a way that a object
created in one specific diagram is only visible there, but still having one
..webview file.


Is this possible? And how?

I would appreciate any help.

Best regards,
--
Miguel Ricardo

EF - Tecnologias de Informa
Re: Question about sharing diagrams [message #85779 is a reply to message #85760] Fri, 15 December 2006 11:14 Go to previous message
Eclipse UserFriend
Hello Miguel,

It is possible to some extent. You can try:
- non-synchronized diagrams
- shortcutting functionality

The main problem is how to initialize diagram content (select elements of
the model you’d like to see on this very diagram). In case on unsynchronized
diagram you can do it by writing manual “InitDiagramFileAction”. Special
dialog allowing to select desired model element will appear on trying to
add shortcut onto the current diagram.

-----------------
Alex Shatalin
Previous Topic:Read Only Resource Modification Prompt
Next Topic:Creating Label part for a element using ViewService.createNode()
Goto Forum:
  


Current Time: Sat May 03 00:14:59 EDT 2025

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

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

Back to the top